- Joined
- Sep 29, 2006
- Messages
- 447
I've made an ability called defensive matrix, and basically it drains mana per second and give you increased armor. However, it doesn't seem to work when I have an item that increases armor. The way I made the ability was: I used immolation so I can get the mana drain per second and I just add and remove different abilities based on Item Armor Bonus (I think this is where the conflict arises). Basically if I have an armor increasing item and I use defensive matrix, no additional armor is added. Does anybody know why this is happening and how to fix it?
I don't think this is a trigger related issue but I will post them anyway:
I don't think this is a trigger related issue but I will post them anyway:
-
defensive matrix on
-

Events
-


Unit - A unit Is issued an order with no target
-
-

Conditions
-


(Issued order) Equal to (Order(immolation))
-


(Unit-type of (Triggering unit)) Equal to Shock Trooper
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Defensive Matrix (Shock Trooper) for (Triggering unit)) Equal to 1
-
-



Then - Actions
-




Unit - Add Defensive Matrix Armor Bonus (+4) to (Triggering unit)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Level of Defensive Matrix (Shock Trooper) for (Triggering unit)) Equal to 2
-
-





Then - Actions
-






Unit - Add Defensive Matrix Armor Bonus (+6) to (Triggering unit)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Defensive Matrix (Shock Trooper) for (Triggering unit)) Equal to 3
-
-







Then - Actions
-








Unit - Add Defensive Matrix Armor Bonus (+8) to (Triggering unit)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Level of Defensive Matrix (Shock Trooper) for (Triggering unit)) Equal to 4
-
-









Then - Actions
-










Unit - Add Defensive Matrix Armor Bonus (+10) to (Triggering unit)
-
-









Else - Actions
-
-
-
-
-
-
-
-
-
-
defensive matrix off
-

Events
-


Unit - A unit Is issued an order with no target
-
-

Conditions
-


(Issued order) Equal to (Order(unimmolation))
-


(Unit-type of (Triggering unit)) Equal to Shock Trooper
-
-

Actions
-


Unit - Remove Defensive Matrix Armor Bonus (+4) from (Triggering unit)
-


Unit - Remove Defensive Matrix Armor Bonus (+6) from (Triggering unit)
-


Unit - Remove Defensive Matrix Armor Bonus (+8) from (Triggering unit)
-


Unit - Remove Defensive Matrix Armor Bonus (+10) from (Triggering unit)
-
-
-
defensve matrix mana check
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


Set TempGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Shock Trooper))
-


Unit Group - Pick every unit in TempGroup and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Mana of (Picked unit)) Less than 3.00
-
-





Then - Actions
-






Unit - Remove Defensive Matrix Armor Bonus (+4) from (Picked unit)
-






Unit - Remove Defensive Matrix Armor Bonus (+6) from (Picked unit)
-






Unit - Remove Defensive Matrix Armor Bonus (+8) from (Picked unit)
-






Unit - Remove Defensive Matrix Armor Bonus (+10) from (Picked unit)
-
-





Else - Actions
-
-
-
-
-
-
defensive matrix death
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Shock Trooper
-
-

Actions
-


Unit - Remove Defensive Matrix Armor Bonus (+4) from (Triggering unit)
-


Unit - Remove Defensive Matrix Armor Bonus (+6) from (Triggering unit)
-


Unit - Remove Defensive Matrix Armor Bonus (+8) from (Triggering unit)
-


Unit - Remove Defensive Matrix Armor Bonus (+10) from (Triggering unit)
-
-







