- Joined
- Jan 14, 2008
- Messages
- 366
-
capture building
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Infiltration
-
-

Actions
-


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



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






(Life of (Target unit of ability being cast)) Less than or equal to (0.50 x (Max life of (Target unit of ability being cast)))
-
-
-
-



Then - Actions
-




Set Temp_Point1 = (Position of (Triggering unit))
-




Set Temp_Point2 = (Position of (Target unit of ability being cast))
-




Set Temp_Point3 = (Position of (Casting unit))
-




Unit - Remove (Triggering unit) from the game
-




Special Effect - Create a special effect at Temp_Point1 using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
-




Special Effect - Destroy (Last created special effect)
-




Special Effect - Create a special effect at Temp_Point2 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-




Special Effect - Destroy (Last created special effect)
-




Special Effect - Create a special effect at Temp_Point3 using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
-




Special Effect - Destroy (Last created special effect)
-




Game - Display to (Player group((Owner of (Triggering unit)))) the text: |c0000FF00Building ...
-




Advanced - Only for (Owner of (Triggering unit)) play QuestLog <gen>
-




Game - Display to (Player group((Owner of (Target unit of ability being cast)))) the text: |c00FF0000Building ...
-




Advanced - Only for (Owner of (Target unit of ability being cast)) play Warning <gen>
-




Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
-




Custom script: call RemoveLocation (udg_Temp_Point1)
-




Custom script: call RemoveLocation (udg_Temp_Point2)
-




Custom script: call RemoveLocation (udg_Temp_Point3)
-
-



Else - Actions
-




Advanced - For (Owner of (Triggering unit)) display The target building is not damaged enough. as error message
-




Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 150.00)
-
-
-
-
thats the complete trigger. the "set mana to manaof... + 150" action aswell as the "change unit ownership" action are being completely ignored.
whoever all other actions execute properly. why is this?