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

Fastest macro

Hi, im french and i need to know if there is a macro that automatically remove HP or MP from a token. Example : My mage want launch a fireball wich cost 15 Mp and he have 100 more mana point left.  "/em Gandalf is creating fire /roll 5d10 !token @{target|token_id} mp- 15" That macro should take off 15 mana point from the designed bar, but nothing happen !! can someone help me with this ?! ( sorry about the english ! i'm french)
1472835767

Edited 1472839478
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
With a base macro, no. You are a pro subscriber tho and so games you create have access to the api. Check out Aaron's  TokenMod or  ammo script. EDIT: TokenMod if you are only changing something in a bubble on a token. Ammo if you want to change something that is not necessarily located in a Token's bubble - such as say an attribute on your character sheet that you don't have tracked on the token..
1472837987

Edited 1472837997
Lithl
Pro
Sheet Author
API Scripter
Commands that begin with "!" are API commands, and they won't do anything unless the campaign has an API script to interpret them.
1472844366
The Aaron
Pro
API Scripter
This might also help: &nbsp;<a href="https://app.roll20.net/forum/post/3737514/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/3737514/slug%7D</a>
Ok thx guyz !! im fucked then ! i dunno how to write a Api script ! &nbsp;
1472891846

Edited 1472892021
Andrew R.
Pro
Sheet Author
You don't have to write an API script. You just have to install it, which is very easy for scripts that have been made available with the 1-Click Install menu of your games, like TokenMod. It's slightly harder for scripts other than those, like PowerCards. I use TokenMod, TokenNameNumber, and PowerCards in all my games. They are really handy for MOOK tokens for monsters, quick Condition markers, and easier beautiful macros for players. I encourage you to start with TokenMod and go from there. For example, I have this macro called Dead set to appear as a button along the bottom of my screen: !token-mod {{&nbsp; &nbsp; --set&nbsp; &nbsp; &nbsp; statusmarkers|!dead }}&nbsp; /em @{selected|token_name} is defeated!&nbsp;