Expanding the explanded variable in trigger matching

Posted by NeoFryBoy on Sun 09 Jul 2006 07:51 AM — 3 posts, 13,878 views.

USA #0
Currently you can have expanded variables in trigger fields, which is useful for something like this:

setvariable "mob", "butterfly"

trigger match on @mob$ and colour text magenta

but what about expanding it to make the regular expression accept patterns, so that one could do something more versatile like this...

setvariable "mob", "honeybee|bumblebee|mosquito|"

trigger match on (?:@mob)$ and colour text magenta
Australia Forum Administrator #1
It is not well-documented (that will be fixed in the next release) but you can currently do that like this:


Match: @!mob

USA #2
Sweet! Lovin' this program more everyday.