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
Flow
Newbie


Joined: 12 Dec 2003
Posts: 8

PostPosted: Sat Dec 20, 2003 12:02 am   

Queues...
 
Ok, so i got my queue up and running - it adds the alias to eat the herb, and rattles them off as i regain herbbalance - well, it should. If there's one thing on the list it's fine:

#IF (@herblist) {@herblist} {#VAR balherb 0}

How do i do it so it only gives the first command on herblist? Atm it goes blah|blah|blah if there's more than one. I just want the first
Reply with quote
Flow
Newbie


Joined: 12 Dec 2003
Posts: 8

PostPosted: Sat Dec 20, 2003 12:06 am   
 
I thought it was something like:

(@herblist,1)


but i don't know
Reply with quote
Ins0mniak
Apprentice


Joined: 27 Apr 2001
Posts: 110

PostPosted: Sat Dec 20, 2003 12:20 am   
 
#IF (%numitems(@herblist) > 0) {%item(@herblist,1)} {#VAR balherb {0}}

quote:
Originally posted by Flow

Ok, so i got my queue up and running - it adds the alias to eat the herb, and rattles them off as i regain herbbalance - well, it should. If there's one thing on the list it's fine:

#IF (@herblist) {@herblist} {#VAR balherb 0}

How do i do it so it only gives the first command on herblist? Atm it goes blah|blah|blah if there's more than one. I just want the first

Reply with quote
Flow
Newbie


Joined: 12 Dec 2003
Posts: 8

PostPosted: Sat Dec 20, 2003 12:31 am   
 
OK - working now. I was sure it was something simple :)
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