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

[Trigger] Movement Trigger doesn't work properly

Status
Not open for further replies.
Level 1
Joined
Jul 19, 2007
Messages
4
  • 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?
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
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.
Top