|
green2swing Beginner
Joined: 20 Jun 2005 Posts: 10
|
Posted: 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? |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
|
green2swing Beginner
Joined: 20 Jun 2005 Posts: 10
|
Posted: Fri Jun 24, 2005 7:18 am |
still no help
if I type s or ste or steal it hires the trigger |
|
|
|
green2swing Beginner
Joined: 20 Jun 2005 Posts: 10
|
Posted: Fri Jun 24, 2005 7:47 am |
got it solved:
^(s)(@waygate6)(@waygate3)$
and that does it |
|
|
|
|
|