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 .
×
Advertisement Create a free account

([PF]) How to hide content in macros?

I have a specific pathfinder related macro problem I'm trying to solve, but I'm assuming similar problems arise in other systems. If the formula is bad (not enough brackets or such) sometimes content used to vanish (i.e. not be printed in chat) - which I took advantage of. For example I'd hide the more elaborate feat descriptions in the macro, so it wouldn't show up in chat when "rolled" but that I could read it when I go to edit the macro (in case I wanted to make it part of the macro again later, or such). I can't figure out how anymore. Specifically Over  here  I presented a new All Skills Query Macro. I made customized versions of it (see below), to be less bulky and better organized, but I wanted to keep the skills that are not in use somewhere hidden in the macro. When I started working on this I had them behind }}} and they wouldn't show up. Now they do show up as normal chat text (with inline rolls) - ghaa?! -- How do I hide them again? Here's my macro code: &{template:pf_generic} {{character_name=@{Example Rogue|character_name}}} {{name=Skill Check}} {{?{Choose a Skill(* training not required)| *Perception +@{Example Rogue|Perception}, Perception=[[ 1d20+ [[ @{Example Rogue|Perception} ]] ]] | *Acrobatics +@{Example Rogue|Acrobatics}, Acrobatics = [[ 1d20+ [[ @{Example Rogue|Acrobatics} ]] ]] | *Stealth +@{Example Rogue|Stealth}, Stealth=[[ 1d20+ [[ @{Example Rogue|Stealth} ]] ]] | ,| ---Stealing---, | Disable Device +@{Example Rogue|Disable-Device}, Disable Device=[[ 1d20+ [[ @{Example Rogue|Disable-Device} ]] ]] | Sleight of Hand +@{Example Rogue|Sleight-of-Hand}, Sleight of Hand=[[ 1d20+ [[ @{Example Rogue|Sleight-of-Hand} ]] ]] | , | ---Social skills----, | *Sense Motive +@{Example Rogue|Sense-Motive}, Sense Motive=[[ 1d20+ [[ @{Example Rogue|Sense-Motive} ]] ]] | *Bluff +@{Example Rogue|Bluff}, Bluff=[[ 1d20+ [[ @{Example Rogue|Bluff} ]] ]] | *Diplomacy +@{Example Rogue|Diplomacy}, Diplomacy=[[ 1d20+ [[ @{Example Rogue|Diplomacy} ]] ]] | *Disguise +@{Example Rogue|Disguise}, Disguise=[[ 1d20+ [[ @{Example Rogue|Disguise} ]] ]] | *Intimidate +@{Example Rogue|Intimidate}, Intimidate=[[ 1d20+ [[ @{Example Rogue|Intimidate} ]] ]] | , | ---Athletics----, | *Escape Artist +@{Example Rogue|Escape-Artist}, Escape Artist=[[ 1d20+ [[ @{Example Rogue|Escape-Artist} ]] ]] | *Climb +@{Example Rogue|Climb}, Climb=[[ 1d20+ [[ @{Example Rogue|Climb} ]] ]] | *Swim +@{Example Rogue|Swim}, Swim=[[ 1d20+ [[ @{Example Rogue|Swim} ]] ]] | *Ride +@{Example Rogue|Ride}, Ride=[[ 1d20+ [[ @{Example Rogue|Ride} ]] ]] | *Fly +@{Example Rogue|Fly}, Fly=[[ 1d20+ [[ @{Example Rogue|Fly} ]] ]] | , | ---Miscalaneous---, | Use Magic Device +@{Example Rogue|Use-Magic-Device}, Use Magic Device=[[ 1d20+ [[ @{Example Rogue|Use-Magic-Device} ]] ]] | Knowledge Dungeoneering +@{Example Rogue|Knowledge-Dungeoneering}, Knowledge Dungeoneering=[[ 1d20+ [[ @{Example Rogue|Knowledge-Dungeoneering} ]] ]] | *Perform (Dance) +@{Example Rogue|Perform}, Perform (Dance)=[[ 1d20+ [[ @{Example Rogue|Perform} ]] ]] | , | *Heal +@{Example Rogue|Heal}, Heal=[[ 1d20+ [[ @{Example Rogue|Heal} ]] ]] | *Survival +@{Example Rogue|Survival}, Survival=[[ 1d20+ [[ @{Example Rogue|Survival} ]] ]] | *Artistry +@{Example Rogue|Artistry}, Artistry=[[ 1d20+ [[ @{Example Rogue|Artistry} ]] ]] | *Appraise +@{Example Rogue|Appraise}, Appraise=[[ 1d20+ [[ @{Example Rogue|Appraise} ]] ]] | *Craft +@{Example Rogue|Craft}, Craft=[[ 1d20+ [[ @{Example Rogue|Craft} ]] ]] |}}} [[[[EDIT: This part is behind }}}, so it isn't supposed to show up. But somehow instead of just vanishing as it seems to have done earlier, now it reads it as content outside of the template (i.e. lots of inline rolls in strange text) - I have yet to find another good way to keep it in here, but hidden. Any ideas?! Remember the point of keeping the stuff below is to have an easy time copying the skill to one of the other sections once the person has trained in it and can use it. How do I make what is beyond this point stay in here but not show up in the query nor in chat?]]]]]] , | , | --These things he cannot yet do...--, | Handle Animal, Handle Animal=[[ 1d20+ [[ @{Example Rogue|Handle-Animal} ]] ]] | Spellcraft, Spellcraft=[[ 1d20+ [[ @{Example Rogue|Spellcraft} ]] ]] | Knowledge Arcana, Knowledge Arcana=[[ 1d20+ [[ @{Example Rogue|Knowledge-Arcana} ]] ]] | Knowledge Engineering, Knowledge Engineering=[[ 1d20+ [[ @{Example Rogue|Knowledge-Engineering} ]] ]] | Knowledge Geography, Knowledge Geography=[[ 1d20+ [[ @{Example Rogue|Knowledge-Geography} ]] ]] | Knowledge History, Knowledge History=[[ 1d20+ [[ @{Example Rogue|Knowledge-History} ]] ]] | Knowledge Local, Knowledge Local=[[ 1d20+ [[ @{Example Rogue|Knowledge-Local} ]] ]] | Knowledge Nature, Knowledge Nature=[[ 1d20+ [[ @{Example Rogue|Knowledge-Nature} ]] ]] | Knowledge Nobility, Knowledge Nobility=[[ 1d20+ [[ @{Example Rogue|Knowledge-Nobility} ]] ]] | Knowledge Planes, Knowledge Planes=[[ 1d20+ [[ @{Example Rogue|Knowledge-Planes} ]] ]] | Knowledge Religion, Knowledge Religion=[[ 1d20+ [[ @{Example Rogue|Knowledge-Religion} ]] ]] | Linguistics, Linguistics=[[ 1d20+ [[ @{Example Rogue|Linguistics} ]] ]] | Lore, Lore=[[ 1d20+ [[ @{Example Rogue|Lore} ]] ]] | Profession, Profession=[[ 1d20+ [[ @{Example Rogue|Profession} ]] ]] | }}} This is what the query looks like (minus the German headings): Thanks so much! Julian
1452995054

