To stop a loop in GUI, could you use the loop variable function and just set the variable to above one end of the loop? For example:
Code:
For each (Integer Temp_value) from (1 + (200 + ((Team number of (Triggering player)) - 1))) to (200 + (200 x ((Team number of (Triggering player)) - 1))), do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Pawn_Shop_Items[Temp_value]
Then - Actions
Else - Actions
Set Temp_value=1000