• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Trigger isn't working..

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
  • HeroPick01
    • Events
      • Player - (Owner of Wisp 0002 <gen>) Selects a unit
      • Unit - A unit enters Hero Pick Region <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Entering unit)) Equal to (Picked player)
            • Then - Actions
              • Wait 1.00 seconds
              • Unit - Move (Entering unit) instantly to (Center of The Destroyers Region <gen>)
              • Unit - Explode Wisp 0002 <gen>
            • Else - Actions
              • Do nothing
where is the mistake?
 
Level 5
Joined
Jun 24, 2009
Messages
118
wrong answer!

I know, but if I pick with Player(Red) hero will pick but he will not enter to next region and wisp wont explode..That what u said isn't my problem..
 
The trigger is a mess actually. That wisp is a pre-set unit, which means that it already does have an owner. Double click it in the World Editor and it will show you the owner. Since you want it to work for Player 1 (Red), then have this trigger instead:
  • Trigger
  • Events
    • Selection - Player 1 (Red) selects a unit
  • Conditions
    • ((Unit-type of (Triggering unit)) Not Equal to Wisp
  • Actions
    • Set Point1 = (Position of (Wisp 0002 <gen>))
    • If/ Then/ Else
      • If (Conditions)
        • ((Hero Pick Region <gen>) contains (Point1)) Equal to True (This is a Boolean condition)
      • Then (Actions)
        • Unit - Explode Wisp 0002 <gen>
        • Set Point2 = (Center of (The Destroyers Region <gen>))
        • Unit - Move (Triggering unit) instantly to Point2
        • Custom script: call RemoveLocation (udg_Point2)
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 5
Joined
Jun 24, 2009
Messages
118
Well,there's a two Taverns - Light and Dark and also two teams - The Destroyers and The Guards. Each team have his region 2 creeping and team1 can' walk into team2 region. That's why I need to create that for all players separately.I can use Picked Player (Enemies of playerX) and create only two triggers.I will try to do it by myself coz this is differend map - original idea by me. :) So,my new trigger:
Trigger

  • Events
    • Player - Player 1 (Red) Selects a unit
  • Conditions
    • (Unit-type of (Triggering unit)) Not equal to Wisp
  • Actions
    • Set Point1 = (Position of Wisp 0002 <gen>)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Hero Pick Region <gen> contains Point1) Equal to True
        • ((Triggering unit) is A Hero) Equal to True
      • Then - Actions
        • Wait 1.00 seconds
        • Unit - Explode Wisp 0002 <gen>
        • Set Point2 = (Center of The Destroyers Region <gen>)
        • Unit - Move (Triggering unit) instantly to Point2
        • Custom script: call RemoveLocation (udg_Point2)
      • Else - Actions
    • Custom script: call RemoveLocation (udg_Point1)
Works fine for me. :)

Solved.
 
Status
Not open for further replies.
Top