YATCO

Share your scripts and packages with other Mudlet users.
Knute
Posts: 87
Joined: Fri Mar 05, 2010 12:08 am

Re: YATCO 2.3

Post by Knute »

If you set up in your says trigger to have

Code: Select all

^[^\(]
What this does is create a class that if it has a parenthesis at the begining to NOT match. Disregard that pattern.
--
Knute

User avatar
demonnic
Posts: 884
Joined: Sat Dec 05, 2009 3:19 pm

Re: YATCO 2.3

Post by demonnic »

Still doesn't solve the issue with the fact you can modify the beginning of your says (at least in lusternia). They don't all start "So and so says" but sometimes have prefatory phrases which could be -anything-.

From the help file:
TALKING WITHOUT SAY
-------------------
There are other ways to talk, like say, but different too. Each one does
something a little different. Try them and see! They are:

Scream, whine, mutter, snarl, sing, chant, ask, exclaim, whisper, chitter,
purr, hiss, plead, roar, lisp, stammer, stutter, intone, ululate, chime,
lecture, recite, grunt, utter, remark, intimate, enunciate, shriek, yawn,
gasp, groan, sigh, cackle, rave, moan, squeal, murmur, brag, splutter,
wail, mumble, rasp, grump, orate, proclaim, state, opine, and assert.


SAYING AND LANGUAGE
-------------------
What you say is always spoken in one language or another. Most things you say
will probably be in the language LUSTERNIAN, but there are many other
possibilities. See HELP LANGUAGE and HELP ELDER LANGUAGE for some more ideas.


ASK AND EXCLAIM
---------------
ASK and EXCLAIM are variations on SAY which you get by using special
punctuation. To EXCLAIM, use two exclamation marks (!!). To ASK, use two
question marks (??).

SAY Don't you see, Lusternia is the greatest??
SAY Lusternia IS the greatest, and I am the greatest Lusternian!!


TALKING TO SOMEONE IN PARTICULAR
--------------------------------
You can SAY something to someone (player or mobile) this way:

SAY TO ROARK How could Lusternia exist without you?
SCREAM AT ROARK How could Lusternia exist without you?

This works for most of the forms (SCREAM, MUTTER, etc).


PREFATORY PHRASES
-----------------
Emoting can be tagged onto the say command using the following syntax:

Say (speaking in a harsh tone) You will bray for this, Fain.

Everyone sees:
Speaking in a harsh tone, Sior says, "You will bray for this, Fain."
And to make it 'worse', it will read emoticons in your says and change them... ending a say with :) changes it to "SoAndSo smiles and says..." etc.

Trying to do that with a regex trigger just isn't going to happen. The gmcp comm capture does fine with the says themselves, but still leaves the emotes hanging (No event is fired in Comm that I can find for emotes). I've yet to find a way to completely do without a color trigger if you're trying to get all says -and- emotes.

I'm not sure if the 'say' stuff is as flexible in other IRE muds though.

Knute
Posts: 87
Joined: Fri Mar 05, 2010 12:08 am

Re: YATCO 2.3

Post by Knute »

Code: Select all

^[^\(] (.*) says, (.*)
should do what you want it to do. Even though soandso smiles and says, soandso is not (smiling) and saying.
--
Knute

User avatar
demonnic
Posts: 884
Joined: Sat Dec 05, 2009 3:19 pm

Re: YATCO 2.3

Post by demonnic »

Hmm... but wouldn't handle SCREAM, SIGH, CACKLE, RAVE, etc. You could I suppose make one very big, or many smaller regex triggers. But those are expensive. You could even guard each with a substring trigger. But it seems like a lot more work than just changing my colours on says. And you're still SOL on emotes, since those can be 100% completely custom.

Also, that regex would fire on any help file which had " <anything> says, <anything>" and does not start with a (. I can envision something like the following in a help file
No matter what anyone says, you should not
And now you're capturing that line to your chat screen.

Knute
Posts: 87
Joined: Fri Mar 05, 2010 12:08 am

Re: YATCO 2.3

Post by Knute »

Cant you set up a timer that would turn it off for 3 seconds when you issued the comand HELP?
--
Knute

User avatar
demonnic
Posts: 884
Joined: Sat Dec 05, 2009 3:19 pm

Re: YATCO 2.3

Post by demonnic »

Still end up with having to make a bunch of triggers for all the different kinds of says, plus changing color on the emotes (or missing capture on a bunch of them) . I'm not saying it isn't valid, but imo the best bang for the buck is the color trigger. YMMV of course =)

phasma
Posts: 191
Joined: Sat Aug 03, 2013 7:00 pm
Discord: phasma#4694

Re: YATCO 2.3

Post by phasma »

Bit late in posting this, but I have noticed countless issues when using 3.0-dev. Whether it's Qt, Geyser or straight up Mudlet being the root cause, I really couldn't say, but they are there nonetheless.

TypeAskee
Posts: 1
Joined: Mon Aug 04, 2014 12:38 pm

Re: YATCO 2.3

Post by TypeAskee »

Alright, since for the most part you guys all seem to be playing IRE muds, I have a question that has to do with another MUD entirely. I'm trying to capture just the middle line of the following to the chat, but still suppress the whole thing. It's easy to set it up to capture all three lines, but I really just want the middle one.
Code: [show] | [select all] lua
08:33:59           [************--Rumour Monger--************]
08:33:59              ______ arrives in New Worlds.
08:33:59           [*****************************************]
Any easy way to do it? I'm pretty new to the scripting side of MUDs, and have no clue how to do what I'm trying to do. I love your tabbed client thing so far though! Even though I'm rather annoyed that New Worlds doesn't allow no wrapping server side.

Knute
Posts: 87
Joined: Fri Mar 05, 2010 12:08 am

Re: YATCO 2.3

Post by Knute »

There is a handy function that will help with this: string.findPattern<string>, <pattern).
So for this one you could capture the line or however (matches[1] works as well, and then search for a common pattern, such as arrives. Or, do the flip side and use a not pattern:

Code: Select all

if not string.findPattern(line, "*") then
      cecho("whatver")
This way it will display the line if the pattern does not match. And since the asterisk is also a wildcard character, I'm not sure if you need to backspace it or not.
--
Knute

Iktomi
Posts: 46
Joined: Sat Sep 03, 2011 4:00 am

Re: YATCO 2.3

Post by Iktomi »

Anyone know how to add a new line after each time chat gets sent to a window? I'd like each append to have a space in between to aid in reading it.

Post Reply