-
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 has 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.
See this forum post explaining how to translate the zMUD/CMUD multi-state trigger concept into MUSHclient triggers:
https://www.mushclient.com/forum/bbshowpost.php?bbsubject_id=10338
See the guide page on that subject here: Command Line Aliases And Triggers
The short answer is that you can't do it with MUSHclient triggers, but you can do something else. Read Using-GMCP to learn about how to do this from inside plugins.
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