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 » Thu Jul 03, 2014 10:46 pm

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: 531
Joined: Sat Dec 05, 2009 3:19 pm

Re: YATCO 2.3

Post by demonnic » Thu Jul 03, 2014 10:58 pm

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 » Fri Jul 04, 2014 1:31 am

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: 531
Joined: Sat Dec 05, 2009 3:19 pm

Re: YATCO 2.3

Post by demonnic » Fri Jul 04, 2014 1:46 am

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 » Fri Jul 04, 2014 2:29 am

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: 531
Joined: Sat Dec 05, 2009 3:19 pm

Re: YATCO 2.3

Post by demonnic » Fri Jul 04, 2014 3:48 am

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 =)

fetaera
Posts: 191
Joined: Sat Aug 03, 2013 7:00 pm

Re: YATCO 2.3

Post by fetaera » Thu Jul 17, 2014 8:14 am

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 » Mon Aug 04, 2014 12:42 pm

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 » Tue Aug 05, 2014 10:22 pm

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 » Thu Aug 07, 2014 1:16 am

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

Who is online

Users browsing this forum: No registered users and 2 guests