I'm trying to make a custom stats dialog, and I need to know how, if possible, to get the current units stats when modified by upgrades and behaviors.
So like I have a Unit with 5 range, a +1 range behavior, and a +1 range upgrade... how do I get a text to show 7 without making formula. Thanks in advance!
for the default unit values you could use the catalog functions as a basis.
and for the upgrades you could also use catalog values times the stage of the upgrade of a player.
but im not sure if this really works ... :-/
im also missing some smart unit stats functions such as ...
armor
sight range
and other values and for the weapons it would be also extremely useful to have functions which return the current attack damage, effect and attackspeed of a units weapon.
Yeah I don't really see any other way around it, Probably just gonna have to make some additions and subtractions in places to get the number I want. I have a map which changes stats around a lot with upgrades and behaviors and stuff, and it'd be so nice if they gave us something to reference the weapon damage, range, and attack speed.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to make a custom stats dialog, and I need to know how, if possible, to get the current units stats when modified by upgrades and behaviors.
So like I have a Unit with 5 range, a +1 range behavior, and a +1 range upgrade... how do I get a text to show 7 without making formula. Thanks in advance!
hiho,
for the default unit values you could use the catalog functions as a basis. and for the upgrades you could also use catalog values times the stage of the upgrade of a player. but im not sure if this really works ... :-/
im also missing some smart unit stats functions such as ...
armor sight range and other values and for the weapons it would be also extremely useful to have functions which return the current attack damage, effect and attackspeed of a units weapon.
Robbepop
Yeah I don't really see any other way around it, Probably just gonna have to make some additions and subtractions in places to get the number I want. I have a map which changes stats around a lot with upgrades and behaviors and stuff, and it'd be so nice if they gave us something to reference the weapon damage, range, and attack speed.