Edited 1452996010
Silvyre
Forum Champion
While they work fine within Roll Queries, Roll Templates are broken by line breaks ; you'll need to remove them (i.e. from the detached dropdown fields) if you want have stuff "hidden" between Roll Query tags. This is obviously less-than-optimal, as it kills the nice Roll Query formatting, so I'll recommend an alternative. Lines preceded by an exclamation mark are hidden from the chat . I recommend moving your hidden stuff outside of your Roll Templates and prefacing each line with an exclamation mark. e.g. &{template:pf_generic} [...] {{?{Query|etc.}}} !  , | !  , | ! --These things he cannot yet do...--, | ! Handle Animal, Handle Animal=[[ 1d20+ [[ @{Example Rogue|Handle-Animal} ]] ]] | ! Spellcraft, Spellcraft=[[ 1d20+ [[ @{Example Rogue|Spellcraft} ]] ]] | ! Knowledge Arcana, Knowledge Arcana=[[ 1d20+ [[ @{Example Rogue|Knowledge-Arcana} ]] ]] |  Knowledge Engineering, Knowledge Engineering=[[ 1d20+ [[ @{Example Rogue|Knowledge-Engineering} ]] ]] |  Knowledge Geography, Knowledge Geography=[[ 1d20+ [[ @{Example Rogue|Knowledge-Geography} ]] ]] |  Knowledge History, Knowledge History=[[ 1d20+ [[ @{Example Rogue|Knowledge-History} ]] ]] | Knowledge Local, Knowledge Local=[[ 1d20+ [[ @{Example Rogue|Knowledge-Local} ]] ]] |  Knowledge Nature, Knowledge Nature=[[ 1d20+ [[ @{Example Rogue|Knowledge-Nature} ]] ]] |  Knowledge Nobility, Knowledge Nobility=[[ 1d20+ [[ @{Example Rogue|Knowledge-Nobility} ]] ]] |  Knowledge Planes, Knowledge Planes=[[ 1d20+ [[ @{Example Rogue|Knowledge-Planes} ]] ]] |  Knowledge Religion, Knowledge Religion=[[ 1d20+ [[ @{Example Rogue|Knowledge-Religion} ]] ]] | Linguistics, Linguistics=[[ 1d20+ [[ @{Example Rogue|Linguistics} ]] ]] |  Lore, Lore=[[ 1d20+ [[ @{Example Rogue|Lore} ]] ]] | ! Profession, Profession=[[ 1d20+ [[ @{Example Rogue|Profession} ]] ]] | ! }}}
Didn't know about the ! - good solution... except now I need a ! in front of every line break... unless !&{template:pf_generic}{{ ... }}  This works! :)  A Perfect 5/7 Thanks!
Finding out about !&{template: ..... has been amazing, because it also got me the idea of doing /w GM &{template:...... which also works. Before that whenever there was a line break I'd have to get another /w GM in there, and it would get all messy... this is awesome! This way I can have the interesting parts of spells be printed in chat, while the boring stuff goes to the GM (and the player that's casting the spell) only. So thanks again for the tip, and I hope this is useful to others as well.