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

Add up multiple attribute values as another attribute

Hey! I was wondering if it's possible to add up multiple attribute values, and for that sum to be the value of another attribute i.e. Attribute1 = 10 Attribute2 = 5 Attribute3 = (10+5)
1637189782

Edited 1637189805
Oosh
Sheet Author
API Scripter
It's possible in a whole bunch of ways, right down to the simplest: @{attribute3} = "@{attribute1} + @{attribute2}" Then called to chat with [[ @{attribute3} ]]. Is it part of a repeating section? Are you using this value internally in sheetworkers, or for macros? Or is it displayed on the sheet?
1637193477

Edited 1637193681
It's the max HP value on the sheet which gets displayed, and I'm trying to add a value to it like so: where the text says: 69 + @{loyalty_hp_bonus} but then on the sheet it looks like:
1637206969
Oosh
Sheet Author
API Scripter
Ohhh - yeah, you can't do that, unfortunately. Those input fields don't get parsed through the roll parser when you enter text. If you were to call that to chat with [[ @{selected|hp|max} ]] it would work the way you want it to, but there's no way I'm aware of to get the sheet inputs to parse the content for display - at least, not without rewriting the sheet.
1637219626
GiGs
Pro
Sheet Author
API Scripter
Yeah, the only way to have a number calculation show up properly there is to rewrite the sheet and replace that with a sheet worker.
Damn, thats unfortunate. But I appreciate the input from both of you! out of curiosity though... how would one go about rewriting a sheet? or rather, where would be the best place to start?
1637263887

Edited 1637263977
GiGs
Pro
Sheet Author
API Scripter
You need to be a Pro subscriber for at least 1 month to be able to modify the sheet, and then your sheet is permanently separated from the available sheet. If that sheet gets regular updates, you will not get them - your version of the sheet is frozen at the time you modified it. So consider modifying a sheet only if one of the following is true: The sheet is an old one, and never gets updates You don't care about updates, the sheet is perfect for you except for the small changes you want to make. Then to modify the sheet, look at Building Character Sheets on the wiki, though if this is the only change you want to make*, it'll be easy for many of us to do it for you if you tell us which sheet it is. But you will need to be willing to get a Pro subscription for one month so you can upload the sheet to your account, and create a few empty games (and modify an existing one) to use that sheet. * It's very likely that when you have made one change, you'll want to make others - so learning how to make those changes from the wiki is good, or getting ready to spend hundreds of dollars to pay someone else to make a suite of changes for you.