• 🏆 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!

Im trying to make HZG but it dont work can you help me?

Status
Not open for further replies.
Level 3
Joined
Apr 26, 2008
Messages
26
  • Unit - A unit Finishes casting an ability
  • (Ability being cast) Equal to Hellzone Grenade (Real--Level 1)
  • Set Hellzone_Loc = (Target point of ability being cast)
  • Unit - Pause (Casting unit)
  • Animation - Play (Casting unit)'s spell animation
  • Unit - Create 1 Hellzone Grenade (Level 1) for (Triggering player) at (Position of (Triggering unit)) facing (Position of (Target unit of ability being cast))
  • Unit Group - Add (Last created unit) to Hellzone_Unit_group
  • Unit - Order (Last created unit) to Move To (Random point in range of Hellzone_Loc, with a maximum range of 500.00)
  • Wait 0.50 seconds
  • Unit - Pause (Last created unit)
  • Animation - Play (Casting unit)'s spell animation
  • Unit - Create 1 Hellzone Grenade (Level 1) for (Triggering player) at (Position of (Triggering unit)) facing (Position of (Target unit of ability being cast))
  • Unit Group - Add (Last created unit) to Hellzone_Unit_group
  • Unit - Order (Last created unit) to Move To (Random point in range of Hellzone_Loc, with a maximum range of 500.00)
  • Wait 0.50 seconds
  • Unit - Pause (Last created unit)
  • Animation - Play (Casting unit)'s spell animation
  • Unit - Create 1 Hellzone Grenade (Level 1) for (Triggering player) at (Position of (Triggering unit)) facing (Position of (Target unit of ability being cast))
  • Unit Group - Add (Last created unit) to Hellzone_Unit_group
  • Unit - Order (Last created unit) to Move To (Random point in range of Hellzone_Loc, with a maximum range of 500.00)Wait 0.50 seconds
  • Unit - Pause (Last created unit)
  • Wait 0.50 seconds
  • Unit - Pause (Last created unit)
  • Animation - Play (Casting unit)'s spell animation
  • Unit - Create 1 Hellzone Grenade (Level 1) for (Triggering player) at (Position of (Triggering unit)) facing (Position of (Target unit of ability being cast))
  • Unit Group - Add (Last created unit) to Hellzone_Unit_group
  • Unit - Order (Last created unit) to Move To (Random point in range of Hellzone_Loc, with a maximum range of 500.00)
  • Wait 0.50 seconds
  • Unit - Pause (Last created unit)
  • Animation - Play (Casting unit)'s spell animation
  • Unit - Create 1 Hellzone Grenade (Level 1) for (Triggering player) at (Position of (Triggering unit)) facing (Position of (Target unit of ability being cast))
  • Unit Group - Add (Last created unit) to Hellzone_Unit_group
  • Unit - Order (Last created unit) to Move To (Random point in range of Hellzone_Loc, with a maximum range of 500.00)
  • Unpause all units
  • Unit Group - Pick every unit in Hellzone_Unit_group and do (Actions)
    • Loop - Actions
  • Unit Group - Order Hellzone_Unit_group to Attack (Target unit of ability being cast)
  • Unit Group - Remove all units from Hellzone_Unit_group
ok i jsut want ask do every one know why this dont work im kinda noob with variables and unit group functions but im kinda experienced with other triggers
if some dont know HZG(Hellzone Grenade) is spell what piccolo uses so he shoots blast around enemy and when all blasts are around enemy piccolo orders blast to attack to enemy.

btw this triggers is my rysis and calahans incoming map DBL(dragonball legacy)

EDIT: problem is when i cast spell those dummy hellzones dont go random point around enemy instead of it they charge to middle can you tell whats going on?
 
Last edited:
Level 3
Joined
Apr 26, 2008
Messages
26
Problem is All Hellzone units charge to middle instread of attacking enemy (target unit ability being cast) spell is made from storm bolt so enemy stuns when piccolo casts spell
 
Level 5
Joined
Aug 27, 2007
Messages
138
Are you using locust on the units to make them unselectable? If so, then you can't pick them with most "pick every unit" functions.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Umm how about this
  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Hellzone Grenade (Real--Level 1)
  • Actions
    • Set *unit* = (Target unit of ability being cast)
    • For each Integer A from 0 to 4 do
      • Animation - Play (Casting unit)'s spell animation
      • Unit - Create 1 Hellzone Grenade (Level 1) for (Triggering player) at (Position of (casting unit))) facing (Position of (Target unit of ability being cast))
      • Unit - Order (Last created unit) to move to (Random point in (Region centered at (Position of *unit*) with size (500.00, 500.00))
      • Wait 0.5 seconds
    • Wait 1.00 seconds
    • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Hellzone Grenade (Level 1) and do Unit - Order (Picked unit) to attack *unit*
Freetyped, so there may be minor changes..
By the way, check in the WE how long the casting units' spell animation lasts and adjust the "wait" command for better results ;)

Alkonis said:
Are you using locust on the units to make them unselectable? If so, then you can't pick them with most "pick every unit" functions.
Yes you can..
 
Level 3
Joined
Apr 26, 2008
Messages
26
There is one problem i have made damage so when hellzone unit attacks it dies and it have ability Aoe damage upon death what makes damage so if i dont pause all helzones grenades they go automaticly attack random enemies...
 
Status
Not open for further replies.
Top