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 Help

1497427016
PrincessFairy
Plus
Marketplace Creator
I am working on creating a simple macro for me to use for my group. But I am unable to figure out the complications of how to get it to work. Basically I am trying to get selected character sheets not targets to return a value. My Horrible Example Example Character name "Smoke" [[1d20 + @{Character_ID={Smoke}|initmod&{tracker}}]] Now due to my horrible configurations someone might be able to help me. "Points at Aaron :)" It is suppose to kick out something like this 1d20 + Pacific Character Sheet IE character name and send it to tracker
1497430488

Edited 1497430502
Ziechael
Forum Champion
Sheet Author
API Scripter
If there are a finite number of never changing characters then you could drop a query with hardcoded values in there: [[(1d20 + ?{Who|Smoke,@{Smoke|initmod}|Player 2,@{Player 2|initmod}|etc etc}) &{tracker}]]
1497441863
PrincessFairy
Plus
Marketplace Creator
Ziechael, I tried it, and it doesn't seem to work, it only rolls for one and it does not show up on the tracker
1497442094

Edited 1497450600
PrincessFairy
Plus
Marketplace Creator
Actually I will provide a little more information, I am also using a Initiative tracker API script, and for some reason when you first open it it always goes to rounds 2, which I haven't been able to fix. The API script was done by Aaron. It has some feature in it to pull the data in to the tracker but I am a blind man leading blind fingers while trying to figure out what I am suppose to be looking at. ROFL But can that API script interfere with the basic macro?
1497442517

Edited 1497442579
Which API Script are you using? GroupInitiative ? (fyi, the &{tracker} Roll Option requires you to have a Token selected)
1497450742
The Aaron
Pro
API Scripter
Probably TurnMarker1.  GroupInitiative doesn't have a Round Counter.  If you open the turn order with TurnMarker1 and don't have any tokens in it yet, it will end up incrementing it's round counter once in some cases.  It also doesn't reset the Round count, so it could just be residually a 2 from prior use.
1497457964
PrincessFairy
Plus
Marketplace Creator
Yes it is TurnMarker1. When I am using it for the first time it, it automatically jumps to 2 rounds. If I hit reset I can act normal and add Init. However, if I hit Reset set to 0 and close it it pops back up as round 2 immediately after opening it and I have to reset it once again. Also Is autopull a token init for active tokens? If yes how do I use it?
1497458857
The Aaron
Pro
API Scripter
!tm autopull All or !tm autopull NPCs
1497463249
PrincessFairy
Plus
Marketplace Creator
but when I set it how do I get the results to pop up on the tracker That just turns them to All
1497463551
The Aaron
Pro
API Scripter
Autopull just pulls the GM's view to whichever token is at the top of the TurnOrder on change.  It doesn't have an effect on the adding of tokens to the turn order.
1497464091
PrincessFairy
Plus
Marketplace Creator
OK that makes since, then I just need to figure out how to get that macro command to work to target a players character sheet not the target token.
1497464625
The Aaron
Pro
API Scripter
Only tokens can have turns.  Characters don't enter into it.  You could have 15 copies of a token that all represent the same character, and each could have a different turn entry.  In fact, the same token can have multiple turns.  Characters cannot have turns, only their tokens can.
1497465988
PrincessFairy
Plus
Marketplace Creator
Ok I see what your saying. I am trying to figure out how to explain this. When I am looking down at 6 tokens on the table and 2 NPC tokens, both are attached to character sheets with their init modifier in the character sheet. I activate the Turn Tracker and it pulls up nothing. Am I suppose to set one the tokens bar to Initiative from the sheet so that way it can pull the information? The effect I am trying to accomplish is the tokens that are active on screen or on board receive a an inititve on the Turn Tracker without having to click each one and add a turn initiative to the Turn Tracker. This way I can speed up combat or surprise a player immediately when combat is about to start, they don't have to roll it automatically happens. Sorry to feel like an idiot asking the same question over and over.
1497470460
The Aaron
Pro
API Scripter
TurnTracker doesn't add anything to the Turn Order, with the exception of it's marker.   You need to add the tokens in some other method, such as: 1) right click, add turn on each one 2) select each one and click a character sheet button to add to the turn order 3) write a macro like [[1d20+@{selected|init_bonus} &{tracker}]] and run it when you have selected a token 4) Configure GroupInitiative and selected all the tokens and run !group-init to add them all 
1497471702
PrincessFairy
Plus
Marketplace Creator
Thank you so much, I just picked up Group Initiative with your TurnTracker1 and WOW awesome combo THANKS
1497471793
The Aaron
Pro
API Scripter
You'll need to configure GroupInitiative, probably something like this: !group-init --del-group 1 !broup-init --add-group --bare init_bonus (or whatever your initiative bonus stat group is).