Need a drop in heal / damage button

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

Post Reply
User avatar
ssveter
Kobold
Posts: 13
Joined: Sat Jan 01, 2011 12:18 pm
Location: Texas
Contact:

Need a drop in heal / damage button

Post by ssveter »

I been digging through all of the posts looking for a simple select a token press the heal / damage button. I don't want a huge framework tied to it. Can anyone help?

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Need a drop in heal / damage button

Post by wolph42 »

the simplest version:

Code: Select all

[h:input("heal|0|Enter heal amount, Enter a negative number for damage")]
[h:HP = max(0,min(HP_Max, HP + heal))] 
Make sure that 'apply to selected token(s)' is checked.
HP is the stat for hitpoints (so change if you named it differently)
HP_Max is the current max HP for that token (so change if you named it differently)
the max(0,) sets a minimum of 0 hitpoints, if a lower amount is allowed, change the 0 into the lowest number.

Post Reply

Return to “User Creations”