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

Query for saving throws PF sheet

1458343615

Edited 1458343660
I have this: /r d20+ ?{Which Save?|Fort?|Ref?|Will?|}} It will ask me "Which Save?" and I can select Fort, Ref, or Will.  Now I need the syntax to get it to look at my character sheet and return that value onto my d20 roll.  Something like %selected|fort-save  or something like that.  I don't really know and can't figure it out.  Any help please?  I want to be able to roll skill checks and saving throws without having a Macro for EVERY one.  So I thought a query macro where I just type the skill and it rolls for me.
/r d20+ ?{Which Save?|Fort? , @{Fort} |Ref? , @{Ref} |Will?, @{Will} }
1458358718

Edited 1458358744
"cannot read property 'substring' of undefined".  Not sure what that means but I think it is saying that the @{Fort} is not defined.  I was thinking about using %selected or something so that when I select my token and do the macro then it will check my sheet and put in my saves.
Attribute calls (e.g. @{AC}) that are not placed within one of tabs of a Character Window (e.g. within a field on the Character Sheet Tab or within an Ability on the Attributes & Abilities Tab ) must use a keyword to let the parser know which Character you intend to call that Attribute from (e.g. @{selected|AC}). Using a Selected Token with a Macro Using a Targeted Token with a Macro
Thank you.  I did figure that out at last.  Now I have a follow up.  I have this macro that is used by clicking the d20 on the PF character sheet in the SKILL section:  %{selected|Stealth-Check}      This makes a neat little black and white box with the skill check in it. I also have this macro that I built in order to select the skill I want to roll:    /r d20+ ?{Which Skill?|Acrobatics?, @{selected|acrobatics} Acrobatics|Climb?, @{selected|climb} Climb|Fly?, @{selected|fly} Fly|Perception?, @{selected|perception} Perception|Ride?, @{selected|ride} Ride|Sleight of Hand?, @{selected|sleight-of-hand} Sleight of Hand|Stealth?, @{selected|stealth} Stealth|Survival?, @{selected|survival} Survival|Swim?, @{selected|swim} Swim} } I would like to have MY macro that I built, but when I select the skill from the menu, have it appear in the pretty little box like the first one.  Not sure how to put those two things together so that I get a cool little box when I select a specific skill from my macro list.  Any ideas on that?
1458409549

