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

Drop-Down Style Initiative Macro for Pathfinder 2E

Is there a way to write a macro that queries which skill to be used for initiative? I'd like to be able to choose Perception, Stealth, etc., without it defaulting to Perception. I've searched for and found a skill check macro, but I don't know how to modify it for my purposes (still very, VERY new to macro writing). Any help would be greatly appreciated!
1600086794
GiGs
Pro
Sheet Author
API Scripter
There is. What does your initiative macro look like normally, and what are the attributes and their roll20 attribute names you want to use as options?
The initiative macro that I have been using is simply: %{selected|INITIATIVE} What I want it to be is essentially: ?{Initiative|Perception,%{selected|PERCEPTION}|Stealth,%{selected|STEALTH}|Diplomacy,%{selected|Diplomacy|...}} so that when the players roll initiative, they can choose the skill to roll initiative with based on what they were doing before combat. The skill check macro is: @{selected|whispertype} &{template:rolls} {{limit_height=@{selected|roll_limit_height}}} {{charactername=@{selected|character_name}}} {{header=Initiative Modifier}} {{notes_show=@{selected|roll_show_notes}}} {{notes= [Acrobatics +@{selected|Acrobatics}](!
%{selected|Acrobatics}) &{tracker} [Arcana +@{selected|Arcana}](!
%{selected|Arcana}) &{tracker} [Athletics +@{selected|Athletics}](!
%{selected|Athletics}) &{tracker} [Craft +@{selected|Crafting}](!
%{selected|Crafting}) &{tracker} [Decept +@{selected|Deception}](!
%{selected|Deception}) &{tracker} [Diplo +@{selected|Diplomacy}](!
%{selected|Diplomacy}) &{tracker} [Intim +@{selected|Intimidation}](!
%{selected|Intimidation}) &{tracker} [Medicine +@{selected|Medicine}](!
%{selected|Medicine}) &{tracker} [Nature +@{selected|Nature}](!
%{selected|Nature}) &{tracker} [Occultism +@{selected|Occultism}](!
%{selected|Occultism}) &{tracker} [Perform +@{selected|Performance}](!
%{selected|Performance}) &{tracker} [Religion +@{selected|Religion}](!
%{selected|Religion}) &{tracker} [Society +@{selected|Society}](!
%{selected|Society}) &{tracker} [Stealth +@{selected|Stealth}](!
%{selected|Stealth}) &{tracker} [Survival +@{selected|Survival}](!
%{selected|Survival}) &{tracker} [Thievery +@{selected|Thievery}](!
%{selected|Thievery}) &{tracker} [K.H. Lore +@{selected|repeating_lore_$0_Lore}](!
%)}} but I'd rather not have it as a chat menu if possible.
1600098793
GiGs
Pro
Sheet Author
API Scripter
Unfortunately this  %{selected|INITIATIVE}  isnt the initiative macro, but is a call to the initiative button. It doesnt show the actual text. Are initiative rolls based on a d20 plus the bonus? If so, a simple method is &{template:default} {{name=Initiative: @{selected|token_name}}} {{Roll=[[1d20+?{Initiative|Perception,%{selected|PERCEPTION}|Stealth,%{selected|STEALTH}|Diplomacy,%{selected|Diplomacy}|...} }} &{tracker}]]}} Of course you'll need to fill in the rest of that dropdown query. 
That is EXACTLY what I was looking for! Thank you sooo much!
1600099944
GiGs
Pro
Sheet Author
API Scripter
yay :) You're welcome
Is there something I could write that would whisper the roll if a GM-controlled token was selected?
1600105515
GiGs
Pro
Sheet Author
API Scripter
The simplest way would be to have two macros, the one above for pcs, and a variant for NPCs: /w GM &{template:default} {{name=Initiative: @{selected|token_name}}} {{Roll=[[1d20+?{Initiative|Perception,%{selected|PERCEPTION}|Stealth,%{selected|STEALTH}|Diplomacy,%{selected|Diplomacy}|...} }} &{tracker}]]}}
That's what I was thinking. Thank you again!
1600107477
GiGs
Pro
Sheet Author
API Scripter
you're welcome :)