• 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.

Triggering unit into variable unit type?

Status
Not open for further replies.
Level 7
Joined
Dec 5, 2013
Messages
280
I need unit event to refer variable unit type instead of selecting unit from the map because the unit is not in the map when game begins.
 
Level 7
Joined
Dec 5, 2013
Messages
280
Trigger is for dummyunit when hero casts trigger spell. I cant select the hero in event because hero must be bought so naturally its not in the game when game begins.

  • Unit - unit starts the effect of an ability
  • Ability being cast equal to triggerspell
  • Unit - create 1 effectunit for player 1 at position of triggering unit facing default building facing degrees
  • Unit - add spell to last created unit
  • Unit - order last created unit to special doomguard - rain of fire position of triggering unit
  • wait 10 seconds
  • Unit- remove last created unit from the game
 
Level 7
Joined
Dec 5, 2013
Messages
280
I added suggested changes but nothing happens.

  • Player - Player 1 red selects unit
  • Unit type of triggering unit equal to Hero and Ability being cast equal to triggerspell
  • Unit - create 1 effectunit for player 1 at position of triggering unit facing default building facing degrees
  • Unit - add spell to last created unit
  • Unit - order last created unit to special doomguard - rain of fire position of triggering unit
  • wait 10 seconds
  • Unit- remove last created unit from the game
 
Level 7
Joined
Dec 5, 2013
Messages
280
You can see the trigger from that aswell. First line is event and second is condition, rest are actions.
 
Level 7
Joined
Dec 5, 2013
Messages
280
I solved the issue by making event generic unit event "unit starts the effect of an ability" and condition is ability being cast equal to trigger spell.
 
Status
Not open for further replies.
Top