• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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