- Joined
- Jun 1, 2009
- Messages
- 576
hi guys, this is trigger that i use in my map. I want to know what in this trigger couse so much lag and how to fix this:
-
Pick Cat
-
Events
-
Unit - A unit Sells a unit
-
-
Conditions
-
((Sold unit) is A Hero) Equal to True
-
-
Actions
-
Unit - Remove (Random unit from (Units owned by (Owner of (Sold unit)) of type Pick Cat)) from the game
-
Unit - Remove (Sold unit) from the game
-
Unit - Create 1 (Unit-type of (Sold unit)) for (Owner of (Sold unit)) at (Random point in Center <gen>) facing (Position of (Triggering unit))
-
Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 0.00 seconds
-
Selection - Select (Last created unit) for (Owner of (Last created unit))
-
If (Add_Santa Equal to True) then do (Hero - Create |cffFF0000Santa Hat and give it to (Last created unit)) else do (Do nothing)
-
Game - Display to (All players) for 5.00 seconds the text: (Player_Colors[(Player number of (Owner of (Buying unit)))] + ((Name of (Owner of (Buying unit))) + (|r + ( |cffC0C0C0picked|r + (|cff8080FF + ((Proper name of (Sold unit)) + |r))))))
-
-