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

Can I code an Ability Modifier into Global Modifiers? Specifically Aura of Protection and Sacred Weapon.

I want to add my charisma modifier to the global modifiers so I don't have to manually change it when i get Ability Score Impromenets. So instead of entering 4[Sacred Weapon] and 4[Aura of Protection] and then having to manually change the 4's to 5's when I get my ASI, I'd like to code my Charisma Mod so that it auto scales. Is this possible? 
I'm assuming you are using the 5e OGL character sheet. Simply put this in the global modifier @{charisma_mod}[Sacred Weapon] or @{charisma_mod}[Aura of Protection]
Thank you so much!
Hey Kyle, Is there a way to link to another characters ability mod? Or would we need API for that? Like if another character was in my aura of protection and wanted to link to my charisma mod. I know I saw some coding similar to  @{charisma_mod/Character} or something like that, but it looked more like script for API because it was in a much longer line.
You can either use the character's name or ID, or you can use the target keyword. @{Bob|charisma_mod} @{-1234567890|charisma_mod} @{target|Bob|charisma_mod}
Hello - I have the same question about Aura but the above is not working for me. Only hard coded values seem to be working in the Global Saving Throw Modifier.
Joshua V. said: Hello - I have the same question about Aura but the above is not working for me. Only hard coded values seem to be working in the Global Saving Throw Modifier. Which part? Referencing your own attribute, or someone else's? If you are trying to use another character's attribute, you will need to have Edit & Control permission on that character to use the @{Character|attribute} approach. Otherwise, the @{target|who|attribute} approach should work.
I'm trying to use  @{charisma_mod}[Aura of Protection]  on my own sheet
Are you getting any error? Also just want to check that you are using the 5e OGL character sheet.
Yes, I'm on 5e OGL. No errors, it just shows the normal ability mod. If I put in a hard number in global, like 3, it shows the mod in the roll.
I'm not really sure, but I think we may be deviating from the purpose of this thread. We can continue this conversation in OGL thread , but could you include some screenshots of the you character sheet. The saving throw section, the setting for global save on the Settings page, and the output in the chat window might show something off.