• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Ability Problem #5

Status
Not open for further replies.
Level 6
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:
  • 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)
What happens is:
-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.:cry:
 
Level 9
Joined
Jan 23, 2008
Messages
384
OK first of all its a lot of crap there you should use a loop effect to order all that ... like this :
  • 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))
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set Temp_Point2 = (Temp_Point1 offset by 300.00 towards 36.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)
          • 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))
          • Custom script: call RemoveLocation (udg_Temp_Point2)
      • Custom script: call RemoveLocation (udg_Temp_Point1)
      • 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)
OK if you placed your effects good this should work perfectly ... but the burrow crap ... i think that won't ... that's my opinion ... hoped i helped ... :thumbs_up:

This must be a key trigger for ya' :cute:

Edit: lol Berzeker cool timing >.<
 
Status
Not open for further replies.
Top