PDA

View Full Version : Another strange match issue



pmauddib
06-09-2007, 09:54 PM
this one I can't find a way that I screwed up. Here is the section thats of interest.
_____________________

WhatSlab:
fput "stow right"
pause 5
match "GetTongs", "and a hammered mithril slab in your left hand"
match "GetTongs", "and a scribed mithril slab in your left hand"
match "StareAtIt", "and a mithril slab in your left hand"
fput "glance"
matchwait

StareAtIt:
fput "stare my blade"
pause 35
goto "GetTongs"

GetTongs:
fput "remove my forging"
pause 5
match "ReRentForge", "don't budge"
match "StowBest", "best"
match "Dud", "satisfied"
match "GetTongsAgian", "more work to be done"
fput "get tongs"
matchwait
__________________________________________
This is What happens:
__________________________________________
[forging]>get my oil
[forging]>pour my oil in trough
You remove a large skin of enchanted oil from in your black leather pack.
>

Just as you're about to pour your oil into the trough, you see that it already contains some iridescent oil and you haul up short!

>
[forging]>stow right
You put a large skin of enchanted oil in your black leather pack.
>
[forging]>glance
You glance down to see nothing in your right hand and a mithril slab in your left hand.
>
[forging]>stare my blade

Glancing around you see a trough and a pair of tongs.
Roundtime: 30 sec.

Drew
06-09-2007, 10:06 PM
Is that SF scripting? I've never used quotes like that when I script.

Anyway, I don't see the problem, your script matches the mithril slab, pulls up the stare function and then enters the stare command. As far as the script goes it seems to be working.

Shaelun
06-09-2007, 11:13 PM
I don't see a problem either... it's behaving the way it should behave. How did you intend for it to function differently?

BTW, you can use "waitrt?" instead of "pause 35" if you want.

pmauddib
06-10-2007, 09:48 AM
My bad, I don't think my brain was functioning. It was working right, I have just squelched some of the responses I was looking for.