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

Subtracting from Attributes

So Say I have an Attribute named PPoints(Power points) and it was at 5/5 (Current and Max). Is there a way to make a macro that will subtract like 1 point from PPoints and make it into 4/5? Ex. /edit @{Axel|PPoints} - 1 /me has [[@{Axel|PPoints}]] points remaining. ----------------------------------------------------- Axel has 4 points remaining.
1381633224
Gid
Roll20 Team
That sounds like it would be required to tinker with the API scripting to get it to change the value in an attribute field. By default you can only manually change the values on the character sheet.
Dang >.> Personally I think in a future update of some kind that would be really cool to have it set up that way so you can use macros to affect attributes. Like using a rage ability to temp increase your stats, then use another macro that changes em back. Thank you for your response.
1381659104

Edited 1381659142
Lithl
Pro
Sheet Author
API Scripter
If the character is being represented by a token, you could link one of the bars to the PPoints attribute (the GM must do this). Select the token, click the relevantly-colored bubble over the token's head, and type "-1" or whatever modification you're looking for (the player may do this). It's not quite a macro, but it's as close as you're going to get for this without resorting to the API. For bonus points, though, this method also lets you display a bar above the character's head showing what percentage of PPoints is remaining.
This would be a great way to keep track of ammo used as well.
I moved my idea to the suggestion thread so if the mods wanna close this old thread and anyone who is interested in this wants to support the new thread here it is. <a href="https://app.roll20.net/forum/post/398118/variables-slash-attributes-that-can-be-effected-by-macros/#post-398118" rel="nofollow">https://app.roll20.net/forum/post/398118/variables-slash-attributes-that-can-be-effected-by-macros/#post-398118</a>