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

Pathfinder: Lost my knowledge macro

Unfortunately I left a couple of outdated games, and while I exported my characters, I forgot my favourite toolbar macro. It was a 'knowledge-skills' macro, and once clicked, it would give me all the individual knowledges to choose from in the chat box. I could then click which knowledge I was looking for. It saved so much time. I hope someone understands what I am trying to explain, and are able to help with the macro itself. Thank you in advance
1749044225
timmaugh
Forum Champion
API Scripter
If the macros didn't transfer when you moved your character, then I assume you're (correctly) using the term "macro" to refer to a Collection Tab macro. In my testing, those continue to persist even after you leave a game, but do not get reassigned to you even if you re-join the game. Complicating things further, even though they still exist, the GM likely doesn't have access to them through the normal interface (they would have been only available to you if you weren't a GM, yourself; If you WERE a GM, then they would only be available to other people if you'd added them to the "Visible" list). However, the GM WOULD have access to them through the API (since they still exist). If the game still exists... So if the game still exists (or if, by reaching out to Roll20 Help, you can get it restored), then you can reach out to the GM (or, if it's your game, do this yourself) to get your the command verbiage. Have them install the Inspector script in the game where the macro resides, then ask them to run a command like this: !inspect --MacroName ...where you substitute "MacroName" with the name of the macro you're looking for. The GM will get a panel like this: Ask them to relay to you the contents of the highlighted line, "action". This is the command the macro runs when clicked, and will let you recreate it in any new game. If they can't find your macro by name... If you can't remember the exact name of your macro, they can do a more general search by running a command like: !inspect --type macro That will give them a panel like: Then they can look over the returned macros to try to find the one you're looking for. If you can remember generally what the command looked like (for instace, did it use a particular script? Was it a non-script command that produced a template?), then your GM can hover over each macro in turn looking for that information. Hovering should give enough information to identify the macro you're after: Once they've located it, they can click the associated View button, then copy the "action" property, as before. If the game DOES NOT exist, can't be restored, or if you can't connect with the GM If you can't return to the game, can't restore it, and/or can't connect with the GM of the game, you're probably going to have to recreate the command... which people here can help with, but you'll have to answer a few questions, if it comes to that: What sheet were you using (provide a screenshot if you have any trouble identifying)? Did it use a script in the macro? And, if so, which one? If you don't know that, did it produce a character sheet template output, or something more customized (like a script might)? Did it have buttons that linked to rolling those knowledge skills? Are the knowledge skills a finite list, and did the output render a button for each whether you'd trained in them or not? Orrrrrrrr... was the list of knowledge skills more open-ended, and did the output read your sheet and create a button for every knowledge skill you had created? Hopefully the Inspector script method solves your problem, but if it comes to recreating the macro, please post back with the answers to the above questions.
If you can't return to the game, can't restore it, and/or can't connect with the GM of the game, you're probably going to have to recreate the command... which people here can help with, but you'll have to answer a few questions, if it comes to that: Understood. It was in the 'Collections' Tab What sheet were you using (provide a screenshot if you have any trouble identifying)? Pathfinder Community Sheet Did it use a script in the macro? And, if so, which one? (I am unsure what the difference is between script and Macro. I am pretty sure it was something like [Knowledge-Skills] but that doesn't pull up anything If you don't know that, did it produce a character sheet template output, or something more customized (like a script might)? Small box listing all the available knowledges Did it have buttons that linked to rolling those knowledge skills? Yes, it had all Knowledges as buttons. Once I clicked my 'Macro' (Placed in the bottom bar), it would pull up all  knowledges, and I could click whichever one I needed, and it would roll it for me Are the knowledge skills a finite list, and did the output render a button for each whether you'd trained in them or not? Orrrrrrrr... was the list of knowledge skills more open-ended, and did the output read your sheet and create a button for every knowledge skill you had created? The knowledges are a finite list; Arcana, Dungeoneering, Engineering, Geography, History, Local, Nature, Nobility, Planes, Religion (In that order)
1749142462
timmaugh
Forum Champion
API Scripter
A "macro" is just a collection of commands... these could be Roll20 syntax (using a template, outputting a chat message, making a roll), or it could invoke a script A "script" is going to be a command that specifically starts with a bang (ie, "!") and is intending to trigger a script (like TokenMod, ChatSetAttr, etc.) In your case, it sounds like you had a Chat Menu that didn't invoke a script. Here is a version that does the same thing... take note of the Setup requirements and the Ways You Can Customize section, later. Setup Create an ability on the character for whom you want to report. Call this ability "button_style". Paste this verbiage into that ability: " style="background-color:black; color:#efefef; width:100px;border-radius:6px;text-align:center;margin-left:80px Create a macro in your game. Name it whatever you want (I'll refer to mine as KnowledgeMenu), and paste this command: /w gm &{template:pf_generic} {{name=Knowledge Menu}} {{character_name=@{selected|character_name}}}{{character_id=@{selected|character_id}}} {{righttext_1=[Arcana](!
@{selected|Knowledge-Arcana-macro}%{selected|button_style})}} {{righttext_2=[Dungeoneering](!
@{selected|Knowledge-Dungeoneering-macro}%{selected|button_style})}} {{righttext_3=[Engineering](!
@{selected|Knowledge-Engineering-macro}%{selected|button_style})}} {{righttext_4=[Geography](!
@{selected|Knowledge-Geography-macro}%{selected|button_style})}} {{righttext_5=[History](!
@{selected|Knowledge-History-macro}%{selected|button_style})}} {{righttext_6=[Local](!
@{selected|Knowledge-Local-macro}%{selected|button_style})}} {{righttext_7=[Nature](!
@{selected|Knowledge-Nature-macro}%{selected|button_style})}} {{righttext_8=[Nobility](!
@{selected|Knowledge-Nobility-macro}%{selected|button_style})}} {{righttext_9=[Planes](!
@{selected|Knowledge-Planes-macro}%{selected|button_style})}} {{righttext_10=[Religion](!
@{selected|Knowledge-Religion-macro}%{selected|button_style})}} Output Explanation This uses the pf-generic template from the character sheet you indicated, adding a row for each knowledge check. Each check is a reference to the "-macro" option on the sheet (ie, "Knowledge-Arcana-macro"), and turns that reference into a button. Each button is referencing the "button_style" ability on the selected token in order to know how to format the buttons (CSS). Ways You Can Customize This is built to whisper to the GM. You can change it to whisper to you, instead. This is built to reference the selected token. If you would rather just reference a given character, you can change "selected" to be the character's name, throughout (I didn't think this is what you wanted, because if you were always going to reference a single character, you probably would have put this on the character's sheet, then used shorthand references to the attributes instead). This is built to reference a specific ability on the selected character in order to get the styles for the buttons. You could change this to be an ability on a mule character , instead. That way you wouldn't have to create a button_style ability on every given character that you might want to reference. You'd have a single button_style ability that would be read no matter what character you were reporting on. Obviously, you can change the CSS rules in the button_styles ability, if you are comfortable with CSS. =D
1749254057

