Need a drop in heal / damage button
Moderators: dorpond, trevor, Azhrei, Gamerdude
Need a drop in heal / damage button
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?
Re: Need a drop in heal / damage button
the simplest version:
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.
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))]
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.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS