• 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] How do I skip a loop?

Status
Not open for further replies.
Level 19
Joined
Oct 29, 2007
Messages
1,184
  • For each (Integer A) from 1 to 50, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • bool_path Equal to True
        • Then - Actions
          • Custom script: set a = a-5
          • Custom script: call RemoveLocation(udg_tmp_loc2)
          • Custom script: set udg_tmp_loc2 = PolarProjectionBJ(udg_tmp_loc, a, GetUnitFacing(udg_Player[udg_tmp_integer-1]))
          • Custom script: set udg_bool_path = IsTerrainPathingType(GetLocationX(udg_tmp_loc2), GetLocationY(udg_tmp_loc2), TERRAIN_PATHING_WALKABLE)
        • Else - Actions
          • Custom script: call RemoveLocation(udg_tmp_loc2)
          • Custom script: call SetCameraFieldForPlayer( Player(udg_tmp_integer-1), CAMERA_FIELD_TARGET_DISTANCE, I2R(-a), 0.08 )
          • AND HERE I WANT THE LOOP TO END
How do skip the remaining loop when the else occurs? : 0
 
Status
Not open for further replies.
Top