Dice Roll Syntax Help

Is it possible to set a variable with a dice roll? Ideally it would be a temporary variable only used in the action but being able to change one on the sheet would work too. Something like this for example:

{variable} = !(2d6)
Full damage: {variable}
Half Damage: Floor{{variable}/2}

I am aware that I can roll twice but that isn’t really the same thing at all. I can think of many cases where I’d want to use the same dice roll multiple times in one scripted action.

Thanks for any guidance!

Hello @Kinroan. Welcome to the forums.

At this point, this is not possible. There is currently a request that is very popular for a {lastroll} function that would allow you to do something like this. Look it up and vote for it!

1 Like