|
razoxane Newbie
Joined: 21 Aug 2002 Posts: 3 Location: Australia
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
doomfyre Apprentice
Joined: 03 Jan 2002 Posts: 152 Location: USA
|
Posted: 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)}} |
|
|
|
|
|