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

Can you make an "economy system"?

So i will make a little campaign that is similar to total war and strategy games, and i want to make the player gain gold per turn so i don't need to keep editing.  Is that possible? It could be just some macro that i click and changes the value too, i just want to make a little more faster, if is not possible it's fine too. I just wanted some help because im new with macros
In Order For Anyone To Help We Need To Know What Game This Is For And What Character Sheet You Are Using?
1589587141
Pat S.
Forum Champion
Sheet Author
What you are asking for would probably require an API script which is a pro feature.
1589590380
GiGs
Pro
Sheet Author
API Scripter
Gabriel B. said: Is that possible? It could be just some macro that i click and changes the value too, i just want to make a little more faster, if is not possible it's fine too. I just wanted some help because im new with macros Macros cannot change values, they can only read values from character sheets, and print stuff (including rolls) to the chat. To change values, you need the API, a Pro level feature.
1589737504

Edited 1589737795
Oosh
Sheet Author
API Scripter
You could hack something together to work with the turn tracker if you're not using it for initiative? Otherwise it's Pro for the API as Gigs said. Make an Attribute per player called gold_per_turn (if you need it to be variable per player that is), set it to 1 and then: /emas @{selected|token_name} receives [[{@{selected|gold_per_turn}} &{tracker:+}]] gold. as a token action button would add 1 gold to the currently selected token. I guess you could add extra "characters" to act as more resource piles too, Player 1 Wood, Player 1 Iron Ore etc. but you'd end up with a pretty crazy turn tracker.