Hello
I want to use eval to simulate dice roll - using 2d6 notation instead of randomInt(1,6) + randomInt(1,6)
I'v seen in the Tobibeer code that it parse for variable,
<$set name="2d6" value="randomInt(1,6)+randomInt(1,6)"
</$set>
But it dont work
Unable to evaluate '9-(0+2d6)' (Error: Undefined symbol d6).
I can also add a new operator in math.js but it seem difficult ;)
Does someone have an idéa ?
Tks
Guillaume