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


Joined: 21 Aug 2002
Posts: 3
Location: Australia

PostPosted: Thu Oct 03, 2002 7:30 am   

Stringlists? Arrays? Help?
 
What I want to do is create a variable called healies that has in it all the different kinds of healing things, like potion, goop etc.

How do I make it so that typing the single word will make me use either of those items, depending on what I have on me?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Oct 03, 2002 6:03 pm   
 
Use %additem to add things to the variable. You can create an alias to do this for you. Another alias can be used for the healing itself.
#AL addheal {#VAR healies {%additem(%1,@healies)}
#AL healies {use %item(@healies,1);#DELNITEM @healies 1}


LightBulb
Senior Member
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Thu Oct 03, 2002 6:19 pm   
 
I believe the addheal alias may need another closing curly brace at the end.

#AL addheal {#VAR healies {%additem(%1,@healies)}}
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