|
DemonLlama Beginner
Joined: 03 Nov 2002 Posts: 27 Location: USA
|
Posted: Mon Nov 04, 2002 12:01 am
Variable/alias list |
Okay, if this is answered elsewhere, I apologize, but....
I'm looking for a way to have a class folder (say, "RandomEmotes") with a bunch of aliases inside of it. Now, when I use the alias I'll write (call it "rr"), it'll randomly select an alias from RandomEmotes.
I have two do-able ideas. One is a simple text file called "emotes.txt" in the zMUD dir. I can swing that already, so lets move on.
The second idea is using a database that has two fields: an id number (1, 2, etc), and the actual emote. I'm not as familiar with databases, so that'll take some reading, but I'm pretty sure I can swing that.
The third option I'm looking for is this: is there a way to have zMUD automatically (or upon an alias/trigger) populate a list of all variables/aliases/whatever in a class folder?
Thanks in advance! |
|
|
|
Sirius Newbie
Joined: 09 Oct 2002 Posts: 9 Location: USA
|
Posted: Mon Nov 04, 2002 12:37 am |
An Example:
Making Random things:
#VAR emote {slaps you|hits you|cuts you|}
#ALIAS rr {emote %item(emote %item(@emote,%random(1,3))}
So when you type "rr" it will randomly input emote {then whatever you put into the variable} |
|
|
|
DemonLlama Beginner
Joined: 03 Nov 2002 Posts: 27 Location: USA
|
Posted: Mon Nov 04, 2002 2:08 am |
Okay, then I guess my next question would have to be... is there any sort of size limit on a variable, or is the sky the limit? It's going to be used in a roleplaying mud, so each emote's going to be along the lines of:
emote leans heavily on his staff, while breathing heavily from exertion.
emote presses his fingertips to the bridge of his nose, sighing in irritation.
emote looks up with a startled expression on his face, obviously coming back from being lost in though.
etc etc etc...
If not, it seems like it would be rather easy to add or delete emotes to it. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Nov 04, 2002 2:57 am |
quote:
Okay, then I guess my next question would have to be... is there any sort of size limit on a variable, or is the sky the limit? It's going to be used in a roleplaying mud, so each emote's going to be along the lines of:
emote leans heavily on his staff, while breathing heavily from exertion.
emote presses his fingertips to the bridge of his nose, sighing in irritation.
emote looks up with a startled expression on his face, obviously coming back from being lost in though.
etc etc etc...
If not, it seems like it would be rather easy to add or delete emotes to it.
You're limited only by available memory.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|
|
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
|
|