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

Tough question for anyone who feels comfortable with character sheets/abilities

I'm currently trying to develop the equivalent of a npc cheat sheet, much like the rollable buttons already pressable on the npc character sheets they provide for free, but a more in depth version. However, I've been stonewalled by one little bit of code and its eating me alive. How do you get all of the character names (I use a generic TEMPLATE|npc_AC etc... for mine) to adapt to the actual character sheet without having to go through and replace (TEMPLATE) them with actual character names.  My train of thought here was to do npc_character_name and then I realized I have absolutely nothing to reference it back to. So I guess real question is, is there a way to create a variable name that refers back to whatever character name you give an npc that is malleable for my purpose?
1484989302
The Aaron
Pro
API Scripter
Liked @{character_name}?
1485005819
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Use the select or target keyword. <a href="https://wiki.roll20.net/Macros#Using_a_Selected_Token_with_a_Macro" rel="nofollow">https://wiki.roll20.net/Macros#Using_a_Selected_Token_with_a_Macro</a>
Thanks a ton, both of you. I fiddled around with selected|token_name and that ended up being the solution.&nbsp;