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
green2swing
Beginner


Joined: 20 Jun 2005
Posts: 10

PostPosted: Fri Jun 24, 2005 5:44 am   

#ONINPUT problem
 
I have an ONINPUT but can not find the code to single out the command:

land6 = tarmol
land3 = everwood
landab6 = t
landab3 = e

#ONINPUT {^s(@landab6)(@landab3)} {say @land6 NE open tree W U @land3}

ste will say tarmol NE open tree W U everwood
but...
steal does too

how do I get it so that it only reads ste and not steal or other words that start with ste?
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Fri Jun 24, 2005 7:04 am   
 
#ONINPUT {^s(@landab6)(@landab3)$} {say @land6 NE open tree W U @land3}

should do it

putting the $ at the end means it forces a match at the end of the line
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
green2swing
Beginner


Joined: 20 Jun 2005
Posts: 10

PostPosted: Fri Jun 24, 2005 7:18 am   
 
still no help

if I type s or ste or steal it hires the trigger
Reply with quote
green2swing
Beginner


Joined: 20 Jun 2005
Posts: 10

PostPosted: Fri Jun 24, 2005 7:47 am   
 
got it solved:

^(s)(@waygate6)(@waygate3)$

and that does it
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