Edited 1458411185
You're referring to Roll Templates . Some Character Sheets, like the Pathfinder Character Sheet , have their own sheet-specific Roll Templates. (All games have access to&nbsp;the built-in &{template:default} Roll Template .) The Roll20 Wiki page for the&nbsp; Pathfinder Character Sheet contains documentation on how to construct macros using its sheet-specific Roll Templates: 6 Roll Templates 6.1 Common Properties 6.2 pf_spell Properties 6.3 pf_attack Properties 6.4 pf_defense Properties 6.5 pf_generic Properties 6.6 pf_block Properties The page also offers macro-making tips as well as examples of macros using the Roll Template. I found a macro in the&nbsp; General Use Macros section that may be close to what you're looking to write: &{template:pf_generic} {{character_name=@{selected|character_name}}} {{name=Skill Check}} {{?{Choose a Skill(* training not required)| *Acrobatics (+@{selected|Acrobatics}), [Acrobatics](<a href="http://www.d20pfsrd.com/skills/acrobatics" rel="nofollow">http://www.d20pfsrd.com/skills/acrobatics</a>) =[[ 1d20+ [[ @{selected|Acrobatics} ]] ]] | *Appraise (+@{selected|Appraise}),[Appraise](<a href="http://www.d20pfsrd.com/skills/appraise)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/appraise)=[[</a> 1d20+ [[ @{selected|Appraise} ]] ]] | *Artistry (+@{selected|Artistry}), [Artistry](<a href="http://www.d20pfsrd.com/skills/background-skills#TOC-Artistry-Int-" rel="nofollow">http://www.d20pfsrd.com/skills/background-skills#TOC-Artistry-Int-</a>) @{selected|Artistry-name}=[[ 1d20+ [[ @{selected|Artistry} ]] ]] | *Bluff (+@{selected|Bluff}), [Bluff](<a href="http://www.d20pfsrd.com/skills/bluff)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/bluff)=[[</a> 1d20+ [[ @{selected|Bluff} ]] ]] | *Climb (+@{selected|Climb}), [Climb](<a href="http://www.d20pfsrd.com/skills/climb)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/climb)=[[</a> 1d20+ [[ @{selected|Climb} ]] ]] | *Craft @{selected|Craft-name} (+@{selected|Craft}), [Craft](<a href="http://www.d20pfsrd.com/skills/craft" rel="nofollow">http://www.d20pfsrd.com/skills/craft</a>) @{selected|Craft-name}=[[ 1d20+ [[ @{selected|Craft} ]] ]] | *Diplomacy (+@{selected|Diplomacy}), [Diplomacy](<a href="http://www.d20pfsrd.com/skills/diplomacy)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/diplomacy)=[[</a> 1d20+ [[ @{selected|Diplomacy} ]] ]] | Disable Device (+@{selected|Disable-Device}), [Disable Device](<a href="http://www.d20pfsrd.com/skills/disable-device)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/disable-device)=[[</a> 1d20+ [[ @{selected|Disable-Device} ]] ]] | *Disguise (+@{selected|Disguise}), [Disguise](<a href="http://www.d20pfsrd.com/skills/disguise)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/disguise)=[[</a> 1d20+ [[ @{selected|Disguise} ]] ]] | *Escape Artist (+@{selected|Escape-Artist}), [Escape Artist](<a href="http://www.d20pfsrd.com/skills/escape-artist)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/escape-artist)=[[</a> 1d20+ [[ @{selected|Escape-Artist} ]] ]] | *Fly (+@{selected|Fly}), [Fly](<a href="http://www.d20pfsrd.com/skills/fly)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/fly)=[[</a> 1d20+ [[ @{selected|Fly} ]] ]] | Handle Animal (+@{selected|Handle-Animal}), [Handle Animal](<a href="http://www.d20pfsrd.com/skills/handle-animal)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/handle-animal)=[[</a> 1d20+ [[ @{selected|Handle-Animal} ]] ]] | *Heal (+@{selected|Heal}), [Heal](<a href="http://www.d20pfsrd.com/skills/acrobatics)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/acrobatics)=[[</a> 1d20+ [[ @{selected|Heal} ]] ]] | *Intimidate (+@{selected|Intimidate}), [Intimidate](<a href="http://www.d20pfsrd.com/skills/intimidate)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/intimidate)=[[</a> 1d20+ [[ @{selected|Intimidate} ]] ]] | Knowledge Arcana (+@{selected|Knowledge-Arcana}), Knowledge Arcana[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Arcana} ]] ]] | Knowledge Dungeoneering (+@{selected|Knowledge-Dungeoneering}), Knowledge Dungeoneering[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Dungeoneering} ]] ]] | Knowledge Engineering (+@{selected|Knowledge-Engineering}), Knowledge Engineering[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Engineering} ]] ]] | Knowledge Geography (+@{selected|Knowledge-Geography}), Knowledge Geography[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Geography} ]] ]] | Knowledge History (+@{selected|Knowledge-History}), Knowledge History[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-History} ]] ]] | Knowledge Local (+@{selected|Knowledge-Local}), Knowledge Local[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Local} ]] ]] | Knowledge Nature (+@{selected|Knowledge-Nature}), Knowledge Nature[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Nature} ]] ]] | Knowledge Nobility (+@{selected|Knowledge-Nobility}), Knowledge Nobility[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Nobility} ]] ]] | Knowledge Planes (+@{selected|Knowledge-Planes}), Knowledge Planes[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Planes} ]] ]] | Knowledge Religion (+@{selected|Knowledge-Religion}), Knowledge Religion[Acrobatics](<a href="http://www.d20pfsrd.com/skills/knowledge)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/knowledge)=[[</a> 1d20+ [[ @{selected|Knowledge-Religion} ]] ]] | Linguistics (+@{selected|Linguistics}),[Linguistics](<a href="http://www.d20pfsrd.com/skills/linguistics)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/linguistics)=[[</a> 1d20+ [[ @{selected|Linguistics} ]] ]] | Lore @{selected|Lore-name} (+@{selected|Lore}), [Lore](<a href="http://www.d20pfsrd.com/skills/acrobatics)(@{selected|Lore-name})=[[" rel="nofollow">http://www.d20pfsrd.com/skills/acrobatics)(@{selected|Lore-name})=[[</a> 1d20+ [[ @{selected|Lore} ]] ]] | *Perception (+@{selected|Perception}),[Perception](<a href="http://www.d20pfsrd.com/skills/perception)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/perception)=[[</a> 1d20+ [[ @{selected|Perception} ]] ]] | *Perform @{selected|Perform-name} (+@{selected|Perform}), [Perform](<a href="http://www.d20pfsrd.com/skills/perform" rel="nofollow">http://www.d20pfsrd.com/skills/perform</a>) (@{selected|Perform-name})=[[ 1d20+ [[ @{selected|Perform} ]] ]] | Profession @{selected|Profession-name} (+@{selected|Profession}), [Profession](<a href="http://www.d20pfsrd.com/skills/profession" rel="nofollow">http://www.d20pfsrd.com/skills/profession</a>) (@{selected|Profession-name})=[[ 1d20+ [[ @{selected|Profession} ]] ]] | *Ride (+@{selected|Ride}),[Ride](<a href="http://www.d20pfsrd.com/skills/ride)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/ride)=[[</a> 1d20+ [[ @{selected|Ride} ]] ]] | *Sense Motive (+@{selected|Sense-Motive}),[Sense Motive](<a href="http://www.d20pfsrd.com/skills/sense-motive)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/sense-motive)=[[</a> 1d20+ [[ @{selected|Sense-Motive} ]] ]] | Sleight of Hand (+@{selected|Sleight-of-Hand}), [Sleight of Hand](<a href="http://www.d20pfsrd.com/skills/sleight-of-hand)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/sleight-of-hand)=[[</a> 1d20+ [[ @{selected|Sleight-of-Hand} ]] ]] | Spellcraft (+@{selected|Spellcraft}), [Spellcraft](<a href="http://www.d20pfsrd.com/skills/spellcraft)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/spellcraft)=[[</a> 1d20+ [[ @{selected|Spellcraft} ]] ]] | *Stealth (+@{selected|Stealth}),[Stealth](<a href="http://www.d20pfsrd.com/skills/stealth)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/stealth)=[[</a> 1d20+ [[ @{selected|Stealth} ]] ]] | *Survival (+@{selected|Survival}), [Survival](<a href="http://www.d20pfsrd.com/skills/survival)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/survival)=[[</a> 1d20+ [[ @{selected|Survival} ]] ]] | *Swim (+@{selected|Swim}),[Swim](<a href="http://www.d20pfsrd.com/skills/swim)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/swim)=[[</a> 1d20+ [[ @{selected|Swim} ]] ]] | Use Magic Device (+@{selected|Use-Magic-Device}), [Use Magic Device](<a href="http://www.d20pfsrd.com/skills/use-magic-device)=[[" rel="nofollow">http://www.d20pfsrd.com/skills/use-magic-device)=[[</a> 1d20+ [[ @{selected|Use-Magic-Device} ]] ]] }}}