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

Need a macro or API script to secretly roll initiative or set initiative to a given character/token

As stated above. I need to be able to set or have a reminder for myself automatically (or as automatically as possible) appear in the initiative at the start of each fight.

It could be by macro, API, or a clever use of mods (I currently use Combat Master and could be persuaded to use a different mod with the same purpose.) 

Regardless of how it’s achieved, the point of it is to remind me to telegraph to my players at the start of each round what it looks like the enemies are about to do, so the players can prepare countermeasures. And I want this to be ideally hidden from the players.

If you can help me do this, I will be so grateful :)


June 19 (1 month ago)

What I often do for hidden opponents is to place duplicate tokens for the opponents on the GM layer. Initiatives for tokens on the GM layer appear on the tracker but are only visible to the GM.

For instance say that I have a group of 4 zombies and a wight guarding a crypt: I place the zombie and wight tokens as normal (hidden on the GM layer or in the open, as required for the scenario), but also place an extra zombie and wight token off to the side on the GM layer. When it's time to roll initiative, I use those extra tokens on the GM layer to roll initiative for the zombies and the wight and not the tokens that the players will see. That way, even once the actual zombie and wights tokens become visible  to the players, their initiative rolls in the tracker are only visible to me (the GM).

Sometimes to save time I'll roll the initiatives for the opponents in an encounter (or even several encounters) ahead of time before the players even get to the encounter area(s). I then close the tracker, and when I later re-open the tracker and tell the players to "roll initiative" those rolls will still be there.


That does work, and I use it normally, but was hoping there was another way to do it via macro or API, so I could just click a button or have it done automatically for me, eheh.

June 19 (1 month ago)

I use the "AddCustomTurn" script with a macro to add a Round Counter:

!act +1 1 --Round # --index 0
/w gm ["Round #1" added to turn tracker](#" style="background: none; background-color: transparent; border: none; padding: 0px 7px; text-decoration: none; display: inline-block; outline: 2px dashed purple;)

That adds a visible Turn Tracker item that all of your players can see.

I have another macro for a character that casts "Shield" (which only lasts until their next turn):

!act -1 1 --️ @{selected|token_name} Spell: "Shield" --before @{selected|token_id} 
/w GM [@{selected|token_name} Spell: "Shield" added to turn tracker for 1 turn](#" style="background: none; background-color: transparent; border: none; padding: 0px 7px; text-decoration: none; display: inline-block; outline: 2px dashed purple;)


There is also "AddInvisibleCustomTurn" which does the same thing, but adds a custom turn that is only visible to you as GM. So you could use something like this:

!aict +0 0 --Don't forget to telegraph NPC actions! --index 0