|
naraka Newbie
Joined: 24 Feb 2004 Posts: 1 Location: Spain
|
Posted: Tue Feb 24, 2004 11:45 pm
trigger if no leading space |
I want to trigger some actions on a phrase such as;
Your head falls off and rolls on the floor.
I only want the trigger to fire if there is no space on the same line just before this phrase.Because If someone emotes the phrase to deliberately fire my trigger it will appear as;
Playername Your head falls off and rolls on the floor.
I dont want the trigger to fire in that case.
Is this possible? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Feb 25, 2004 1:37 am |
Yes. You can use ^ to anchor a trigger pattern to the beginning of a line. You can also use $ to anchor to the end of a line. All this and more is described in the help page Pattern Matching.
|
|
|
|
|
|