-
Notifications
You must be signed in to change notification settings - Fork 33
Writing Triggers
Scripting is a complicated subject that has been addressed by documentation for MUSHclient itself. See the following pages for some help on writing triggers:
- MUSHclient documentation: triggers
- Introduction to scripting
- Making a simple trigger
- Making a script to count mobs killed
- Video showing how to make a trigger
- Scripting function list
- Complete online documentation for MUSHclient
In zMUD, if you make a pattern that looks like
This is a pattern
It will match on
HELLO This is a pattern FROM THE FUTURE!!!
Because zMUD's standard pattern format is sloppy and begins and ends with implicit "*"
.
MUSHclient works differently. MUSHclient's standard pattern format treats your pattern as if it begins with "^"
and ends with "$"
. There is no implicit allowance for extra garbage outside of the pattern. In MUSHclient if you want to catch
HELLO This is a pattern FROM THE FUTURE
and also just
This is a pattern
Then you would need to make your pattern something like
*This is a pattern*
Or switch to using regular expressions, which are much more expressive (but are trickier to get right).
See this forum post explaining how to translate the zMUD/CMUD multi-state trigger concept into MUSHclient triggers:
http://www.mushclient.com/forum/bbshowpost.php?bbsubject_id=10338
See the guide page on that subject here: Command-Line-Aliase-And-Triggers
Project Details
- Introduction
- Why Should I Use This?
- Installing and Upgrading
- Version Numbering
- Who makes this?
- Mac/Linux/BSD/etc
- License And Other Misc Project Info
Guide/FAQs
- FAQ
- Writing Aliases
- Writing Macros
- Writing Triggers
- Using Variables
- Using GMCP
- Command Line Aliases and Triggers
- Converting Scripts
- GMCP-only Channels
- Miniwindow Basics
- Changing the server address
Featured Components
- ASCII automap
- Text Substitution (sub and gag)
- GMCP driven world mapper
- Communication log window
- Copy with color codes
- Group monitor window
- Health bars
- Stats window
- Bigmap display
- Main output layout
- Automatic update checker
- Miniwindow Color Themes
- Easy DIY Miniwindows
Required Plugins (do not uninstall)
Useful Other Bits