Can someone help me
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Can someone help me
I'm trying to figure out how to handle healing based on percentage of the tokens maximum health. What I mean is that if the token has taken damage then a macro will check for a set percentage of the MaxHP property and add that back into the HP property. I've that to work ok, but the problem I have is getting it to stay bellow the MaxHP value without having to run it again or run a second HPCheck macro, can anyone help me get this to work so that it never goes above HP is never greater than MaxHP
Re: Can someone help me
Sort of like a regeneration?
Code: Select all
[H: HP = min(HP + regenHP,maxHP)]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Can someone help me
in other words, you'll probly need: min
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