Cheat Sheet ‐ Dae.eval examples - MotoMoto1234/Midi-Wiki GitHub Wiki

Add a +2 when below half health:

dae.eval(2*attributes.hp.value < attributes.hp.max ? +2 : 0)

Stackable Powerful Build(and other encumbrance shennanigans):

system.attributes.encumbrance.max | Override | @attributes.encumbrance.max * 2
system.attributes.encumbrance.pct | Override | dae.eval(100 * attributes.encumbrance.value / attributes.encumbrance.max)