| Wed Jul 8 20:01:30 2026 by Cocofalco |
| The goal is roll 1d4 number of 1d20 die, so IE roll d4 to get 2 and then roll 2 d20 to get 11 and 13. 2nd example roll d4 to get 3 and then roll 3 d20 to get 5,14,20. Using the pick option "4d20 pick 1d4" works, but what I don't understand is why using bind aka "X := 1d4; Xd20" doesn't work. I get "Parse-error at line 1, column 12". How should the bind be used? The reason I've gone beyond the pick option is that the 4 can change and the second syntax doesn't require me to remember to change both elements like it does in the first syntax. |
| Thu Jul 16 10:37:24 2026 by Torben |
The issue is that when the number of rolls of a die is given by a variable, there must be a space between the variable and the d. Otherwise, Troll thinks "Xd" is a variable. So X := 1d4; X d20 will work, as will d4 d20 and even d4d20. |