UnitStats and Absolute Value

Two questions:

  1. Do Unit Stats have a hard minimum of zero(0)?  For instance, if I have a calculation that might 'accidentally' adjust a Unit Stat below zero, would it simply show up as zero(0)?
  2. Can I use the absolute value sign (!) on a variable in a calculation?  For instance:

                     <Calculate InternalName="AVTest">

                          <Expression><![CDATA[ ![variable] ]]></Expression>

                     </Calcutate>

I will test these myself, just wondering if anyone knows for sure from their own experience.

Thanks!

2,554 views 3 replies
Reply #1 Top

1. yes, negativ unit_stats are just zero. I've tested with unitStat_defense.

Reply #2 Top

Quoting Jounk33, reply 1
1. yes, negativ unit_stats are just zero. I've tested with unitStat_defense.

Great.  Thanks for the response.

Reply #3 Top

Oh, that is good information to have, thanks.