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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Question - Tokenmod How to set up Healing potion drop down?

Sorry if this is the wrong place to put this.  I am using Tokenmod. I would like my players to be able to click a macro receive a drop down menu asking "what type of potion?" suppy a drop down list.  Then after selection have it ask what target to administer potion to and have token mod change the targets bar by the potion amount. (and not overheal if possible) Thanks in advance for the help.
1651038880

Edited 1651122743
vÍnce
Pro
Sheet Author
This might work (adjust bar value and HP attribute to match the sheet you're using) !token-mod {{ --set bar3_value|+[[ { @{target|Whom|bar3|max}, [[ ?{Select Potion|Demi,1d8+1|Short,2d8+2|Tall,3d8+3|Grande,4d8+4|Venti,5d8+5|Trenta,6d8+6} ]] }kl1 ]]! --report all|"Healed {name} for {bar3_value:abschange}HP, now at {bar3_value}" --ids @{target|Whom|token_id} }} edit/update: added ! to the --set command so that healing is bound to the max value. At least I think that's what it does...
You Sir are amazing thank you so much!
There is a way to set the tokenmod command to stay within 0 and the max but I forget what it was.  Probably exclamation point but its in the documentation.  
1651121289

Edited 1651121407
vÍnce
Pro
Sheet Author
Saw this one from Aaron.&nbsp; The macro uses an exclamation at the end setting the bar value. <a href="https://app.roll20.net/forum/permalink/9178011/" rel="nofollow">https://app.roll20.net/forum/permalink/9178011/</a> Apply healing to a token, restricted to it's maximum health, report the amount healed to everyone, show the GM the current hp and hp max: !token-mod {{ --set bar3_value|+[[3d8]]! --report all|"{name} regained {bar3_value:abschange} hitpoints" gm|"{name} has {bar3_value}/{bar3_max} hp" }}
1651122261

Edited 1651122776
vÍnce
Pro
Sheet Author
DM Eddie said: There is a way to set the tokenmod command to stay within 0 and the max but I forget what it was.&nbsp; Probably exclamation point but its in the documentation.&nbsp;&nbsp; Since these are healing potions that add HP, would a 0 limit matter? Saw this one from Aaron.&nbsp; The macro uses an exclamation at the end setting the bar value. Not sure what it does though... <a href="https://app.roll20.net/forum/permalink/9178011/" rel="nofollow">https://app.roll20.net/forum/permalink/9178011/</a> Apply healing to a token, restricted to it's maximum health, report the amount healed to everyone, show the GM the current hp and hp max: !token-mod {{ --set bar3_value|+[[3d8]]! --report all|"{name} regained {bar3_value:abschange} hitpoints" gm|"{name} has {bar3_value}/{bar3_max} hp" }} Actually after a quick test, I think the the macro I posted above needs an "!" added to the end of the --set command to honor the max. I'll update the macro.
vÍnce said: This might work (adjust bar value and HP attribute to match the sheet you're using) !token-mod {{ --set bar3_value|+[[ { @{target|Whom|bar3|max}, [[ ?{Select Potion|Demi,1d8+1|Short,2d8+2|Tall,3d8+3|Grande,4d8+4|Venti,5d8+5|Trenta,6d8+6} ]] }kl1 ]]! --report all|"Healed {name} for {bar3_value:abschange}HP, now at {bar3_value}" --ids @{target|Whom|token_id} }} edit/update: added ! to the --set command so that healing is bound to the max value. At least I think that's what it does... This worked like a champ thank you so much