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

Quick Autocalculation Problem

1578689911
Robert R.
Plus
Marketplace Creator
Hi there!  I am having trouble working on a custom sheet. I am attempting to determine the maximum of a sub-stat, which is 1/2 the value of two different Attributes, then add a possible Mod field if something is adjusting the stat.  The formula I have is: (@{Stamina_Modifier}) + floor(abs(@{StaminaCombined})/2) However, no matter where I put the modifier it seems to /2 the entire formula.  Is there a way to only apply the /2 to a single attribute in the formula?
1578691929

Edited 1578692015
vÍnce
Pro
Sheet Author
Hi Robert, your formula seems to be fine.  As a test I simply substituted values for the attributes ie [[ (100) + floor(abs(1000)/2) ]] answer = 600 which is the result expected.  Are there other attributes used to calculate  Stamina_Modifier and  StaminaCombined?  Maybe they are the issue?
1578809863
Robert R.
Plus
Marketplace Creator
Ah, got it.  Thanks very much!