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

Roll Template for Custom Character Sheet

Hello everyone, Question: - Could someone show me an example of a way to have a name or button on a character sheet that stores the variable between sessions that can be easily referenced that uses the Roll Template for chat? I was following the example provided by the Roll20 API guide and I think I was following it alright, yet I am confused where to place the Macro. I'd like the Macro to be part of the sheet so it doesn't need to be added as an addon (if I'm understanding that correctly). I do have a lot of web dev front end experience. I simply need to wrap my head around how things work here on Roll20. I figured, while I'm asking, if someone would be kind enough to show how they are storing local or global variables, that would be nice. For my ease, can you make the example make sense, so pretend you are making an attack, heal, or some other dice roll. Context helps me associate the knowledge. Much appreciated any help you can provide, Res P.S. If someone feels extra kind, I was curious how the DnD character sheets have the lock/unlock feature for data entered in text fields. I figured I could likely do that using Javascript. If there is a pre-built way to do that, I am curious, otherwise I will be looking to do it that way.
1670235622
Gauss
Forum Champion
If I understand correctly you are asking questions about how to construct (code) a character sheet?  If that is correct, you might want to repost in the Character Sheets & Compendium forum . You might get a better set of eyes on it there. 
1670273639

Edited 1670273689
Thank you Gauss for the suggestion. I’ll do that. Hope you have a good rest of your week. (Edit: apparently my phone emoji didn’t work here so I took it out).