|  | 
	
	
		| arturweb Newbie
 
 
 Joined: 04 Feb 2003
 Posts: 4
 Location: Falkland Islands
 
 | 
			
			  |  Posted: Tue Feb 04, 2003 12:16 pm 
 Clear command buffer command in zMud
 
 |  
				| Is there a command that will clear the command buffer. For example before to pu before #WA command to clear the previous wait? 
 |  | 
	
	  |  | 
	
		|  | 
	
		| arturweb Newbie
 
 
 Joined: 04 Feb 2003
 Posts: 4
 Location: Falkland Islands
 
 | 
			
			  |  Posted: Tue Feb 04, 2003 12:17 pm 
 |  
				| And sorry for the double post ) 
 |  | 
	
	  |  | 
	
		|  | 
	
		| Kjata GURU
 
  
 Joined: 10 Oct 2000
 Posts: 4379
 Location: USA
 
 | 
			
			  |  Posted: Tue Feb 04, 2003 12:41 pm 
 |  
				| You shouldn't be using #WAIT at all, but doing #WAIT 0 should cancel any wait pending. 
 Kjata
 |  | 
	
	  |  | 
	
		|  | 
	
		| arturweb Newbie
 
 
 Joined: 04 Feb 2003
 Posts: 4
 Location: Falkland Islands
 
 | 
			
			  |  Posted: Tue Feb 04, 2003 12:44 pm 
 |  
				| Why I shouldnt be using wait? (Forgive me for I am new with zMud =)
 |  | 
	
	  |  | 
	
		|  | 
	
		| Kjata GURU
 
  
 Joined: 10 Oct 2000
 Posts: 4379
 Location: USA
 
 | 
			
			  |  Posted: Tue Feb 04, 2003 12:54 pm 
 |  
				| Well, it can cause some unwanted side-effects: 
 
 quote:
 NOTE: The WAIT command can cause processing of any other active WAIT command to halt.  Do not use nested WAIT commands.  Do not use the WAIT command in a trigger if the same trigger might fire again before the WAIT is complete.  In general, you should try to use the #ALARM command instead of using #WAIT.
 
 
 
 It is also explained in more detail in this article.
 
 Generally, almost anything that you want to do that you think you need a #WAIT to accomplish, can be done by using alarms.
 
 Kjata
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |