forums wiki races classes cabals religions world history immortals all pages bugs items helps changes calendar map login donate play now

zMud/cMud Regex Roller Trigger

I just recently started with regex so I only know the very basic stuff. Anyway, I've been told regex triggers are a lot faster than normal triggers so I decided to make a zMud/cMud roller trigger:

Pattern: ^[(\d{1,2})] Cmds: help, end, roll, add, rem>

Value: #IF (%1 < 54) {roll}

This should (currently testing it, looking good so far ) make the trigger stop at 54 or higher, just change the number to whatever you are looking for. Don't forget to disable the trigger after getting what you want, or add a line to disable it once you hit that number.

IMPORTANT:

Don't forget to check the 'Perl regular expression' box. I guess this trigger works for any client that can use PERL.

EDIT:

The trigger works as intended.

Awesome! Finally after testing this, it works on CMUD, just need to check Regular expression box. Thank you!