• 🏆 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] Hai Guys! Movement Problem (Really Wierd)

Status
Not open for further replies.
Level 2
Joined
Oct 30, 2009
Messages
20
hey their!

well im not exaclty a big world editor, and i know that its leaking probably lol, but for some reason i have this really strange problem. When order units to move around to another region after entering one, they leave, then like 5 seconds after leaving decide im coming back, this happens around 3 times then they finally reach the other region. Then it happens again later here is the trigger (they are all the same)

  • Tko To Sk
    • Events
      • Unit - A unit enters Tko Bus Stop <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Bus
    • Actions
      • Set BusRoutes[(Custom value of (Triggering unit))] = Sai Kung
      • Floating Text - Create floating text that reads (This Bus Is Going To: + BusRoutes[(Custom value of (Triggering unit))]) above Adolescent Male (Male 2) 0078 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
      • Unit Group - Pick every unit in Busses[(Custom value of (Triggering unit))] and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Position of (Triggering unit))
          • Unit - Unhide (Picked unit)
          • Unit Group - Remove (Picked unit) from Busses[(Custom value of (Triggering unit))]
          • Player - Set (Owner of (Picked unit)) Current gold to (((Owner of (Picked unit)) Current gold) - (Random integer number between 1 and 10))
          • Camera - Reset camera for (Owner of (Picked unit)) to standard game-view over 0.00 seconds
      • Unit Group - Pick every unit in (Units in Sai Kung Bus Line <gen>) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Peasant
            • Then - Actions
              • Unit - Add Board Bus (Ability) to (Picked unit)
            • Else - Actions
      • Wait 15.00 seconds
      • Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Triggering unit))) and do (Actions)
        • Loop - Actions
          • Unit - Remove Board Bus (Ability) from (Picked unit)
      • Set Temp_Point = (Center of Sai Kung Bus Stop <gen>)
      • Unit - Order (Triggering unit) to Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)
 
Level 2
Joined
Oct 30, 2009
Messages
20
This is not a trigger problem. This is from "Advanced" -> Gameplay Constants -> Creeps - Guard Return Distance (Change it to 9999999) and Creeps - Guard Return Time (the same 9999 value).

dude your a genius! omg thanks so much :D
 
Status
Not open for further replies.
Top