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
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Thu Jun 20, 2002 3:08 am   

Stringlist
 
I cant figure out the command structure to make this happen.
I have a stringlist coffer|trunk|strongbox
and another for Equipment |mask|boots|

in the first I want it to do this
pick the coffer
open the coffer
drop the coffer
sac the coffer
then pick the next coffer
I have that part all done thanks to a previous post and some help
on the trigger
I see no coffer here
I want it to move to the next item in the list. I cant figure that part out :)

for the equipment list I am tired of dying and putting on the wrong eq when i say wear all and so want to store all the "proper" eq in a string and when I hit the wear all alias it will one by one wear each consecutive item in the list :)

If ya know how to do this please let me know :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jun 20, 2002 6:16 am   
 
Use a variable
#VAR boxes {coffer|trunk|strongbox}
#VAR box {%item(@boxes,1)}

pick the @box
open the @box
drop the @box
sac the @box

#TR {I see no @box here} {#IF (%ismember(@box,@boxes) < %numitems(@boxes)) {#VAR box {%item(@boxes,%ismember(@box,@boxes)+1)}}

---------------

#FORALL @Equipment {wear %i)

LightBulb
Senior Member
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