Anyone needing/wanting help with zMUD?

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Scizzor
Posts: 68
Joined: Mon May 04, 2015 2:20 am

Re: Anyone needing/wanting help with zMUD?

Post by Scizzor » Wed Dec 16, 2015 1:11 am

Taziar,
You seem to have a way with coding for sure. I went about the colors thing very different though. Simply put:

Code: Select all

#TRIGGER {(Your) (bash) (at) (*) (sends) (*) (sprawling!)} {#PCOL tomato %x1;#PCOL mediumvioletred %x2;#PCOL fuchsia %x3;#PCOL steelblue %x4;#PCOL aquamarine %x5;#PCOL mintcream %x6;#PCOL olivedrab %x7} "Scripts|Melee"
Basically just.

Trigger, and color each segment something different. And I've been using this since i started using zMUD in 2002ish... Not quite rainbow, but pretty! I just reversed the colors for being bashed as well. You should see my stab land colors! haha.

Taziar
Posts: 952
Joined: Sat Mar 21, 2015 10:28 pm
Location: !Discord

Re: Anyone needing/wanting help with zMUD?

Post by Taziar » Wed Dec 16, 2015 10:37 am

Very cool :)

Ahaks
Posts: 9
Joined: Sat Aug 01, 2015 11:45 am

Re: Anyone needing/wanting help with zMUD?

Post by Ahaks » Sun Dec 20, 2015 5:40 pm

Anyone help me make a narrates/tells/says/hisses window in cmud?

Lyren
Posts: 305
Joined: Thu Mar 26, 2015 12:03 pm
Contact:

Re: Anyone needing/wanting help with zMUD?

Post by Lyren » Mon Dec 21, 2015 8:44 pm

#CLASS {Comms}
#TRIGGER {You narrate '*'$} {#CAPTURE CommWindow}
#TRIGGER {%x narrates '*'$} {#CAPTURE CommWindow}
#CLASS 0

That's for narrates, I'm sure you can figure out the rest. Just add more triggers in there.

Taziar
Posts: 952
Joined: Sat Mar 21, 2015 10:28 pm
Location: !Discord

Re: Anyone needing/wanting help with zMUD?

Post by Taziar » Tue Dec 22, 2015 12:26 am

Any particular reason for %x instead of * or %w ?

Scizzor
Posts: 68
Joined: Mon May 04, 2015 2:20 am

Re: Anyone needing/wanting help with zMUD?

Post by Scizzor » Tue Dec 22, 2015 2:21 am

I assume it's so that it captures anything vs. capturing just a word.

%x match any amount of non-white space
%w match any number of alpha characters (a-z) (a word)

http://forums.zuggsoft.com/modules/mx_k ... =doc&k=627

Taziar
Posts: 952
Joined: Sat Mar 21, 2015 10:28 pm
Location: !Discord

Re: Anyone needing/wanting help with zMUD?

Post by Taziar » Tue Dec 22, 2015 11:12 am

I hear that Scizzor... im just wondering why (or more so if there is a certain reason that makes it the better choice)? I guess i have not used %x enough to see how it works. If you want everything before the narrate why not the wild card for everything * ? Or why not just a word with %w since all pc narrates are going to have the player's name right before. The way %x reads to me is it will include anything before the word narrate that doesn't have a space or tab included. I guess that is pretty much the same as %w as they both will pattern match a pc name in this case, just %x could have numbers or other characters instead even though our names at WoTmud are all a-z.

Thore
Posts: 389
Joined: Sun Mar 22, 2015 2:06 am

Re: Anyone needing/wanting help with zMUD?

Post by Thore » Tue Dec 22, 2015 12:27 pm

I believe sometimes multi-word mobs narrate, %x would catch those?

Ahaks
Posts: 9
Joined: Sat Aug 01, 2015 11:45 am

Re: Anyone needing/wanting help with zMUD?

Post by Ahaks » Tue Dec 22, 2015 12:57 pm

Thanks!

Taziar
Posts: 952
Joined: Sat Mar 21, 2015 10:28 pm
Location: !Discord

Re: Anyone needing/wanting help with zMUD?

Post by Taziar » Tue Dec 22, 2015 2:14 pm

Thore wrote:I believe sometimes multi-word mobs narrate, %x would catch those?
%x will match that? But there is white space between the words... I will have to do some testing when I get the chance.

Good catch on the mobs narrating Thore, that is a good reason for not using %w :)

Post Reply