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

Help with Strange Macro Output

1632536273

Edited 1632536316
Hi y'all, I just wanted to see if someone could tell me why the output in this macro I'm working on is making the name title red and in [brackets] for one skill and not the other. I feel like I'm missing something simple and obvious but can't seem to figure it out. I don't mind the red but I want consistency. Assistance is appreciated :) Here's the code I used ?{Which Skill? |Acrobatics, &{template:pf_generic} @{Ash|Acrobatics-cond-notes} {{generic_note=@{Ash|Acrobatics-note}}} {{name=^{acrobatics}}} {{Check=[[ @{Ash|skill-query} + [[ @{Ash|Acrobatics} ]] ]]}} @{Ash|toggle_accessible_flag} {{font=@{Ash|apply_specfont_chat} @{Ash|use_specfont}}} {{scroll_desc=@{Ash|scroll-desc}}} {{color=@{Ash|rolltemplate_color}}} {{header_image=@{Ash|header_image-pf_generic-skill}}} {{character_name=@{Ash|character_name}}} {{character_id=@{Ash|character_id}}} {{subtitle}} |Appraise, &{template:pf_generic} @{Ash|Appraise-cond-notes} {{generic_note=@{Ash|Appraise-note}}} {{name=^{appraise}}} {{Check=[[ @{Ash|skill-query} + [[ @{Ash|Appraise} ]] ]]}} @{Ash|toggle_accessible_flag} {{font=@{Ash|apply_specfont_chat} @{Ash|use_specfont}}} {{scroll_desc=@{Ash|scroll-desc}}} {{color=@{Ash|rolltemplate_color}}} {{header_image=@{Ash|header_image-pf_generic-skill}}} {{character_name=@{Ash|character_name}}} {{character_id=@{Ash|character_id}}} {{subtitle}} |Bluff, &{template:pf_generic} @{Ash|Bluff-cond-notes} {{generic_note=@{Ash|Bluff-note}}} {{name=^{bluff}}} {{Check=[[ @{Ash|skill-query} + [[ @{Ash|Bluff} ]] ]]}} @{Ash|toggle_accessible_flag} {{font=@{Ash|apply_specfont_chat} @{Ash|use_specfont}}} {{scroll_desc=@{Ash|scroll-desc}}} {{color=@{Ash|rolltemplate_color}}} {{header_image=@{Ash|header_image-pf_generic-skill}}} {{character_name=@{Ash|character_name}}} {{character_id=@{Ash|character_id}}} {{subtitle}} |Climb, &{template:pf_generic} @{Ash|Climb-cond-notes} {{generic_note=@{Ash|Climb-note}}} {{name=^{climb}}} {{Check=[[ @{Ash|skill-query} + [[ @{Ash|Climb} ]] ]]}} @{Ash|toggle_accessible_flag} {{font=@{Ash|apply_specfont_chat} @{Ash|use_specfont}}} {{scroll_desc=@{Ash|scroll-desc}}} {{color=@{Ash|rolltemplate_color}}} {{header_image=@{Ash|header_image-pf_generic-skill}}} {{character_name=@{Ash|character_name}}} {{character_id=@{Ash|character_id}}} {{subtitle}} |Diplomacy, &{template:pf_generic} @{Ash|Diplomacy-cond-notes} {{generic_note=@{Ash|Diplomacy-note}}} {{name=^{Diplomacy}}} {{Check=[[ @{Ash|skill-query} + [[ @{Ash|Diplomacy} ]] ]]}} @{Ash|toggle_accessible_flag} {{font=@{Ash|apply_specfont_chat} @{Ash|use_specfont}}} {{scroll_desc=@{Ash|scroll-desc}}} {{color=@{Ash|rolltemplate_color}}} {{header_image=@{Ash|header_image-pf_generic-skill}}} {{character_name=@{Ash|character_name}}} {{character_id=@{Ash|character_id}}} {{subtitle}} }
1632544313
GiGs
Pro
Sheet Author
API Scripter
I wonder if this is a translations error. Is the sheet using translations, and does the Diplomacy skill look correct on the sheet?
1632545217
vÍnce
Pro
Sheet Author
I would try a lowercase for Diplomacy. {{name=^{diplomacy
vÍnce said: I would try a lowercase for Diplomacy. {{name=^{diplomacy I hate that this was the answer.....but thank you. lol. That completely fixed it and I have no idea why it's case sensitive there but literally no where else in any macro I've ever touched was. For 500pts are you able to explain why it was case sensitive?
1632545711
vÍnce
Pro
Sheet Author
I would agree with GiGs that this points to a translation issue.  I haven't tested if the i18n tags that sheet authors include for translations are case sensitive, but I'm guessing they just might be.
Huh, well I wasn't aware about. I'm still a huge novice at this, but thank you both for your help. That certainly sounds reasonable to me. I'm not sure if it is translated or not. Is it in the sheet settings? I'm just a player in the campaign if it makes a difference btw. GiGs said: I wonder if this is a translations error. Is the sheet using translations, and does the Diplomacy skill look correct on the sheet? and yes, it did look correct on the sheet. Everything looked fine which is why it bugged me so much xD
1632547392

Edited 1632547458
vÍnce
Pro
Sheet Author
Basically, sheet authors can include specific code for any text shown on the sheet (as well as roll templates).  These tags are used to translate a sheet into other languages automatically based on your browser's language(might be your roll20 account lang settings, not sure...)  only if a translation for that language has been done. Otherwise the text is simply displayed as English. Some sheets have the translation/internalization done, but have yet to be translated.  This does not effect the sheet in any way.  If there is a i18n tag/key that is not found in the translation.json file for the sheet, the text is shown as red fenced by single square brackets.  That's what is happening in your macro...  "Diplomacy" was not found in the sheet's translation.json, but "diplomacy" is.
Huh. that's super odd but ok. I think I understand that a bit better now. Thank you again, both of you really for this. I fixed the code and finished the rest of it off. It's a doozy but lately my sheets are lagging ridiculously bad. So I wanted to rely as little as possible on opening it up during sessions. Hence, moving all the skills to a macro and throwing a button to it on a chat menu. Do you think it's worth posting or something for others to copy? I made it character specific so it'd be a lot of grunt work for someone to change the macro up for themselves
1632552070
vÍnce
Pro
Sheet Author
People love macros.  Nothing wrong with sharing it. ;-) Curious, which sheet is this for?
Uhm it’s the Pathfinder community sheet I think actually
1632552958

Edited 1632553263
vÍnce
Pro
Sheet Author
That's what I thought. ;-) You can drag and drop buttons off of roll20 sheets to the macro quickbar (rename and colorize if so desired).  The PF community sheet even has chat menu buttons built in.(look for Buttons section just under conditions and buffs.)  You can also drag those as well.  Almost no need to create macros or open your sheet.  Here's an example of the Skills menu button (but there are chat menus for all the rolls on the sheet...) You can also create a basic macro that calls the various built-in chat menus ie %{selected|skills} or %{selected|attacks} etc... Also, if you are using FF by chance and are having lag issues, try disabling the forms and autofill options.
I knew about dragging buttons to the macro hotbar, but ah shit. I’ve literally never seen that separate button section in the sheet before. Well, I guess on the bright side I got a lot of practice with macros and chat menu. I’m not using Firefox I have google chrome. But if it’s auto fill that might be gumming up the sheet I’ll try disabling next time to see if it helps. Thanks man! By chance do you know a way to store a variable (like a dice roll) in a macro for reference in a separate line? Like roll a d20, store the result and then in the same macro call that stored variable and add or subtract a value from it or something
1632626562
vÍnce
Pro
Sheet Author
Christian K. said: I knew about dragging buttons to the macro hotbar, but ah shit. I’ve literally never seen that separate button section in the sheet before. Well, I guess on the bright side I got a lot of practice with macros and chat menu. I’m not using Firefox I have google chrome. But if it’s auto fill that might be gumming up the sheet I’ll try disabling next time to see if it helps. Thanks man! By chance do you know a way to store a variable (like a dice roll) in a macro for reference in a separate line? Like roll a d20, store the result and then in the same macro call that stored variable and add or subtract a value from it or something The PC Community sheet has a steep learning curve.  There are LOTS of features IF you are able to wrestle it to your will.  ;-) AFAIK, only an API script(Pro level feature) can store a roll, apply calcs and/or logic and then display the result. I think Powercards and ScriptCards can do this.