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


Joined: 30 Apr 2002
Posts: 0
Location: United Kingdom

PostPosted: Tue Mar 26, 2002 5:01 pm   

Character Name
 
I wish to create an atconnect alias that begins a log whenever my character logs in. That's easy enough, but i've got multiple characters for one MUD, and I don't want the others logged. Please Help.

Justin

#IF (#CH == "Orwen") {#LO AL.doc}

That doesn't work. #CH just doesn't work the way I need it to. Is there any other function or way to reference a current character's name within code? I've already searched through the docs, but maybe I'm missing something.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Tue Mar 26, 2002 5:43 pm   
 
The #CHARACTER command cannot be set in the settings menu. It gets its information from the character database. Even if all your characters use the same primary and inherited settings files, you can still set up multiple character entries in the character database.

Right-click on the character file and select properties. Choose the Character tab. You will see boxes for the Character's name and password, as well as your preferred Session ID.

Choose the Files tab to set your primary and inherited settings files for the character. Typically, the inherited settings file is used for the triggers and aliases common to all the characters on the same MUD. The primary file is for character-specific settings.

Keep your Autolog triggers in the inherited settings file and use the #CHARACTER command.

Troubadour
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Mar 26, 2002 8:50 pm   
 
Another method if you are using the same
.mud file for multiple characters is to
change your log in character name trigger
in the hidden folder Autolog

From:
Trigger: What is your out of character account name?
Script:
#CH

To:

Trigger: What is your out of character account name?
Script:
#VAR v_ch %prompt(Orwen,"Character: ")
@v_ch
#LOG AL_@v_sh.doc
Options
[x] prompt
[ ] newline
etc
Ton Diening
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Mar 26, 2002 9:55 pm   
 
Also

#IF (%char == "Orwen") {#LO AL.doc}

Ton Diening
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