Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
methonis
Beginner


Joined: 16 Dec 2002
Posts: 13

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Mar 06, 2003 10:11 pm   
 
Could you post the actual command as you are using it and not the pseudo-code?

Kjata
Reply with quote
methonis
Beginner


Joined: 16 Dec 2002
Posts: 13

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
methonis
Beginner


Joined: 16 Dec 2002
Posts: 13

PostPosted: 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
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: 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)
Reply with quote
methonis
Beginner


Joined: 16 Dec 2002
Posts: 13

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net