Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Septe
Novice


Joined: 12 Oct 2000
Posts: 38
Location: USA

PostPosted: Wed Dec 26, 2007 8:48 pm   

Help with multiple chars
 
Ok, I play on a mud with four chars, not multiplaying. What I'm trying to do is figure out how to best sort common triggers and aliases to be left in the mud package and yet have either folders or packages that run that's specific to those chars. A good example is switching managear. Each char has different gear because they're at different levels. I've tried to create a separate package and include it on the char but the scripts won't work if I'm in the mud package and vice versa if I'm in the char package.

If anyone can help me with this or suggest a better alternative. I've thought of creating folders that are enabled based on the char name that's coming on but that's ignoring the package ability...just throwing thoughts out there.

Thanks,

Septe
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Dec 26, 2007 11:13 pm   
 
Make sure that variables, aliases and whatnot you want to be available to other packages are in modules set to the global or external options. Anything in a window or a local module can't be used from other packages.

So the best way would be to keep a variable with the character's gear in a global module within the session package, and generic code for handling that list of gear in a global module of the shared package.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Septe
Novice


Joined: 12 Oct 2000
Posts: 38
Location: USA

PostPosted: Wed Dec 26, 2007 11:34 pm   
 
Interesting, I did make sure the char package was global mode and it still did not work. Do we have an example of such a package? I did try the library but wasn't able to get anything to load. I'll keep working at this, trying to understand what I have here.

Thanks,
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 27, 2007 12:06 am   
 
In the absence of being able to sit at your computer and see, some screenshots of the package editor viewing the modules in question would be helpful, since it'd give us an idea of what you've done with your setup. You can upload them to www.imageshack.us.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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