I’m currently writing a dice game as part of my choice script adventure.
However I’m getting an error when trying to set the value of a variable using the value of another variable.
*temp roll
*rand roll 2 12
*temp difference
*set difference 12 - ${roll}
The error occurs on the last line, pointing to the ${roll} section.
I presumed that if I could print the value of a variable via ${variable} then I could do the same when setting another variable. If this isn’t the case how else would I go about adding variables together. Perhaps I’ve gone about this the wrong way.
Thanks,
roskelld