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 .
×

Acessing hidden makros in character sheets (Pathfinder Community Sheet)

Hey, I've been working on custom abilities to use in my game's character sheets. Is it possible to access all of the makros that are triggered by the PC/NPC buttons at the top of the character sheet? I have found some of them buried in the sheet (like "init-speed-info"), but most of them do not appear to be editable. I'm trying to include the Flat-Footed CMD into the "defense-stats", since it's oddly missing. I tried recreating the roll template from scratch, but I run another issuethere: Is it possible to somehow access properties and formatting options from other roll templates? I'd really like to be able to use the "lefttext_x" and "righttext_x" options from pf_generic in all the templates, but when I try using it in pf_defense, it just parses them as the left-side text, while putting the actual text on the right. Alternatively, I'd like to access things like @{dr-notes} in templates that do not normally support it, like pf_generic. Do I need to customize the sheet for this stuff and get a Pro acount? :/
1603675830
vÍnce
Pro
Sheet Author
Hi Sertaki, the button menus included on the sheet are not editable. You can make similar chat menu macros that include whatever rolls you would like. ie FF CMD I'll add your suggestion to include FF CMD to the Defenses Menu. In regards to the various roll templates used on the sheet;  while some keys are common between all the templates,ie {{name=...}}, many have unique keys specific to that particular roll template ie {{lefttext_x=...}} and {{righttext_x=...}}, and cannot be used in another roll template.  All the sheet templates include some basic formatting for undefined keys(allprops), so you can use something like {{notes= @{dr-notes} }} in most roll templates to include some additional info with the roll template. There's more info about the sheet's roll templates on the wiki  as well as the sheet's settings|roll template section. Hope this helps a little. 
1603678711

Edited 1603678744
Oh I realize the buttons can't be customized. I was hoping to find the macro text to more easily re-create those macros to make custom version. (and since I am new-ish to this, also reverse-engineer some stuff :D ) Out of curiosity, why are {{lefttext_x=}} and {{righttext_x=}} not included as options for all the templates? Those appear very universally useful. Thanks for the quick reply :)
1603681415
vÍnce
Pro
Sheet Author
Sertaki said: Oh I realize the buttons can't be customized. I was hoping to find the macro text to more easily re-create those macros to make custom version. (and since I am new-ish to this, also reverse-engineer some stuff :D ) Out of curiosity, why are {{lefttext_x=}} and {{righttext_x=}} not included as options for all the templates? Those appear very universally useful. Thanks for the quick reply :) I believe the macros that make up the menu displayed in chat can be found in the sheet's html code.  ie the All Menus button uses the contents from the allmenus_macro attribute; <input type="hidden" name="attr_allmenus_macro" value="&{template:pf_block} @{toggle_accessible_flag} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{scroll_desc=@{scroll-desc}}} {{color=@{rolltemplate_color}}} {{header_image=@{header_image-pf_defense}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{name=^{all}}} {{row01=[^{init-speed-info-abbrv}](~@{character_id}|init-speed-info) }} {{row02=[^{initiative}](~@{character_id}|Roll-for-initiative) }} {{row03=[^{ability-checks}](~@{character_id}|ability_checks) }} {{row04=[^{abilities}](~@{character_id}|abilities) }} {{row05=[^{defenses}](~@{character_id}|defenses) }} {{row06=[^{attacks}](~@{character_id}|attacks) }} {{row07=[^{combat-skills}](~@{character_id}|combat_skills) }} {{row08=[^{all-skills}](~@{character_id}|skills) }} {{row09=[^{items}](~@{character_id}|items) }} @{allspells_macro} @{allcustom_macro}"> You can use the browser's inspect element tool to peek through the html or even access the github code.  Might help make your own chat menu... In regards to some of the other template specific keys, ie  {{lefttext_x=}} and {{righttext_x=}}, those were initially added to pf_generic since this was the "generic" template, a catch-all template that didn't really have any specific keys|values pairs designed for it.  AFAIK, your the first person that's asked if they could also be included with the other roll templates. lol  It really shouldn't be that difficult to include those with the other templates without disrupting the other defined keys.  I'll add it as a suggestion for the sheet, along with making the chat menus editable(I believe this code be done w/out causing other issues...)  FYI:There are plans in the works to give the pf community sheet some much needed attention, but I cannot really promise anything yet.  The [PF] Pathfinder Sheet Thread 6  will get "pinged" once something materializes. 
1603688369

Edited 1603689274
Wow, that was really helpful! I didn't think of checking the HTML code XO Funny, when I first tinkered with macros 3 years ago for the brief time I was using the site, I had the exact same unmet need to use lefttext and righttext. I should have brought it up then. Also, I noticed a few slight inconsistency - the default Melee and Ranged attack macros @{melee-attack-macro} and @{ranged-attack-macro} do not include @{melee-attack-notes} or @{ranged-attack-notes} in their roll templates (boxes for both are checked, no simple template used). These notes seem to only be included in weapon attack rolls (repeating_weapon_$x). @{CMB-check-macro} includes the CMB notes correctly .... but only if you use the CMB macro from the "Attacks" sheet, it doesn't work with the one from the "NPC" sheet! None of these macros include @{attack-notes} in the roll template. Is this intended behavior, or am I just again the only one who ever brought this up? :D PS: the "=" format of pf_block might also be useful in other templates.
1603691071
vÍnce
Pro
Sheet Author
I believe (some of these decisions and features happened in the past, 3-5+ years ago, lol) the attack notes (or any of the Attack Notes sub-notes for that matter) were not included for simple melee, ranged, and cmb rolls since those were meant to be just basic rolls.  Most rolls on the sheet were later expanded by opening up the macro-text of the roll for editing so that users can add whatever they like.  For example, adding " {{description=@{attack-notes}}}" to the end of the macro-text in the macro field would show the attack notes with the roll.  The CMB notes should be included on attack rolls, but only if the attack is type=CMB.  This should happen whether it's a PC or NPC attack.  Might be a bug.
Ah thanks, that makes it understandable. :D