- Joined
- Apr 24, 2005
- Messages
- 762
Okay so i wanted to have a passive skill which reduces the enemys armor by 1 each time the hero attacks. At first i tried having a negative Item Armor Bonus, but that spell can't be made negative for some reason... so i came up with this, it uses a dummy which acid bombs the target, the level of acid bomb being based on the custom value of the target. But for some reason it goes straight to -5 armor on the first hit, whats the problem?
-
Armor Reduction
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


(Unit-type of (Attacking unit)) Equal to Hero
-
-

Actions
-


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



If - Conditions
-




(Custom value of (Triggering unit)) Equal to 0
-
-



Then - Actions
-




Unit - Set level of Armor Reduction (-1) for DummyArmorRed to 1
-




Unit - Order DummyArmorRed to Neutral Alchemist - Acid Bomb (Triggering unit)
-




Unit - Set the custom value of (Triggering unit) to 1
-
-



Else - Actions
-
-


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



If - Conditions
-




(Custom value of (Triggering unit)) Equal to 1
-
-



Then - Actions
-




Unit - Set level of Armor Reduction (-1) for DummyArmorRed to 2
-




Unit - Order DummyArmorRed to Neutral Alchemist - Acid Bomb (Triggering unit)
-




Unit - Set the custom value of (Triggering unit) to 2
-
-



Else - Actions
-
-


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



If - Conditions
-




(Custom value of (Triggering unit)) Equal to 2
-
-



Then - Actions
-




Unit - Set level of Armor Reduction (-1) for DummyArmorRed to 3
-




Unit - Order DummyArmorRed to Neutral Alchemist - Acid Bomb (Triggering unit)
-




Unit - Set the custom value of (Triggering unit) to 3
-
-



Else - Actions
-
-


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



If - Conditions
-




(Custom value of (Triggering unit)) Equal to 3
-
-



Then - Actions
-




Unit - Set level of Armor Reduction (-1) for DummyArmorRed to 4
-




Unit - Order DummyArmorRed to Neutral Alchemist - Acid Bomb (Triggering unit)
-




Unit - Set the custom value of (Triggering unit) to 4
-
-



Else - Actions
-
-


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



If - Conditions
-




(Custom value of (Triggering unit)) Equal to 4
-
-



Then - Actions
-




Unit - Set level of Armor Reduction (-1) for DummyArmorRed to 5
-




Unit - Order DummyArmorRed to Neutral Alchemist - Acid Bomb (Triggering unit)
-
-



Else - Actions
-
-
-







