- Joined
- Sep 19, 2012
- Messages
- 204
Hey guys...
I am (again
) working on a new project and i am stuck with a specific Trigger right now. It works...well... most of the time, but it isnt very efficient (not mentioning the leaks im still too lazy to fix).
My brain just decided that it doesnt want to work anymore, so i have no clue how to fix it.
Somebody who can help me out quick?
What i want it to do:
Create a special ward in the middle of a lane. When the player has a certain research, place a ward in the middle of all 4 lanes.
Greetings CodeBlack
I am (again
My brain just decided that it doesnt want to work anymore, so i have no clue how to fix it.
Somebody who can help me out quick?
-
Add mobs
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Blessing Light
-
-
Then - Actions
-
Item - Remove (Item being manipulated)
-
Set temp_point = (Position of (Hero manipulating item))
-
Unit - Create 1 Cast Dummy for (Owner of (Hero manipulating item)) at temp_point facing Default building facing degrees
-
Custom script: call RemoveLocation (udg_temp_point)
-
Set tempcaster = (Last created unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current research level of Bless Allies for (Owner of (Hero manipulating item))) Equal to 1
-
-
Then - Actions
-
Unit - Order tempcaster to Orc Witch Doctor - Healing Ward (Center of Lane1 <gen>)
-
Wait 1.00 seconds
-
Unit - Order tempcaster to Orc Witch Doctor - Healing Ward (Center of Lane2 <gen>)
-
Wait 1.00 seconds
-
Unit - Order tempcaster to Orc Witch Doctor - Healing Ward (Center of Lane3 <gen>)
-
Wait 1.00 seconds
-
Unit - Order tempcaster to Orc Witch Doctor - Healing Ward (Center of Lane4 <gen>)
-
-
Else - Actions
-
Unit - Order tempcaster to Orc Witch Doctor - Healing Ward ((Position of (Hero manipulating item)) offset by 1400.00 towards 0.00 degrees)
-
-
-
Wait 0.50 seconds
-
Unit - Remove tempcaster from the game
-
-
Else - Actions
-
-
-
What i want it to do:
Create a special ward in the middle of a lane. When the player has a certain research, place a ward in the middle of all 4 lanes.
Greetings CodeBlack