For my Medieval Tech Wars map, I plan on using a Morale system that will affect alot of the gameplay. So basically I've replaced Mana with Morale. Each spawned unit has some sort of feedback (mana rupture depends on weapon/unit type), so that they drain morale each time they attack.
Some units drain more than others, for example, Conscripts drain 5 morale, while a Silver Templar can drain up to 40.
Once Morale reaches 0, the unit deals 80% less damage, and has 150% reduced armor.
Morale is restored either by certain units abilities, like the Captain's Rally Ability, or either over time.
I've run into some trouble while triggering this to work. So far I've created 2 auras that target's SELF, one for reduced damage, one for reduced armor.
So when a unit reaches 0 morale, i just add the two auras via triggers. Now, the problem is how to detect how much morale a unit has.
This goes the same for restoring morale, I dont know how to detect how much morale the unit has so i can remove both auras.
some help plz?
Some units drain more than others, for example, Conscripts drain 5 morale, while a Silver Templar can drain up to 40.
Once Morale reaches 0, the unit deals 80% less damage, and has 150% reduced armor.
Morale is restored either by certain units abilities, like the Captain's Rally Ability, or either over time.
I've run into some trouble while triggering this to work. So far I've created 2 auras that target's SELF, one for reduced damage, one for reduced armor.
So when a unit reaches 0 morale, i just add the two auras via triggers. Now, the problem is how to detect how much morale a unit has.
This goes the same for restoring morale, I dont know how to detect how much morale the unit has so i can remove both auras.
some help plz?