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

[5e OGL] GM result Skill Check Macro

Hi all, I'm a complete novice to this, but I'm having two issues when attempting to create a skill check macro that sends results to the GM only. Currently, my investigation macro looks like this: /me is investigating the area! /gmroll 1d20+@{selected|proficiency}+@{selected|intelligence_mod} Issues: My proficiency bonus isn't being identified- when I look at the attributes I can find [pb] but that also looks like it doesn't update based on the proficiency bonus on the character sheet- still says 2 on the attributes but the character is level 6 so it should be 3 as reflected on the sheet I would like this to inherit the skill check from the sheet and conditionally include proficiency when the player has it check on their sheet /gmroll 1d20+@{selected|investigation} does not appear to include the proficiency Is my only solution to include @{selected|pb} and simply ensure that I manually update that attribute or am I fundamentally doing this the wrong way? Any thoughts would be amazing! Cheers, Shawn
Try deleting the pb attribute. It seems like it was manually set and has since stopped automatically adjusting.
Oneq uick addition, I'm using the OGL sheet. Forgot to mention that. @ Kyle G. said: Try deleting the pb attribute. It seems like it was manually set and has since stopped automatically adjusting. @ Kyle- happy to try that when I'm back from work, but I will need to recreate that attribute so the macro will have its reference point, correct? Cheers! Shawn
Shawn D. said: Oneq uick addition, I'm using the OGL sheet. Forgot to mention that. @ Kyle G. said: Try deleting the pb attribute. It seems like it was manually set and has since stopped automatically adjusting. @ Kyle- happy to try that when I'm back from work, but I will need to recreate that attribute so the macro will have its reference point, correct? Cheers! Shawn You should not need to recreate the attribute, but I would advise you to set the character's level again. This should automatically generate the pb attribute and calculate in based on the characters overall level.
@{pb} is an auto-calculated Attribute on the 5e OGL sheet. Disabled (a.k.a. "auto-calculated") Attributes are defined within the sheet's HTML yet do not appear on an Attributes and Abilities Tab. They are, nonetheless, able to be called by macros (e.g. sheet rolls). However, if an Attribute (on an Attributes and Abilities Tab) uses the same name as an auto-calculated Attribute, the former will be called by macros in place of the latter. When this occurs (and it most-often occurs when a game switches Character Sheet Templates), it usually present issues. If you see an Attribute (on an Attributes and Abilities Tab) that uses the same name as an auto-calculated Attribute, you should delete or rename that Attribute. To delete an Attribute, hover over it and press the x button that appears.
Silvyre said: @{pb} is an auto-calculated Attribute on the 5e OGL sheet. ...When this occurs (and it most-often occurs when a game switches Character Sheet Templates), it usually present issues... This... I should have thought about it sooner, but my dev sandbox campaign was copied from one game that uses the Shaped character sheet, and I was experimenting with how it transferred character data if I wanted to change sheets midstream. I think that solves the macro for always including proficiency! The second part, is about using the macro to conditionally including proficiency when the selected token has it marked. IE, character 1 is proficient in investigation, character 2 is not. Selecting each token should produce different dice formulas. Cheers for all the help on this friends!
Shawn D. said: The second part, is about using the macro to conditionally including proficiency when the selected token has it marked. IE, character 1 is proficient in investigation, character 2 is not. Selecting each token should produce different dice formulas. What does the Text Chat return when you enter @{selected|investigation_bonus} into it while selecting a Token that represents "character 1"? And, "character 2"?
1488851981

Edited 1488852046
Hmm, so I tried this: /me is investigating the area! /gmroll 1d20+@{selected|investigation_bonus} And got this: That was unexpected...
So searching and searching and I found another post with a similar issue and you gave a slightly different text string to avoid the floor/ceiling text string, and it worked! I'm now using this: /me is investigating the area! /gmroll 1d20+{{mod=[[@{selected|investigation_bonus}]]}} Hovering over the modifier reveals the ugly wall of text, but it works for what I need! Thank you for all the help on this!
Shawn D. said: So searching and searching and I found another post with a similar issue and you gave a slightly different text string to avoid the floor/ceiling text string, and it worked! I'm now using this: /me is investigating the area! /gmroll 1d20+{{mod=[[@{selected|investigation_bonus}]]}} Hovering over the modifier reveals the ugly wall of text, but it works for what I need! Thank you for all the help on this! Remove the {{mod=}. That's only necessary when using roll templates. Try /gr 1d20+[[@{selected|investigation}]] instead
Kyle G. said: Remove the {{mod=}. That's only necessary when using roll templates. Try /gr 1d20+[[@{selected|investigation}]] instead Interestingly, it doesn't work without the {{mod=}
Just do /w GM **Investigation:** [[1d20 + [[@{selected|investigation}]] ]]
SkyCaptainXIII said: Just do /w GM **Investigation:** [[1d20 + [[@{selected|investigation}]] ]] Appreciate the thought, but this returns the same issue as with Kyle's last suggestion: "No attribute was found for @{selected|investigation}" This may be an issue on my end as there doesn't appear to be an attribute for investigation, however adding one doesn't seem to allow the macro to self identify if the selected target is proficient or not. I'm honestly not sure why Silvyre solution works, but proof is in the pudding as it were. I appreciate all the help though everyone!
That's because it should be @{selected|investigation_bonus} if the character is a PC or @{selected|npcd_investigation} for an NPC.
Kyle G. said: That's because it should be @{selected|investigation_bonus} if the character is a PC or @{selected|npcd_investigation} for an NPC. Huh, for some reason I thought I had tried it with "_bonus" added and no modifier, but apparently I hadn't and it works. Thanks again all!