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 .
×

Updating bar value based on token side

New to writing macros, was just curious if there was simpler way of adjusting a bar value based on the chosen side of a multi-sided token. Right now the macro is set so that it asks what side, then what the value is supposed to be. Ideally I'd like it if I could just choose one option, then set both based off that option. !token-mod {{ --set currentside|?{Side|Hybrid,1|Wolf,2|Humanoid,3} bar2_value|?{AC|Hybrid,12|Wolf,12|Humanoid,11} }}
Go take a shower, come up with a solution... Might not be the most elegant macro, but it gets the job done: ?{Form|Hybrid,!token-mod --set currentside|1 bar2_value|12| Wolf,!token-mod --set currentside|2 bar2_value|12| Humanoid,!token-mod --set currentside|3 bar2_value|11 }