Is it possible to link an upgrade to a custom attribute (such as one that increases spell power), as well as making that upgraded attribute effect all living and newly produced units of that faction?
I've tried via data editing to no avail, as the upgrade cannot directly effect the points of an attribute (i tried increasing min, but that did nothing). I've also tried linking them with XML editing, but i don't understand its syntax. Finally I've tried using triggers, but i cannot figure out how that would work (it references "Triggering Player" and "Triggering Process Upgrade" but i cannot find how to call them).
Yes, I do it. I call it Global Unit Modifier and it's a single attribute behavior that I attach to every unit. This attribute can be upgraded which in turn upgrades every unit that player owns. It makes things a lot cleaner when doing mass upgrades.
you cant directly access the points but you can access the field on a behaviour which changes the points of an attribute (modification - attribute change)
Thank you, that has helped immensely, now i just have to deal with my upgrade shops problem (shared controlled upgrades effect the neutral units instead of the players)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is it possible to link an upgrade to a custom attribute (such as one that increases spell power), as well as making that upgraded attribute effect all living and newly produced units of that faction?
I've tried via data editing to no avail, as the upgrade cannot directly effect the points of an attribute (i tried increasing min, but that did nothing). I've also tried linking them with XML editing, but i don't understand its syntax. Finally I've tried using triggers, but i cannot figure out how that would work (it references "Triggering Player" and "Triggering Process Upgrade" but i cannot find how to call them).
Yes, I do it. I call it Global Unit Modifier and it's a single attribute behavior that I attach to every unit. This attribute can be upgraded which in turn upgrades every unit that player owns. It makes things a lot cleaner when doing mass upgrades.
How exactly do you do it? If its with triggers could you give me an example please.
you cant directly access the points but you can access the field on a behaviour which changes the points of an attribute (modification - attribute change)
Thank you, that has helped immensely, now i just have to deal with my upgrade shops problem (shared controlled upgrades effect the neutral units instead of the players)