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

What's wrong with this trigger?

Status
Not open for further replies.
Level 1
Joined
Nov 22, 2008
Messages
5
This trigger tells my other trigger to activate.
  • WolfiesTesting
    • Events
      • Unit - A unit Starts the effect of an ability
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(thunderclap))
      • (Unit-type of (Ordered unit)) Equal to |c00BBA271Eskimo Tent
      • (Ability being cast) Equal to TTeleport
    • Actions
      • Trigger - Run WolfiesTwo <gen> (ignoring conditions)
Once this one activates, it is supposed to make my unit be instantly moved to the tent. But for some reason, it doesn't move. I concluded that the problem is within the triggers because the casting part works.
  • WolfiesTwo
    • Events
    • Conditions
    • Actions
      • Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
      • Set SFX1 = (Last created special effect)
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to (Owner of (Casting unit))) and ((Unit-type of (Matching unit)) Equal to |c00FF8000Eskimo Hunter))) and do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
          • Set SFX2 = (Last created special effect)
          • Unit - Move (Picked unit) instantly to (Position of (Casting unit))
          • Special Effect - Destroy SFX2
      • Special Effect - Destroy SFX1
      • Trigger - Turn off (This trigger)
Any help would be greatly appreciated.
 
Level 17
Joined
Jan 21, 2007
Messages
2,014
Your events and conditions seems rather fucked up if you ask me.

remove the following, because they do nothing but taking place.
Unit - A unit Is issued an order with no target
(Issued order) Equal to (Order(thunderclap))

Your main problem is that there is no (casting unit) in WolfieTwo
Make the whole trigger in the first one or create a variable which you define as (casting unit) in the first one.
 
Level 1
Joined
Nov 22, 2008
Messages
5
Your events and conditions seems rather fucked up if you ask me.

remove the following, because they do nothing but taking place.
Unit - A unit Is issued an order with no target
(Issued order) Equal to (Order(thunderclap))

Your main problem is that there is no (casting unit) in WolfieTwo
Make the whole trigger in the first one or create a variable which you define as (casting unit) in the first one.
Oh, I see. You're right. Fixed! Thanks! :grin:
 
Status
Not open for further replies.
Top