Hi I'm trying to set up a regular expression trigger to match when someone in the same room removes or wears eq. It would look something like this:
The number of lines would vary of course from player to player and after the first line, there is a space before the rest of the eq is listed. I looked at the help under regular expressions and it gave me this example:
I tried using this for my example as follows:
but this didn't seem to work.
Can someone help me?
(Edited by Nick to show spacing).
John wears hat,pants,shirt,socks,ring
gloves,jacket,shoes,leggings,boots
X,X,X
The number of lines would vary of course from player to player and after the first line, there is a space before the rest of the eq is listed. I looked at the help under regular expressions and it gave me this example:
Match: You are carrying:\n(([ ]{5}.*\n)*)\z for the following:
You are carrying:
a magic mushroom
a torch
a dragonskin
a bag
recall scroll
I tried using this for my example as follows:
(.*) (wears|removes) (.*)\n(([ ]{1}.*\n)*)\z
but this didn't seem to work.
Can someone help me?
(Edited by Nick to show spacing).