• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

What's wrong with this trigger?

Status
Not open for further replies.

Surgey.

S

Surgey.

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.
 
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.
 
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.
Back
Top