Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
naraka
Newbie


Joined: 24 Feb 2004
Posts: 1
Location: Spain

PostPosted: 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?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net