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 .
×

Defining a attribute?

Is it possible to modify a attribute on a character sheet using a string? Right now I have a spell that I roll 6 hit die: [[1d20+@{INT-mod}+@{level}+@{Escdie}]], [[1d20+@{INT-mod}+@{level}+@{Escdie}]], [[1d20+@{INT-mod}+@{level}+@{Escdie}]], [[1d20+@{INT-mod}+@{level}+@{Escdie}]], [[1d20+@{INT-mod}+@{level}+@{Escdie}]], [[1d20+@{INT-mod}+@{level}+@{Escdie}]] Is their a way to make the @{Escdie} into a ?@{Escdie} that will change the value in the attributes & abilities tab of my character sheet. This is for a 13th age game and the spell is Force Salvo. My game is using the 13th Age Official Sheet
I think only an API can do that. If the creator of your game is currently a Pro subscriber it should be theoretically possible, but I don't know much about APIs as I'm a free member.
1597443555
GiGs
Pro
Sheet Author
API Scripter
Dakota is correct: the macros available to free and Plus users cannot make changes to a character sheet. They can only read values from sheets, not write to them.
1599866034

Edited 1599866086
so I found out if you create a custom Attribute on your character sheet, you can do a @{value}, and just change the value manually, however I also found out that if you do ?{value}, it does not ask every time you place it in the string, roll20 recognises that their the same and uses that 1 call for all of the same entries. So I just changed my string to be  [[1d20+@{INT-mod}+@{level}+?{Escdie}]], [[1d20+@{INT-mod}+@{level}+?{Escdie}]], [[1d20+@{INT-mod}+@{level}+?{Escdie}]], [[1d20+@{INT-mod}+@{level}+?{Escdie}]], [[1d20+@{INT-mod}+@{level}+?{Escdie}]], [[1d20+@{INT-mod}+@{level}+?{Escdie}]] Im still looking to if their is a way to just write the string once and have it repeat 1+@{INT-mod} times. but so far no luck.
1599893889
GiGs
Pro
Sheet Author
API Scripter
SpookyShiNoO said: Im still looking to if their is a way to just write the string once and have it repeat 1+@{INT-mod} times. but so far no luck. That's not possible without the API. You would be best off creating a button to launch that macro, and then just clicking it as many times as you need.