|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Mar 26, 2008 3:50 pm
New to zMUD |
So, I play Dark and Shattered Lands. I used to use simpleMU, it's far more simple than zMUD, but I was used to it. (I also happen to still like the simpleMU interface over zMUD ). However, a lot of the syntax in zMUD is different, so I was wondering where I might go to learn a lot of this. I was checking out some stuff on the support section, but I didn't see a "beginners guide to zMUD scripting" or a "zMUD syntax" article. Thus, your help would be appreciated.
Here's an example of why I need to know the syntax:
Quote: |
In simpleMU, I had a command /whisper that allowed me to direct whispers. Something like:
/whisper Joe How are you
would be sent to the mud as: pmote whispers (to Joe) 'How are you'
the way it was syntaxed in simpleMU was: whisper * * | pmote{w whispers (to {c%0{w) '{c%1{w'{x
My question is... how do I do this in zMUD?
|
Quote: |
#alias whisper {pmote whispers (to %1) ~'%2~'}
or #al for short. And you might want to use something like whis, or ww for the alias, seeing as the point of an alias is to make us lazy people write less.
|
Quote: |
I tried coloring:
pmote whispers (to ~{c%1~{w) ~'~{c%2~{w~'~{x
But, typing:
whisper something and lots
gets
pmote whispers (to something) 'and'lots
With "something" and "and" getting the color.
|
DSL (Dark and Shattered Lands) uses brackets ({) for color coding, so I was wondering what the escape command is so that when I put a bracket in for color, it isn't read by zMUD, and is only interpreted by the MUD. This is one of the many things I need to learn before making the switch.
Here's a screenshot of my simpleMU layout:
Someone said I could do it in zMUD, but every time I try to move or adjust a window, it wants to maximize. The design of zMUD is the only thing I don't like, if they need designers, I'd be more than happy to. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Mar 26, 2008 4:29 pm |
For that kind of complex screen layout, you'll need to use CMUD instead of zMUD. zMUD was rather limited on the type of docked window layout it could handle. zMUD hasn't been updated in several years and is more intended for older versions of Windows. If you want the latest "design" and features, then you should use CMUD instead...it goes way beyond SimpleMU.
In zMUD and CMUD, to "escape" a special character like % or the {} for you color codes, you put the ~ character in front of each. This prevents zMUD/CMUD from parsing it as an internal scripting character. Or, in CMUD you can use the #SEND command and put " quotes around the text you want to send to the MUD verbatim. |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Mar 26, 2008 4:54 pm |
Alright, I bought CMUD too, but I just made some triggers in zMUD, is there any way I can transfer them over?
Also, simpleMU didn't have a "log on script" per se, they had a "send on connect", which, for DSL, was more useful.
DSL recently introduced Master Accounts, so in order to log in, I need to do something like
y
[enter]
m
<account name>
<password>
p
<character name>
I could fill all of that out in simpleMU, and I had a different session for each character. This made it easier to manage triggers across characters by just having the triggers they need in the session relating to them. Can I do this in CMUD? |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Mar 26, 2008 5:10 pm |
To do a "send on connect" in CMUD, create an Event assigned to the OnConnect event. Anything in your event script will be executed/sent when you log in. You can either define an event for each character, or you can create a Shared Package that is used by each character and put the event into the shared package. Use the #CH command to send your character name, and the #PW command to send your password and it will send the values stored in the individual character sessions so that you don't have to hardcode anything in the event.
To transfer settings from zMUD to CMUD, run CMUD and in the Sessions window, select Import from zMUD in the File menu. |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Mar 26, 2008 5:15 pm |
Well, I make each session for a different character. So I probably wouldn't have multiple characters stored in one session. Thanks.
|
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Mar 26, 2008 5:19 pm |
How do I put in events?
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Mar 26, 2008 5:57 pm |
To fix your alias, change %2 to %-2. %2 is the second parameter (read: word) after the alias. %-2 is the second parameter and everything the follows it, which is what you want.
#event OnConnect {command1;command2}
Will second command1 and command2 to the MUD at startup. You'll need to not use the normal auto-login triggers to get this to work. |
|
|
|
|
|
|
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
|
|