Created
February 17, 2010 18:03
-
-
Save fossilx/306861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[h:RerollTriggerValue=15] | |
<b>Reroll check:</b> | |
[h:bLoop=1] | |
[h:nCounter=0] | |
[WHILE(bLoop == 1), CODE: | |
{ | |
[h:nCounter=nCounter+1] | |
[h:d20roll=1d20] | |
<br><b>-- Attempt [r:nCounter]</b>: | |
[if(d20roll>=RerollTriggerValue), CODE: | |
{ | |
[h:bLoop=0] | |
You rolled a <span style="color: green; font-weight: bold;">[r:d20roll]</span>! YEY | |
}; | |
{ | |
You rolled a | |
<span style="color: red; font-weight: bold;">[r:d20roll]</span>, | |
which is less than: | |
<span style="color: red; font-weight: bold;">[r:RerollTriggerValue]</span>, | |
re-rolling! | |
} | |
] | |
}] | |
<br><b> --> Results:</b> It took you [r:nCounter] rolls to get a value of <b>[e:d20roll]! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment