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
Goten4233
Newbie


Joined: 20 Mar 2003
Posts: 8

PostPosted: Sat Feb 14, 2004 12:58 am   

Finding words in strings help
 
Okay, I'm making a quest script

The Colonel says 'Your target is the lizard.'
The Colonel says 'I've heard they hang around in Mud School.'


okay, I have it set variables to those two triggers that set quest to the lizard and area to mud school, now I wanna pick lizard out of it, so it doesnt try and kill THE LIZARD just kill lizard, any help? I don't want it to extract just like lizard, but I want it to read anything as a possible target, minus the articles...
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Feb 14, 2004 6:36 am   
 
Here is an example that will use the last word you capture.

#TRIGGER {The Colonel says 'Your target is (*).'} {#VAR questmob %word(%1,%numwords(%1))}


Edit: Fixed a few typos!
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