Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

TokenMod Subtract Bar3 from Bar1

1691656679
Essen
Pro
Marketplace Creator
Hi there. I know TokenMod treats the Bar values as text, not numbers, but is there any way to do math with them? I'm looking for a way to add/subtract from the bars so I don't have to make duplicates for each monster in order to deal damage with status effects per monster. I'm using Bar3to track the effect counters, and that math is working fine. But I can't seem to subtract bar3_value from bar1_value. [ --set bar1_value|-bar3_value ] just sets that as text in the entry box.
1691671756

Edited 1691673166
--set bar_1_value|-@{selected|bar3}