I looked around, poked at the codes, looked some more, and I'm stumped. Here's what I got so far.
The dice roll I'm triggering off of is this:
Dice left to distribute: 99, 95, 91, 90, 90, 61, 60, 47, 42, 38, 27, 25, 18, 17, 3
Here is my trigger:
^Dice left to distribute\: (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)\, (.*?)$
Here is the script:
dice=%1+%2+%3+%4+%5+%6+%7+%8+%9+%<10>+%<11>+%<12>+%<13>+%<14>+%<15>
ColourNote ("white", "green", "Current Roll: ",
"white", "green", dice)
if dice < 1000 then
Execute("reroll")
end -- if
1. The script starts.
2. The total of the dice roll is calculated.
3. Shows the user what the current dice roll is.
4. If dice is less than 1000 it will execute a reroll.
It auto-rolls. Shows the right total.
But it keeps rolling even when dice>1000. I thought the conditional if statement would keep "Execute("reroll")" in check. Any ideas? |