While "* unanimated corpse falls to the ground." will work in non-regex triggers, * means something entirely different in regex. This is what you'd want:
^(.+? unanimated corpse falls to the ground\.|.+? staggers to the ground \.\.\. dead\.)$
.+? breaks down like this:
'.' is any single character. Anything at all.
'+' is a modifier, meaning "one or more". Together with the dot, it matches one or more of anything.
'?', when used after the + in this case, is a secondary modifier. Advanced topic, but it changes the "greediness" of the match. With the ?, it'll try to match one of anything, two of anything, three of anything, etc. in that order. Without it, it'll try to match as much as possible, then as much as possible minus one, etc. Trust me, this works better with the ?.
It's basically the regex-ified version of the non-regex *. You'll also notice slashes before the other dots in the triggers - that's because we want it to match a literal dot, and not 'anything'. |