Edited 1749254270
vÍnce
Pro
Sheet Author
Hi Tristan, here's a macro to roll Skill checks for the PF Community sheet.  You should be able to just modify as needed (remove all non-knowledge skills) &{template:pf_generic} {{character_name=@{selected|character_name}}} {{name=Skill Check}} {{?{Choose a Skill(* training not required)| *Acrobatics, Acrobatics = [[ 1d20+ [[ @{selected|Acrobatics} ]] ]] | *Appraise, Appraise=[[ 1d20+ [[ @{selected|Appraise} ]] ]] | *Artistry, Artistry=[[ 1d20+ [[ @{selected|Artistry} ]] ]] | *Bluff, Bluff=[[ 1d20+ [[ @{selected|Bluff} ]] ]] | *Climb, Climb=[[ 1d20+ [[ @{selected|Climb} ]] ]] | *Craft, Craft=[[ 1d20+ [[ @{selected|Craft} ]] ]] | *Diplomacy, Diplomacy=[[ 1d20+ [[ @{selected|Diplomacy} ]] ]] |  Disable Device, Disable Device=[[ 1d20+ [[ @{selected|Disable-Device} ]] ]] | *Disguise, Disguise=[[ 1d20+ [[ @{selected|Disguise} ]] ]] | *Escape Artist, Escape Artist=[[ 1d20+ [[ @{selected|Escape-Artist} ]] ]] | *Fly, Fly=[[ 1d20+ [[ @{selected|Fly} ]] ]] |  Handle Animal, Handle Animal=[[ 1d20+ [[ @{selected|Handle-Animal} ]] ]] | *Heal, Heal=[[ 1d20+ [[ @{selected|Heal} ]] ]] | *Intimidate, Intimidate=[[ 1d20+ [[ @{selected|Intimidate} ]] ]] |  Knowledge Arcana, Knowledge Arcana=[[ 1d20+ [[ @{selected|Knowledge-Arcana} ]] ]] |  Knowledge Dungeoneering, Knowledge Dungeoneering=[[ 1d20+ [[ @{selected|Knowledge-Dungeoneering} ]] ]] |  Knowledge Engineering, Knowledge Engineering=[[ 1d20+ [[ @{selected|Knowledge-Engineering} ]] ]] |  Knowledge Geography, Knowledge Geography=[[ 1d20+ [[ @{selected|Knowledge-Geography} ]] ]] |  Knowledge History, Knowledge History=[[ 1d20+ [[ @{selected|Knowledge-History} ]] ]] |  Knowledge Local, Knowledge Local=[[ 1d20+ [[ @{selected|Knowledge-Local} ]] ]] |  Knowledge Nature, Knowledge Nature=[[ 1d20+ [[ @{selected|Knowledge-Nature} ]] ]] |  Knowledge Nobility, Knowledge Nobility=[[ 1d20+ [[ @{selected|Knowledge-Nobility} ]] ]] |  Knowledge Planes, Knowledge Planes=[[ 1d20+ [[ @{selected|Knowledge-Planes} ]] ]] |  Knowledge Religion, Knowledge Religion=[[ 1d20+ [[ @{selected|Knowledge-Religion} ]] ]] |  Linguistics, Linguistics=[[ 1d20+ [[ @{selected|Linguistics} ]] ]] |  Lore, Lore=[[ 1d20+ [[ @{selected|Lore} ]] ]] | *Perception, Perception=[[ 1d20+ [[ @{selected|Perception} ]] ]] | *Perform, Perform=[[ 1d20+ [[ @{selected|Perform} ]] ]] |  Profession, Profession=[[ 1d20+ [[ @{selected|Profession} ]] ]] | *Ride, Ride=[[ 1d20+ [[ @{selected|Ride} ]] ]] | *Sense Motive, Sense Motive=[[ 1d20+ [[ @{selected|Sense-Motive} ]] ]] |  Sleight of Hand, Sleight of Hand=[[ 1d20+ [[ @{selected|Sleight-of-Hand} ]] ]] |  Spellcraft, Spellcraft=[[ 1d20+ [[ @{selected|Spellcraft} ]] ]] | *Stealth, Stealth=[[ 1d20+ [[ @{selected|Stealth} ]] ]] | *Survival, Survival=[[ 1d20+ [[ @{selected|Survival} ]] ]] | *Swim, Swim=[[ 1d20+ [[ @{selected|Swim} ]] ]] |  Use Magic Device, Use Magic Device=[[ 1d20+ [[ @{selected|Use-Magic-Device} ]] ]]}}} You can also try this one (post the sheet's built-in chat menu of knowledge skills) %{selected|knowledge_skills_buttons_macro}
This is the one! Thank you so much %{selected|knowledge_skills_buttons_macro}