Armageddon General Discussion Board

General => Code Discussion => Topic started by: Reiteration on April 18, 2012, 02:56:38 AM

Title: Share them triggers (Mud Clients)
Post by: Reiteration on April 18, 2012, 02:56:38 AM
I just reformatted my computer, and was restoring some triggers on my fresh CMud installation, and thought maybe some people would like to share some trigger expressions.

Note: Keep skill-specific triggers to yourself, please, magic included.

Trigger that matches room titles:

Regular Expression: (?<room>.*) \[[NSEW,Quit ]*\]
zScript: ($room:*) ~[[NSEW,Quit ]*~]$

This will match all room titles, so you can set up an action to highlight it or what-not.

Trigger that matches the line that precedes what a merchant is selling:

Regular Expression: (?<merchant>.*) has the following goods to trade:
zScript: ($merchant:*) has the following goods to trade:

Trigger that matches shop entries:

Regular Expression: (?<id>[\d]*)\) (?<item>.*) for (?<cost>[\d]*) obsidian coins
zScript: ($id:%d)~) ($item:*) for ($cost:%d) obsidian coins
Title: Re: Share them triggers (Mud Clients)
Post by: Quittle on April 23, 2012, 11:49:18 PM
Cool. Thanks  :)

... When Armageddon Reborn comes out, though, I want to exchange some maps of the original Arm. I'm pretty happy with my collection, but I'm sure others have more thorough ones which look cooler. Unless old content is being reused and/or the staff frowns on such.
Title: Re: Share them triggers (Mud Clients)
Post by: Cutthroat on April 24, 2012, 08:33:52 AM
I use these expressions to color different forms of speech, mostly to be able to keep track of things directed to/from me.

Talk:
At your table, you say in (.*):
At your seat, you say in (.*):
At your table, (.*) says in (.*):
At your seat, (.*) says in (.*):

Tell:
You (ask|say to|exclaim to) (.*):
(.*) you (ask|say to|exclaim to) (.*):

Whisper:
(.*) whispers to you, (.*):
You whisper to (.*):
(.*) you whisper to (.*):

Listen:
At (.*), you overhear (.*):

Shout:
You hear(.*)voice shout from (.*) in (.*):

Contact:
(.*) sends you a telepathic message:
You send a telepathic message to (.*):
Title: Re: Share them triggers (Mud Clients)
Post by: Barzalene on May 25, 2013, 08:26:50 PM
In CMUD can I make use magenta in a trigger as in
Text that triggers trigger
#COLOR magenta

Will it know what magenta is?
Title: Re: Share them triggers (Mud Clients)
Post by: Agent_137 on May 26, 2013, 03:01:26 PM
Triggers are really handy. Thank you for sharing.

Here's a good post from an older thread that has a lot of useful triggers etc for MUSHclient:
Quote from: Archbaron on August 22, 2012, 11:05:35 PM
The community is free to have my MUSHclient world file (http://www.mediafire.com/?jtm7510mczjayql) with my color triggers and a few aliases, since Aaron's has disappeared. It's not perfect, but I've used it without any serious modifications for about 5 years. It's based off of spawnloser's old world file he shared a few years back. If anyone has issues with it or needs help modifying it, I'll help out, but what's provided should be enough to learn from.
Title: Re: Share them triggers (Mud Clients)
Post by: Molten Heart on May 26, 2013, 04:06:06 PM
Quote from: Barzalene on May 25, 2013, 08:26:50 PM
In CMUD can I make use magenta in a trigger as in
Text that triggers trigger
#COLOR magenta

Will it know what magenta is?

Yes it will know.
Title: Re: Share them triggers (Mud Clients)
Post by: Barzalene on May 26, 2013, 04:34:59 PM
Thanks!
Title: Re: Share them triggers (Mud Clients)
Post by: Molten Heart on May 26, 2013, 04:49:34 PM
Though your idea of what magenta is may be different than CMUD's. :-)