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 request with macro involving Skills referenced from the OGL

Hello all, I have been on the Wiki for a while now, and I have yet to find how to reference skills for use in macros, such as when I reference a selected proficiency bonus by use of @{selected|PB}.  How do I reference a skill such as Investigation? I tried @{selected|Investigation} but it did not function... Thank you!
1486506180
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I can't remember all of them off the top of my head, but the best way to get a skill name when using chrome (don't know if/how this works in other browsers) is to right-click on the number that you want to access in the sheet and click "inspect" on the drop down. This'll bring up the inspection panel on the right with the html code for the element that you clicked on. There will be a name in the format "attr_attribute-name", strip off the "attr_" and you a have the attribute name for use in @{...}.
Thanks Scott C!
For PC's the skills are referenced by using @{selected|skill_bonus}, in your example it would be @{selected|investigation_bonus}. For NPC's you would use @{selected|npcd_skill} (@{selected|npcd_investigation}. For more information see the  5e OGL wiki page .