Understood.
But I see there's no function to set or calculate it. I see a function named CSS_AddBonus but can't find where it is. Could you explain more? 'cause I really interested in your CSS.
I also found some errors in your CSS
- Type -str and it give bonus armor, I understand it's not an error, it's more like a mistake, but you should fix it
- Attack Speed bonus seem can not be reduced once it is added. I typed -as 400 (max attack speed) and then -as 0, unit still had 400 attack speed bonus
- I did a little test like this:
Custom script: call DisplayTextToPlayer( Player(0),0,0,I2S(CSS_GetBonus( gg_unit_Hpal_0022 , 4 )))
The returned value is 0 no matter how much attack speed bonus the unit had.