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

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d944ba04-c17a-4ab1-a807-2c01938ef469%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to