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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
astrotaz
Beginner


Joined: 09 Aug 2011
Posts: 11

PostPosted: Wed Mar 06, 2013 3:43 pm   

trigger matching
 
I have 2 triggers

with trigger texts
PLAYER
and
PLAYERH



When I find PLAYERH I set a variable #var friend 1

When I find PLAYER I set a variable #var player 1


The problem is .. when PLAYERH is found, player is set to 1 because PLAYER is within the string PLAYERH


How can I refine this ?

What I'm trying to achieve ---
If my friend is in the room with me .. I want to attack a mob, yet If I find any other player in the room .. I wish to move on .
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Mar 06, 2013 5:28 pm   
 
Use %q to match on word boundaries.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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