|
Murdlih Beginner
Joined: 17 Dec 2001 Posts: 24 Location: USA
|
Posted: Wed Mar 20, 2002 1:13 am
discounting a line from a trigger |
Having read a post a little ways down about a simple robot, I have thought about making one myself. I haven't been to my computer yet, so I haven't started anything really. But here is what I am thinking I can do..
When I "look" I see typical stuff..
Room desc
obvious exits
An ugly orc
a stupid orc
a jovial orc
I am thinking that if I am only trying to kill orcs, I can just add increments to a variable. (I.e. my robot dude triggered on orc three times, there are three orcs.) and from there with a slowwalk and #ok and #pause I figure I will be okay. The only thing is I want to know if I can not register orc for lines like
You see:
The corpse of an orc
the somewhat decayed remains of an orc
I realize as I am writing this that I could just use another trigger for corpse|remains to decrease my killnumber value, but am looking for a more elagant way, if there is one.
I have a small set of working triggers that are the coders equivalent to the ramblings of a 2 year old, but I am trying!
Thanks in advance.
Michael |
|
|
|
Tarn GURU
Joined: 10 Oct 2000 Posts: 873 Location: USA
|
Posted: Wed Mar 20, 2002 1:42 am |
The most obvious thing that comes to mind is that your examples are of the form:
A...orc. (count)
An..orc. (count, but really just a subset of above)
The...orc. (don't count)
So just increment on:
^A*orc$
You might want to be a little more careful and only enable when you've asked for and detected the room description+exits.
I don't know about 'elegant', but it's probably the shortest script to do it
-Tarn |
|
|
|
Murdlih Beginner
Joined: 17 Dec 2001 Posts: 24 Location: USA
|
Posted: Wed Mar 20, 2002 3:16 am |
thanks. that is something I probably should have figured out on my own. :) thanks a lot.
Michael |
|
|
|
|
|