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 .
×
The developers are currently investigating an issue with logging in + accessing the VTT.
Create a free account

modifying the MAX and actual stats of an ability

1603551375

Edited 1603551415
Is there a way to modify an ability with a macro? I need two buttons [ability_max_+1] and [ability_actual_+1] These macros shall work as a token button. If it's only possible to do it with API it's okay, but I would prefer it to work with a macro. THANKS!
1603552118

Edited 1603552162
David M.
Pro
API Scripter
The only way to actually change the value of an ability is with the api. ChatSetAttr will do just that! You can create a macro that calls it, of course. Of course, you can always put something like @{selected|AbilityName}+1 into your vanilla macros, but to permanently change = api.
1603558417
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I really wish WotC and Roll20 had coordinated on the word "ability". I had to read that twice to understand the problem and solution.
Okay, thanks for the answer! I‘m not sure I can write an API on my own, but I‘ll try. Now let me explain you what I‘m going to do. In a few weeks I‘ll leed a one shot xmas adventure for my group. In a special tavern they can do many games and competitions. For every won game they get a mark on a beermap. The players are allowed to drink a beer for every mark on their beermap (players will have enough stuff at home). The beermap is a nice token I made. With a button I want to set the marks of how many beers they could have and how many they already had. I thought it would be easy to do it with a special ability called BEER ;) In the past I painted the marks on the graphic with the tool within roll20. But now it‘s time to do it more smart.
1603569697
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
What sheet are you using? The mechanics of adding or tracking or changing attributes will be different for every sheet. For the D&D 5th Edition by Roll20 Sheet, for example, I would suggest using the Resource attributes. Other options: 1. Create a beer token on the VTT not linked to a sheet, but with permissions set for a given player. The player can mark beer totals in the bubbles. 2. Use your beer graphic to create an infinite card deck of one card. You can pass out cards to payers, and they can spend them for beers. They can see how many they have by the marked hand size above their avatars.
Sounds interesting. Didn't know that it's possible. Tomorrow seems to be testing time.
A member for many years now and I didn't knew that I can make a card deck on my own!!! I love it! Thank you so much @keithcurtis