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

Initiative Macro

Hi, can anyone help me with how to write an initiative macro so the initiate can be rolled from the game tokens rather than having to go into all the individual character and npc sheets ? Many thanks
1591993346

Edited 1592005712
GiGs
Pro
Sheet Author
API Scripter
We'd need to know the system you're using and how initiative works in your game.  But you can probably do this yourself. These are the basic steps: Open a character sheet, and roll initiative so it appears in chat Click your mouse into the chat box, and press the UP arrow on your keyboard This will show you the text of the last roll made. Copy that into a macro Replace the character name each time it appears with the word selected In the macro settings, share with all players and set as a Token action. After doing that you should have a macro button that appears as a floating button at the top left of the screen whenever you have a token selected.
Many thanks that's great I'll give it a go. kind regards
GIGs thank you so much for your help. I'm using the Mongoose Traveller ist edition character sheet. The initiative is adjusted by the Dexterity attribute on the character sheet but not when I roll on the newly created token macro. Any suggestions as to how to incorporate this ? Many thanks
1592045861
Oosh
Sheet Author
API Scripter
If you post the code you're using someone should be able to sort it out.
Thanks Oosh I have this so far: &{template:skill-general} {{skill= Initiative}} {{character= @{selected|character_name} }}{{roll= [[2d6+@{selected|initiativeattribute}[Attribute Modifier] + ?{Modifier|0}[Modifier] &{tracker}]]}}
1592077788
GiGs
Pro
Sheet Author
API Scripter
Is the initiativeattribute there a real attribute? If so that should work. In not, just change it to whatever attribute is used for initiative, maybe dex.
Many thanks I'll try that. Apologies for the bombardment of question, do forgive me, I'm just excited by this amazing new (to me) resource. I understand that if I highlight a token that has a character sheet attached to it, press shift and double click it SHOULD open the character sheet rather than having to keep going into the side bar. I'm trying that but its not working so I'm obviously doing something very wrong. Any ideas ? again thank you :)
1592088927
GiGs
Pro
Sheet Author
API Scripter
Interesting. It's not working for me either in Chrome, but it works in Firefox. I'm not sure if an extension is interfering for me or if its a roll issue. Anyone else having issues in chrome?
I'm in Chrome I'll try fire fox thank you again :)
Hum I can't get the charcter sheet to open in Firefox either ?
1592145547
Oosh
Sheet Author
API Scripter
Try alt-double click, that should go straight to the character page instead of the bio page. Can you still open the sheet from the journal? Is it only the token shortcut not working?
1592146895
Kraynic
Pro
Sheet Author
Make sure that the token (in the token settings, not through the character sheet) is set to represent the character sheet you expect to open.
thanks all I'll try, kind regards
Ok, I've tried alt instead of shift but in both cases it brings up edit token not the character sheet. Kraynic, thank you, how do I set the token to the character sheet rather than the character sheet to the token ? Thanks again all, really appreciate your time and kindness
I'm using the D&D 5E By Roll20 character sheet.  In the Attributes & Abilities tab, I am using this macro for initiative: /roll 1d20 +@{initiative_bonus} &{tracker} I copied it into each of my players' character sheets and set it as a Token Action.  They click their token and the button appears on their screen.  Clicking the button rolls initiative and adds it to the turn tracker.    No need to add turns or clear the tracker each time, which is really nice.
1592185100
Oosh
Sheet Author
API Scripter
There should be a "Represents Character" drop-down in your token settings. This is where you need to choose the character sheet which is represented by the token. Changing any other settings you need, and then saving it as a default token via the character sheet should mean all tokens dragged from the Journal in future will automatically be linked to the character sheet.
Thanks OOSH, nailed it, I missed that thank you. I love how helpful everyone is :)
And THAT's why I couldn't open the character sheets, BOOM !