Greetings chaps,
I'm trying to create a certain mechanic for group of units:
They generate mana when taking damage and dealing damage (Hidden searing arrow and mana shield), and have minus mana regeneartion, so over time their mana is decreasing.
Based on how much mana they have, I want them to have:
However, I'm having trouble with triggers detecting their mana level.
This is an example of trigger that adds the trained unit type to the second trigger which detects mana level:
Got any ideas how to fix the problem?
Also I have this question, will such triggers cause lag problems? With a map's size comparable to Azeroth Wars/LTA and it's type of gameplay?
I'm trying to create a certain mechanic for group of units:
They generate mana when taking damage and dealing damage (Hidden searing arrow and mana shield), and have minus mana regeneartion, so over time their mana is decreasing.
Based on how much mana they have, I want them to have:
- 0 - 100 mana, units have: -15% damage, +2 armor
- 100 - 200 mana, units have no bonuses
- 200 - 400 mana, units have: +25% damage, -2 armor
However, I'm having trouble with triggers detecting their mana level.
This is an example of trigger that adds the trained unit type to the second trigger which detects mana level:
-
Rage On Train
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Owner of (Trained unit)) Equal to Player 7 (Green)
-
-
Actions
-
Unit - Order (Trained unit) to Neutral Naga Sea Witch - Activate Mana Shield
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Trained unit)) Equal to Dragonrider [Corrupted]
-
(Unit-type of (Trained unit)) Equal to Orc Crossbowman [Corrupted]
-
(Unit-type of (Trained unit)) Equal to Grunt [Corrupted]
-
(Unit-type of (Trained unit)) Equal to Wolfrider [Corrupted]
-
(Unit-type of (Trained unit)) Equal to Warchief [Corrupted]
-
(Unit-type of (Trained unit)) Equal to Ravager [Corrupted]
-
-
-
-
Then - Actions
-
Trigger - Add to Rage Paths mana <gen> the event (Unit - (Trained unit)'s mana becomes Greater than or equal to 100.00)
-
Trigger - Add to Rage Paths mana <gen> the event (Unit - (Trained unit)'s mana becomes Greater than or equal to 200.00)
-
Trigger - Add to Rage Paths mana <gen> the event (Unit - (Trained unit)'s mana becomes Less than or equal to 200.00)
-
Trigger - Add to Rage Paths mana <gen> the event (Unit - (Trained unit)'s mana becomes Less than or equal to 100.00)
-
-
Else - Actions
-
-
-
-
Rage Paths mana
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Mana of (Triggering unit)) Less than 100.00
-
-
Then - Actions
-
Unit - Set level of Rage Bonus Damage Aura for (Triggering unit) to 1
-
Unit - Set level of Rage Armor Bonus [Rage Path] for (Triggering unit) to 1
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Mana of (Triggering unit)) Less than 200.00
-
(Mana of (Triggering unit)) Greater than or equal to 100.00
-
-
-
-
Then - Actions
-
Unit - Set level of Rage Bonus Damage Aura for (Triggering unit) to 2
-
Unit - Set level of Rage Armor Bonus [Rage Path] for (Triggering unit) to 2
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Mana of (Triggering unit)) Greater than or equal to 200.00
-
-
Then - Actions
-
Unit - Set level of Rage Bonus Damage Aura for (Triggering unit) to 3
-
Unit - Set level of Rage Armor Bonus [Rage Path] for (Triggering unit) to 3
-
-
Else - Actions
-
-
-
Got any ideas how to fix the problem?
Also I have this question, will such triggers cause lag problems? With a map's size comparable to Azeroth Wars/LTA and it's type of gameplay?
Last edited: