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

Help With TokenMod or another Script to bring monsters back to lide

Hi All. I am using the TokenMod Script and absolutely love it.  I have got it set up to set every character up exactly how I want them before the game starts but there is one thing I would like to add one thing to it. I am setting up a game to rum all the scenarios in the Ravenloft Play Along Pack from DNDBeyond.  In the first adventure they climb up a Windmill trying to close all the windows while being attacked by a flock of  Gremishkas .  I have set up 16 of them on each level, and am using the 16 different copied character sheets {01,02...16)for them to fight one each level.  So I copied the same token to each level.  HP is assigned to Bar 1 using TokenMod.   What I would like to accomplish is to use a script to reset the HP if it has reached 0 to full health.  Is there a way to do this via TokenMod script, and if not does anyone know how to do this via script. Thank you in advance for any help
DND DM, you might try this Macro: !forselected(^) token-mod {{   --set      showname|off     bar1_value|@{selected|hp|max}     bar1_max|@{selected|hp|max}     bar1_link|none     bar2_link|none     bar2_value|@{selected|npc_ac}     bar3_link|speed     bar3_value|@{selected|npc_speed}     has_bright_light_vision|off     emits_bright_light|off     emits_low_light|off     statusmarkers|= }}
1784406533
timmaugh
Pro
API Scripter
FYI, the above command requires the Metascript Toolbox script to be installed in addition to TokenMod. That's how you get the "forselected" script handle. =D
timmaugh, thanks.
Thank you Hultz the full script di not work, I was able to create the line !token-mod --set bar1_value|@{selected|hp|max} and add it to my existing script. Worked Beautifully.