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 .
×
Create a free account

Macro or API?

Hi all, I'm still learning the ropes and it's amazing what is possible with roll20. Now I have a question and maybe you can give me a push into the right direction: I'm planning on introducing roll20 to my regular P&P group. Now although we are pretty tech savy (we have our Character Sheets in a huge Excel-Sheet with lots of formulas/macros), we still want to keep a lot of the original P&P flair. For example: most of us don't want to have the dice rolls automated, but still roll them by hand and input the values. Nevertheless sometimes it would be nice to have rolls automated, for example the initiative. So what I would love to have is a macro (or API script) that asks the player if he wants to do the initiative roll automated (based on the stats of the char) or manually. With option 1 roll20 would do the roll and put the number in the turntracker. With option 2 the player would enter a value (which he got by manually rolling the dice) and it would also go into the tracker. Is this possible with only Macros? Or do I have to write a script for it? The longterm plan would be to implement the same procedure to other events as well.
1458039318

Edited 1458039363
The initiative Tracker allows a user to input the a number manually so that would be possible. I made a little macro here for you to use. ?{Initiative|Roll,[[1d20+?{mod} &{tracker}]]|Input, [[?{Total Initiative} &{tracker}]]} You would need to put this in the Abilities section of a character sheet, due the use of nested elements in the macro, HTML entities are necessary. To use the Tracker you need to have a token selected anyways, so just make it a token action.
Thanks a lot for your help. It works like a charm ;) I will look a bit more into the Abilities and the possibilities there. *bows*
Happy to help!
1458047256

Edited 1458047344
Ziechael
Forum Champion
Sheet Author
API Scripter
Further reading to assist with your possibilities research:  Advanced Usage for Roll Queries Also, please note that you can save these html entity driven macros as normal macros, but once created and saved if you open them again it will break and need to be re-added from an external source with the html entities intact ;)