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

Question about a macro

1522592665

Edited 1522593115
MyRoll20Stuffs
API Scripter
I'm new to roll20 been using it maybe... 5 days? But decided to get pro after playing with it for a while also bought some token packs. I'm using the Pathfinder Community character sheet. I tried some of the others and I like this and the Pathfinder rules best out of them all. In one I used though it had a button for rolling Initiative right up here: How do you put a button to roll initiative up here thats visible for both DM to roll initiative and players to roll initiative? How would I write a macro that did this: 1) Roll initiative for selected token's linked character sheet 2) Add the token to the turn list  3) Order the turn list by highest initiative first 4) Change "Bar 3" on the token to their rolled Initiative And how do you put buttons up by where I showed in the image?
1522605386

Edited 1522605435
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
First off, welcome to Roll20 Kastion, The button you are talking about is a  token action , there are two ways to make token actions. From your attributes and abilities tab of your character, make an ability, and check the box for token action Create a global macro in collections, and once again check the box for token action With either option, you would put this in the macro (for the initiative): %{selected|roll-for-initiative} I'd also like to direct your attention to the  Pathfinder Companion Script , which among other things can automatically set up token actions for all characters in the campaign for you.