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

Attribute Values Derived from other Attributes

Is there a way to store an attribute value as a calculation of other attributes? For example, I'd like to store a players HP and link it to the red Token bar. However, I would like to keep the total "HP" attribute stored as @{BaseHP} + (@{CON} * @{Level}) in order to account for CON damage calculations. Thanks, All.
No, you cannot do that currently.
1388614234

Edited 1388614270
you cannot store an attribute such as that, but you can use inline rolls to whisper the true value to you when it becomes relevant, and have use a second bubble (or rebind the first) to a tempHP attribute. a little more work, but if you have baseHP and currentHP next to each other its only a second to switch in the figures from the whisper. I use this for my barbarians all the time. (course, they are a little diff, I have to mod both sides by con*lvl) for example /w gm total HP now equals [[@{selected|currentHP}]] / [[@{selected|baseHP} + (@{selected|CON} * @{selected|Level})]] current hp / orig. hp max without con + ( con mod * character level ) uses the Attribute values of currentHP on the tokens bar, and is easily modifiable when a con effect hits their character. AND players can do the work without spamming chat for everyone else, as it whispers DM so he knows when they are modding their character and what they are changing it to. Useful for effects controlled by players, such as rage, or spell effects, etc.
I was basically hoping to link the stat to the token bar, so when one of my players takes con damage, it updates the token's min/max values. It's mostly just convenience, nothing really critical. Thanks all.
I realise that. The only way to accomplish that is be a mentor and find/write/modify a script that will do that for you.
I think 1 of the things that was mentioned in another forum post by a dev was that you would be able to nest attributes inside each other as part of rugged reroll. it seems to still require you to use the full @{character_name|ability} syntax, but it does sort of work now..... if you link a bubble/bar to it, it wont pull the value, just the text. if you call the stat in a macro, it substitutes the proper values, and does the calculation. I doubt this helps you much.....