• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Movement Trigger doesn't work properly

Status
Not open for further replies.

Artanis_

A

Artanis_

  • Spawning
    • Ereignisse
      • Zeit - Every 30.00 seconds of game time
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Ogre (Boss) 0089 <gen> is alive) Gleich True
        • 'THEN'-Aktionen
          • Set TempPoint = (Center of Ogre Spawn <gen>)
          • Einheit - Create 1 Ogre-Warrior (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Create 1 Ogre-Mage (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Create 1 Ogre-Lord (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Custom script: call RemoveLocation( udg_TempPoint )
        • 'ELSE'-Aktionen
  • Movement
    • Ereignisse
      • Einheit - A unit enters Ogre Spawn <gen>
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Owner of (Triggering unit)) Gleich Neutral feindlich
        • 'THEN'-Aktionen
          • Set TempMovementPoint = (Center of Middle <gen>)
          • Einheit - Order (Triggering unit) to Angreifen/Bewegen nach TempMovementPoint
          • Custom script: call RemoveLocation( udg_TempMovementPoint )
        • 'ELSE'-Aktionen
They go to the half of the way to "Middle" and then they turn back.
Only when they enter "Ogre Spawn" again they go to "Middle".
Why?
 
I don't know why it doesn't work, but either way I'd do this in 1 trigger:
  • Spawning
    • Ereignisse
      • Zeit - Every 30.00 seconds of game time
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Ogre (Boss) 0089 <gen> is alive) Gleich True
        • 'THEN'-Aktionen
          • Set TempPoint = (Center of Ogre Spawn <gen>)
          • Einheit - Create 1 Ogre-Warrior (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Order (Last Created unit) to Angreifen/Bewegen nach center of Middle
          • Einheit - Create 1 Ogre-Mage (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Order (Last Created unit) to Angreifen/Bewegen nach center of Middle
          • Einheit - Create 1 Ogre-Lord (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Order (Last Created unit) to Angreifen/Bewegen nach center of Middle
          • Custom script: call RemoveLocation( udg_TempPoint )
        • 'ELSE'-Aktionen
 
Status
Not open for further replies.
Back
Top