I've written a Auto Roller Trigger. From changing the script the (first) problem is the "match". Sometimes, for example Str may be "[Above Avg ]", so it's 2 words, not just one (eg "Str [Strong ]").
The input is:
Your abilities are:
Str [Average ] Int [Clever ] Wis [Above Avg ]
Dex [Agile ] Con [Below Avg ] Cha [Average ]
Roll again?(y/n):
Can someone assist please? And yes, I do realise that it is a *very* crude trigger, I've pieced in together from other forum posts, by googling. I'm not sure of which language it is in, but I think lua :)
<triggers>
<trigger
enabled="y"
ignore_case="y"
lines_to_match="2"
keep_evaluating="y"
match="^ Str [(...........)] Int [(..........)] Wis [(............)]\n Dex [(...........)] Con [(..........)] Cha [(............)]$"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>Str = (%1)
Int = (%2)
Wis = (%3)
Dex = (%4)
Con = (%5)
Cha = (%6)
if Str = 'Powerful' or
Str = 'Strong' or
Str = 'Potent' or
Str = 'Muscular'
Then
YStr = "Yes"
end -- if
If Int = 'Genius' or
Int = 'Gifted' or
Int = 'Brilliant'
Then
YInt = "Yes"
end -- if
If Wis = 'Shrewd' or
Wis = 'Crafty'
Then
YWis = "Yes"
end -- if
If Dex = 'Agile' or
Dex = 'Nimble' or
Dex = 'Smooth' or
Dex = 'Adroit'
Then
YDex = "Yes"
end -- if
If Con = 'Sturdy' or
Con = 'Hardy' or
Con = 'Husky'
Then
YCon = "Yes"
end -- if
If Cha = 'Gorgeous' or
Cha = 'Stunning' or
Cha = 'Charming'
Then
YCha = "Yes"
end -- if
If YStr = 'Yes' and
YInt = 'Yes' and
YWis = 'Yes' and
YDex = 'Yes' and
YCon = 'Yes' and
YCha = 'Yes'
Then
Send = "n"
Else
Send = "y"
end -- if
</send>
</trigger>
</triggers>