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

Token-mod help request - healing a targeted token

Roll20, In the past, this macro healed a targeted token using the standard 5e character sheet, but now heals the target AND the token "casting the spell". Do you see a possible corruption issue or anything else that could be corrected to make it only heal the target token? Thank you! !token-mod {{    --set bar1_value|[[{ (0@{target|bar1} +0d0 + 5),  0@{target|bar1|max}d1 }kl1 ]]   --report     all|"{name} regained {bar1_value:abschange} hit points"     gm|"{name} has {bar1_value}/{bar1_max} hp"   --ids @{target|token_id}  }}
Just add --ignore-selected
1776633276
Gauss
Forum Champion
Hi Barry S.,&nbsp; Your code is not corrupted, TokenMod is written to always target the selected token. Without a command to negate that it will do just as you describe.&nbsp; Add&nbsp;--ignore-selected to your macro. source: <a href="https://wiki.roll20.net/Script:Token_Mod" rel="nofollow">https://wiki.roll20.net/Script:Token_Mod</a>
Thank you both! I appreciate your help
1776787716
The Aaron
Roll20 Production Team
API Scripter
It appears they fixed a long standing bug where selected information was not passed to scripts if @{target|...} was used. That's a good fix, but since it's been broken for so long it feels like a bug.&nbsp;