Hello,
Until recently, I've stored character descriptions on my character object (PennMUSH system) and changed them as needed using some code I made. However, I'd prefer to be able to have the descriptions off-line rather than leading to <Output flushed> messages when I examine myself.
The system I currently use is involves storing the descriptions in attributes named <Name of Character>_Body## and so on, where <Name...> is the name of a character; sometimes I switch to other names to play other roles temporarily, so I have descriptions for those characters. My @desc contains a function that will look at three attributes (BODY, CLOTHES, EXTRA), where I store the name of the piece of desc I want (i.e., BODY: BODY01; CLOTHES: PANTS02; EXTRA: INSPECT01), and then grab them from me depending on my present name and which of the three I use (Sometimes I only use one part, more usually two, and sometimes three; and I suppose if it's possible having an unlimited number of variables would be best).
It seems to me that scripts might offer a solution.
Can scripts in MUSHclient pull data from plain text files (rather than databases), with minimal formatting so that it can parse them? I was thinking something like having a file for each character name, such as John_Doe Descs.txt. Then the descriptions for that character might be stored in a format like:
BODY01
<Description>
-
BODY02
<Description>
-
etc.
When I change desc, the script will recognize the name I currently have and pull from the appropriate file, setting each part of the desc into an attribute of the kind DESC_BODY, DESC_CLOTHES, etc.
Which script system would be best suited for this, and are there any scripts already made that already do some of the things I'm looking for?
Thanks.
Until recently, I've stored character descriptions on my character object (PennMUSH system) and changed them as needed using some code I made. However, I'd prefer to be able to have the descriptions off-line rather than leading to <Output flushed> messages when I examine myself.
The system I currently use is involves storing the descriptions in attributes named <Name of Character>_Body## and so on, where <Name...> is the name of a character; sometimes I switch to other names to play other roles temporarily, so I have descriptions for those characters. My @desc contains a function that will look at three attributes (BODY, CLOTHES, EXTRA), where I store the name of the piece of desc I want (i.e., BODY: BODY01; CLOTHES: PANTS02; EXTRA: INSPECT01), and then grab them from me depending on my present name and which of the three I use (Sometimes I only use one part, more usually two, and sometimes three; and I suppose if it's possible having an unlimited number of variables would be best).
It seems to me that scripts might offer a solution.
Can scripts in MUSHclient pull data from plain text files (rather than databases), with minimal formatting so that it can parse them? I was thinking something like having a file for each character name, such as John_Doe Descs.txt. Then the descriptions for that character might be stored in a format like:
BODY01
<Description>
-
BODY02
<Description>
-
etc.
When I change desc, the script will recognize the name I currently have and pull from the appropriate file, setting each part of the desc into an attribute of the kind DESC_BODY, DESC_CLOTHES, etc.
Which script system would be best suited for this, and are there any scripts already made that already do some of the things I'm looking for?
Thanks.