|
Goten4233 Newbie
Joined: 20 Mar 2003 Posts: 8
|
Posted: 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... |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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! |
|
|
|
|
|
|
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
|
|