- Joined
- Aug 19, 2007
- Messages
- 109
Please dont complain about the unnecssary amount of actions, and just concentrate on the problem XD, I have this here ability:
-The unit hides for 11 seconds, the unit re-appears after that time.
-Thats it.
I know i don't really need the 2nd part to work involving the burrowing. I just need to now why the first part does not work involving the dummy units casting impale. I tried creating just a normal footman and giving it impale to cast...it did not work. Why is that? Please help!
The ability is MEANT to: create 10 dummys, order each to spike/impale around the casting unit. then make the casting unit hide/11 seconds then re-appear.
-
Hit and Run
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Hit and Run
-
Actions
- Set Temp_Point1 = (Position of (Casting unit))
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 90.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 126.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 162.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 198.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 234.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 270.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 306.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 342.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 18.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Add Impale (Derek's) to (Last created unit)
- Unit - Set level of Impale (Derek's) for (Last created unit) to (Level of Hit and Run for (Casting unit))
- Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 54.00 degrees)
- Unit - Order (Last created unit) to Undead Crypt Lord - Impale Temp_Point2
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Temp_Point2)
- Unit - Hide (Casting unit)
- Unit - Create 1 Hit and Run Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing (Facing of (Casting unit)) degrees
- Unit - Order (Last created unit) to Undead Crypt Fiend - Burrow
- Custom script: call RemoveLocation (udg_Temp_Point1)
- -------- After Looping 10 times at several intervals in a circle around the caster of "Impale" ability then: --------
- Set HitandRun_UNIT = (Last created unit)
- Set HITANDRUN_CastingUNIT = (Casting unit)
- Wait 10.00 game-time seconds
- Unit - Order HitandRun_UNIT to Undead Crypt Fiend - Unburrow
- Wait 1.00 game-time seconds
- Unit - Remove HitandRun_UNIT from the game
- Unit - Unhide HITANDRUN_CastingUNIT
- Selection - Select HITANDRUN_CastingUNIT for (Owner of HITANDRUN_CastingUNIT)
-
Events
-The unit hides for 11 seconds, the unit re-appears after that time.
-Thats it.
I know i don't really need the 2nd part to work involving the burrowing. I just need to now why the first part does not work involving the dummy units casting impale. I tried creating just a normal footman and giving it impale to cast...it did not work. Why is that? Please help!
The ability is MEANT to: create 10 dummys, order each to spike/impale around the casting unit. then make the casting unit hide/11 seconds then re-appear.