-
Notifications
You must be signed in to change notification settings - Fork 12
Triggers
Damian Monogue edited this page Apr 11, 2024
·
14 revisions
As with all things muddler, the trigger objects are described using a json file. Note that while you can include lua code in the script key, this is not really how it is meant to be used. It can be handy for short snippets you don't want to make a new file for though.
The \
character in json strings is the escape character, so for regex and the like you need to escape it in order to get the actual backslash. IE ^You have (\d+) coins\.$
would be "^You have (\\d+) coins\\.$"
in your json file.