"1d10 sp, 1d4 gp" called "Treasure".
When the npc dies I'd like to roll those values up and put that info somewhere. My problem is I can't seem to come up with a way to "roll" it.
Code: Select all
[reward = eval(getProperty("Treasure"))]
That fails because of the "sp," and "gp" I am guessing. I've tried other things but can't seem to get it to cope with it.
Is there a way to do this w/o writing a parser to pull out all the dice rolls and replace their text with the rolled values?
I am hoping I am just missing a way to make a function that exists do this.