- Joined
- Aug 19, 2007
- Messages
- 109
Heres another ability trigger in my map where ability is meant to:
-Every time COTG(A Hero unit which stays the same throughout the entire game) casts an ability which' order string is "shockwave" (Note:No other ability the hero has, uses that order string)
-Then it creates a unit which has the "Phoenix fire" ability and damages nearby units and:
-Then orders the last created unit to patrol to position of ordered point.
-It gives that same unit an expiration timer.
But heres there problem: It works only once, when I try to cast the ablity again, the unit isnt created- thus the trigger doesnt work and something must be wrong but what??

-Every time COTG(A Hero unit which stays the same throughout the entire game) casts an ability which' order string is "shockwave" (Note:No other ability the hero has, uses that order string)
-Then it creates a unit which has the "Phoenix fire" ability and damages nearby units and:
-Then orders the last created unit to patrol to position of ordered point.
-It gives that same unit an expiration timer.
But heres there problem: It works only once, when I try to cast the ablity again, the unit isnt created- thus the trigger doesnt work and something must be wrong but what??


-
Throw Sword
-
Events
-
Unit - A unit Is issued an order targeting a point
-
-
Conditions
-
(Ordered unit) Equal to COTG
-
(Issued order) Equal to (Order(shockwave))
-
-
Actions
-
Set Temp_Point = (Target point of issued order)
-
Set Temp_Point2 = (Position of COTG)
-
Unit - Create 1 Thrown Sword for (Owner of COTG) at Temp_Point2 facing (Facing of COTG) degrees
-
Unit - Order (Last created unit) to Patrol To Temp_Point
-
Unit - Add Sword Cut (For Thrown Sword COTG) to (Last created unit)
-
Unit - Set level of Sword Cut (For Thrown Sword COTG) for (Last created unit) to (Level of Throw Sword (Dummy Shockwave) for COTG)
-
Unit - Add a 4.50 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
Custom script: call RemoveLocation (udg_Temp_Point2)
-
-