- Joined
- Aug 11, 2009
- Messages
- 1,606
Ok,i have the following triggers in my map.I know it leaks,it is just fast made to see if it is working.I guess i do something wrong cause it doesn't work exactly as planned.Any suggestions?Here are the triggers:
-
BuffFelOrcTowers
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Hashtable - Create a hashtable
-
Set Effect_Hash = (Last created hashtable)
-
-
-
MSFelOrcTowers
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Triggering unit) is A structure) Equal to True
-
(Owner of (Triggering unit)) Equal to Player 8 (Pink)
-
(Unit-type of (Triggering unit)) Equal to Fel Orc Watch Tower
-
-
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Human\MagicSentry\MagicSentryCaster.mdl
-
Hashtable - Save Handle Of(Last created special effect) as (Key (Last created special effect)) of (Key (Picked unit)) in Effect_Hash
-
-
Else - Actions
-
-
-
-
-
-
RemoveBuffTowers
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A structure) Equal to True
-
(Owner of (Triggering unit)) Equal to Player 8 (Pink)
-
(Unit-type of (Triggering unit)) Equal to Fel Orc Watch Tower
-
-
Actions
-
Special Effect - Destroy (Load (Team number of Player 1 (Red)) of (Key (Picked unit)) in Effect_Hash)
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in Effect_Hash
-
-