|
Corwin Newbie
Joined: 02 May 2002 Posts: 0
|
Posted: Sat Mar 30, 2002 5:31 am
Simultaneous Scripting |
Why don't any of the available mud clients support running two or more scripts at the same time?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Mar 30, 2002 8:05 am |
quote:
Why don't any of the available mud clients support running two or more scripts at the same time?
ZMud can run up to 3 different script files all at once--DEFAULT.MUD, MyInheritedSettings.MUD, and MySettings.MUD.
Now, that's obviously not what you asked. But I think your problem requires a solution involving rewriting significant portions of the codebase to handle process threading--ZMud and most/all mud clients do not handle this and from what I can tell it's rather tricky business. Even if he had the time, it's doubtful Zugg would be willing to rewrite that much code.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Corwin Newbie
Joined: 02 May 2002 Posts: 0
|
Posted: Sat Mar 30, 2002 10:54 am |
I don't quite understand. You're saying Zmud can run up to 3 different script files all at once but it isn't what I'm looking for? Are you saying that these are not "real" scripts that you could execute from the command line one after another?
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Mar 30, 2002 10:05 pm |
If you are asking if zMud is multi-threaded
I believe the answer is no.
Ton Diening |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Mar 31, 2002 1:32 am |
What do YOU mean by two or more scripts?
zMUD can run many "scripts" simultaneously, depending on how you define the term. Those scripts are contained in the 3 files which Matt mentioned, but each file can contain many scripts. To answer your question in any meaningful way, we'd have to know WHAT IT IS THAT YOU WANT TO DO.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
Corwin Newbie
Joined: 02 May 2002 Posts: 0
|
Posted: Sun Mar 31, 2002 11:01 am |
I meant I wanted to have a script waiting during roundtime of some action and have the other script running to catch things that the first one couldn't as a result of waiting. Zugg actually emailed me and clarified everything...it turns out Zmud is capable of running as many scripts as you have triggers...the catch is NONE of those scripts could work together if one was waiting for something, at least that's how I understood it. Fortunately, there are ways to work around this according to him but, being the novice I am at the moment, I have no idea how that's going to work. He mentioned something about #ALARMS and "other Zmud features" so let the research begin ;).
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Mar 31, 2002 6:02 pm |
Indeed you want to use #ALARM for that
kind of concept.
Search out roundtime and you'll find
things on that topic in these forums.
Ton Diening |
|
|
|
|
|