|  | 
	
	
		| fhqwhgad Novice
 
 
 Joined: 07 Feb 2005
 Posts: 38
 
 
 |  | 
	
	  |  | 
	
		|  | 
	
		| Larkin Wizard
 
  
 Joined: 25 Mar 2003
 Posts: 1113
 Location: USA
 
 | 
			
			  |  Posted: Sat Dec 15, 2007 5:41 pm 
 |  
				| It would help if you posted the script. It's entirely possible that #ABORT isn't really what're you're looking for, and we'll be able to offer advice on how to make the script stop executing when we see the entire logical flow. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| fhqwhgad Novice
 
 
 Joined: 07 Feb 2005
 Posts: 38
 
 
 | 
			
			  |  Posted: Sat Dec 15, 2007 5:44 pm 
 |  
				| Didn't think of that. Anywhere here it is. It is in an alias. 
 
 
	  | Code: |  
	  | $roomnum = 100603; #show Monsters program started..
 #loop %1 {
 #wait 500;
 goto $roomnum;
 $roomnum = $roomnum + %random(1,7);
 #if ($roomnum>100662) {
 #abort;
 }
 $doordie = %random(1,3);
 #sw ($doordie=1)
 {
 resets 1 mob 100601 7 1
 }
 ($doordie=2) {
 resets 1 mob 100602 7 1
 }
 ($doordie=3) {
 resets 1 mob 100603 7 1
 }
 }
 |  |  | 
	
	  |  | 
	
		|  | 
	
		| fhqwhgad Novice
 
 
 Joined: 07 Feb 2005
 Posts: 38
 
 
 | 
			
			  |  Posted: Sat Dec 15, 2007 6:14 pm 
 |  
				| Turns out #break is a good thing to use here :) 
 |  | 
	
	  |  | 
	
		|  | 
	
		| Tech GURU
 
  
 Joined: 18 Oct 2000
 Posts: 2733
 Location: Atlanta, USA
 
 | 
			
			  |  Posted: Sat Dec 15, 2007 6:44 pm 
 |  
				| You probably want to use the new #EXIT command instead of #ABORT, or you could us.  It's in version 2.18. 
 |  | 
	
	  | 
		    
			  | _________________ Asati di tempari!
 |   |  | 
	
		|  | 
	
		|  | 
	
		|  |