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

Damage script

Hi guys,  Someone of u know a script that apply damage and subtracts total from enemy hp ?
There is GroupCheck and a script out there called apply damage. GroupCheck is part of the oneclick install. The code is  here . The thread is  here .
You can do that, and a ton of other things with Tokenmod.
I use the Alter Bars script. Though I have used TokenMod since Aaron first wrote it, I don't know if it caps the numbers. Alter Bars allows you to stop the count at 0 or, for example, not allow it to go over the maximum on a heal.   Here are a few examples of the macros I use: Apply Damage: !alter --target|@{selected|token_id} --bar|3 --amount|-?{Damage Taken|0} Apply Healing: !alter --target|@{selected|token_id} --bar|3 --amount|+?{Amount Healed|0} Use Action Point: !alter --target|@{selected|token_id} --bar|2 --amount|-1 [[2d6kh1]] Points I've never seen the Apply Damage script that Mark above mentions so don't know how it compares; nor have I tried using TokenMod for damage. As mentioned above, you can configure Alter Bars to set some limits: var PREVENT_OVERMAX = true; // STOP AT ZERO - Prevents the current value of the bar from dropping below zero. var STOP_AT_ZERO = false; // ANNOUNCE CHANGE IN CHAT - Set to true to send a message to the chat window // showing which token gained or lost points and how much. var ANNOUNCE_CHANGE = true; // SEND TO GM - Set to true to send the results to the GM. This will also trigger // if a hidden change is sent. var ALERT_GM = false; Hope one of these fits your requirements.