Lexi Posted May 17, 2009 Report Share Posted May 17, 2009 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. Link to comment Share on other sites More sharing options...
Cephirus Posted January 26, 2013 Report Share Posted January 26, 2013 Awesome! Finally after testing this, it works on CMUD, just need to check Regular expression box. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.