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

Potion of Healing (tokenmod) Help Please!

I found an old macro that The Aaron wrote to use tokenmod to change the health of a targeted character. The whisper shows up correctly but no rolls apply and no change is made to the token.  /em applies a Potion of healing to @{target|Target|token_name} !token-mod {{   --set     bar3_value|[[{@{target|Target|bar1}+2d4+2, @{target|Target|bar3|Max}d1}kl1]]   --ids     @{target|Target|token_id} }} Can anyone help me figure out what is wrong here? 
Just kidding im and idiot and forgot to change all the bar values! sorry peeps!  any mods please close this so that people dont see my stupidity :D 
1586364360
The Aaron
Roll20 Production Team
API Scripter
I've added a --report feature you might find useful for macros like this: !token-mod {{ --set bar3_value|[[{@{target|Target|bar1}+2d4+2, @{target|Target|bar3|Max}d1}kl1]] --report all|"{name} takes a healing potion and regains {bar1_value:change}hp." gm:control|"{name} change: {bar1_value:before}hp -&gt; {bar1_value}hp (+{bar1_value:before}hp)" --ids @{target|Target|token_id} }} More details here:&nbsp; <a href="https://app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area/?pageforid=7759266#post-7759266" rel="nofollow">https://app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area/?pageforid=7759266#post-7759266</a> or in the help: !token-mod --help
Thanks Aaron this is awesome!!!
1586370733
The Aaron
Roll20 Production Team
API Scripter
That report feature is super new, so definitely let me know if you have any feedback, thoughts, ideas, etc. =D