• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Fire Ball Ability

Status
Not open for further replies.
Level 4
Joined
Oct 15, 2008
Messages
77
u want to give the dummy unit the ability and run a trigger like this
  • Unit - Create 1 (Dummy Unit) for (Triggering player) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
and then run this for a single dummy unit
You will need to set a variable for the dummy unit to cast the ability
Like so
  • Set hero_select_unit = (Random unit from (Units of type hero select))
and then run this for a single dummy unit

  • Unit - Order (Dummy unit) to Neutral - Firebolt (Target unit of issued order)
this is if you have multiple dummy units

  • Unit Group - Pick every unit in (Units of type (Dummy Unit)) and do (Actions)
    • Loop - Actions
      • Unit - Order (Dummy Unit) to Neutral - Firebolt (Casting unit)

just remember the variable. and to destroy the variable after the end. or if you're not going to use that variable for anything else u can set it at intialization.

so all together should look like this
  • frost impale 2
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to firebolt
      • (Level of firebolt for (Triggering unit)) Equal to 1
    • Actions
      • Set hero_select_unit = (Random unit from (Units of type hero select))
      • Unit - Order (Picked unit) to Neutral - Firebolt (Target unit of issued order)
      • Unit - Remove (Picked unit) from the game
 
Status
Not open for further replies.
Top