|  | 
	
	
		| methonis Beginner
 
 
 Joined: 16 Dec 2002
 Posts: 13
 
 
 | 
			
			  |  Posted: Thu Mar 06, 2003 9:53 pm 
 Dumb
 
 |  
				| Hi there, this is probably a really dumb question, but here goes: All I'd like to do is execute a command to pick something until it's all gone. So I figured I could do this: Set up an alias called pp
 
 #Until (do you wish to pick?) {pick %1}
 
 But when I typed pp iorthir, it only picks one time. Do I have to set it as a @ var instead of a % or what?
 
 Thanks,
 
 Meth
 |  | 
	
	  |  | 
	
		|  | 
	
		| Kjata GURU
 
  
 Joined: 10 Oct 2000
 Posts: 4379
 Location: USA
 
 | 
			
			  |  Posted: Thu Mar 06, 2003 10:11 pm 
 |  
				| Could you post the actual command as you are using it and not the pseudo-code? 
 Kjata
 |  | 
	
	  |  | 
	
		|  | 
	
		| methonis Beginner
 
 
 Joined: 16 Dec 2002
 Posts: 13
 
 
 | 
			
			  |  Posted: Thu Mar 06, 2003 11:31 pm 
 |  
				| I think this is what you're asking for: 
 #ALIAS pp
 #UNTIL (do you wish to pick?) {pick %1}
 
 Command I enter into the mud:
 pp iorthir
 
 Returns:
 You pick a batch of iorthir.
 Right hand ready.
 
 I just want it to keep picking the iorthir, or whatever sting I give it until there is no more to pick, in which case the mud will send back:
 
 'What, exactly, do you wish to pick?'
 
 I thought the #until command would be good for this situation, but I'm probably wrong.
 
 Thanks,
 
 Meth
 |  | 
	
	  |  | 
	
		|  | 
	
		| Kjata GURU
 
  
 Joined: 10 Oct 2000
 Posts: 4379
 Location: USA
 
 | 
			
			  |  Posted: Fri Mar 07, 2003 1:39 am 
 |  
				| Yes, the #UNTIL command is not used for that. What you need is a set of triggers in which one of them disables the other when you can't pick anymore. Example: #ALIAS pp {#VAR item {%1};pick @item;#T+ pickTrig}
 #TRIGGER "pickTrig" {You pick} {pick @item}
 #TRIGGER {What, exactly, do you wish to pick?} {#T- pickTrig}
 
 Kjata
 |  | 
	
	  |  | 
	
		|  | 
	
		| methonis Beginner
 
 
 Joined: 16 Dec 2002
 Posts: 13
 
 
 | 
			
			  |  Posted: Fri Mar 07, 2003 7:08 am 
 |  
				| Aha. That worked perfectly. And makes sense to me. *grin* If ya have a chance, could you give me an example on when and how the #UNTIL command would be used? 
 Meth
 |  | 
	
	  |  | 
	
		|  | 
	
		| Troubadour GURU
 
 
 Joined: 14 Oct 2000
 Posts: 556
 Location: USA
 
 | 
			
			  |  Posted: Fri Mar 07, 2003 7:40 am 
 |  
				| A simple example of #UNTIL would be: 
 batches = 0
 #UNTIL (@batches = 12) {pick %1; #ADD batches 1}
 
 Troubadour
   (Win 98, Pentium III, 550 MHz)
 |  | 
	
	  |  | 
	
		|  | 
	
		| methonis Beginner
 
 
 Joined: 16 Dec 2002
 Posts: 13
 
 
 | 
			
			  |  Posted: Fri Mar 07, 2003 9:04 am 
 |  
				| Alrighty, thanks a lot. I have one more question. This should be on the beta forum, but I can't get into it. 
 Everytime I log onto the mud, after inputting my username and password it asks if I want to create an autologin script. I click don't ask again, yet everytime I log in, it pops up. This hadn't happened with the previous versions of zmud I've had, so I'm assuming it's something with the beta.
 
 Any clues?
 
 Thanks again,
 
 Meth
 |  | 
	
	  |  | 
	
		|  | 
	
		| Kjata GURU
 
  
 Joined: 10 Oct 2000
 Posts: 4379
 Location: USA
 
 | 
			
			  |  Posted: Fri Mar 07, 2003 12:50 pm 
 |  
				| Edit the properties for that character (in the Character Selection screen), and in the Character tab uncheck "Automatically use this character name and password to log in". 
 Kjata
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |