#How would I go about writing a macro that rolls a dice and compares it to a token property?

1 messages · Page 1 of 1 (latest)

twin nacelle
#

How would I go about writing a macro that rolls a dice and compares it to a token property, returning with either a success or a failure depending if it rolls higher or lower than the property value? Need it for an OSE game, more specifically the saving throws.

empty cedar
#

[h: statVal = getProperty(“dex”)]
[h: dieRoll = 2d10]
Save [t, if(dieRoll >= statVal): “ success”; “failed”]