PDA

View Full Version : dropbox script



AestheticDeath
05-07-2008, 06:21 PM
Using wizardFE, someone tell me why this won't work without the pauses?


.dropbox

[Press the ESCape key to abort script.]
get my box
get my chest
Get what?
get my coffer
[Script]>drop my coffer
You remove a dented brass chest from in your spidersilk backpack.
[Script]>
You remove a simple maoral coffer from in your spidersilk backpack.
[Script]>get my coffer
You drop a simple maoral coffer.
[Script]>get my strongbox
Get what?
get my trunk
[Script]>drop my trunk
You remove an enruned wooden strongbox from in your spidersilk backpack.
[Script]>
You need a free hand to pick that up.
[Script]>
I could not find what you were referring to.
[Script]>



#dropbox


box:
#pause
put get my box
match dropbox You remove
match chest Get what?
matchwait

dropbox:
match box You drop
put drop my box
matchwait

chest:
#pause
put get my chest
match dropchest You remove
match coffer Get what?
matchwait

dropchest:
match chest You drop
put drop my chest
matchwait

coffer:
#pause
put get my coffer
match dropcoffer You remove
match strongbox Get what?
matchwait

dropcoffer:
match coffer You drop
put drop my coffer
matchwait

strongbox:
#pause
put get my strongbox
match dropstrongbox You remove
match trunk Get what?
matchwait

dropstrongbox:
match strongbox You drop
put drop my strongbox
matchwait

trunk:
#pause
put get my trunk
match droptrunk You remove
match done Get what?
matchwait

droptrunk:
match trunk You drop
put drop my trunk
matchwait

done:
exit

Bobmuhthol
05-07-2008, 06:28 PM
More often than not, those problems are caused by match tables loading faster than the game, and the script gets ahead of itself. Have you tried it with the pauses?

AestheticDeath
05-07-2008, 06:31 PM
Yeah it works with the pauses, but its too slow.

This one won't work either.

#dropbox


box:
#pause
match dropbox You remove
match chest Get what?
put get my box
matchwait

dropbox:
match box You drop
put drop my box
matchwait

chest:
#pause
match dropchest You remove
match coffer Get what?
put get my chest
matchwait

dropchest:
match chest You drop
put drop my chest
matchwait

coffer:
#pause
match dropcoffer You remove
match strongbox Get what?
put get my coffer
matchwait

dropcoffer:
match coffer You drop
put drop my coffer
matchwait

strongbox:
#pause
match dropstrongbox You remove
match trunk Get what?
put get my strongbox
matchwait

dropstrongbox:
match strongbox You drop
put drop my strongbox
matchwait

trunk:
#pause
match droptrunk You remove
match done Get what?
put get my trunk
matchwait

droptrunk:
match trunk You drop
put drop my trunk
matchwait

done:
exit

The Ponzzz
05-07-2008, 06:32 PM
Put the action [put] after the matches and before the matchwait.

AestheticDeath
05-07-2008, 06:33 PM
What if I put some waitfors for the get my box command to actually be input to the game screen?

Bobmuhthol
05-07-2008, 06:33 PM
Throw in a "waitfor ." or something where the pauses are, that should make it go faster. It definitely is being caused by match tables loading too quickly - it's possible to have different matches for the same line, as was evidenced by the original Wizard version of the jail script me and Nakiro worked on.

Sylvan Dreams
05-07-2008, 06:36 PM
It's running too fast without the pauses. Does MATCH/MATCHWAIT even work for Wizard FE? I didn't think it did.

AestheticDeath
05-07-2008, 06:41 PM
yeah it works for FE, been using it forever

Deathravin
05-07-2008, 06:42 PM
Wizard matches things twice sometimes. Or it will match the first part of a sentence, then match the 2nd part.

Can't really try it out right now, but try this:


GettingBoxesGetT1:
Counter set 1
Save Box
goto GettingBoxesGet
GettingBoxesGetT2:
Save Chest
goto GettingBoxesGet
GettingBoxesGetT3:
Save Coffer
goto GettingBoxesGet
GettingBoxesGetT4:
Save Strongbox
goto GettingBoxesGet
GettingBoxesGetT5:
Save Trunk
goto GettingBoxesGet
GettingBoxesGetT6:
Exit

GettingBoxesGetp:
pause 1
GettingBoxesGet:
Match GettingBoxesGetp Sorry, you may only type ahead 1 command.
Match GettingBoxesGetp ...wait
Match GettingBoxesDrizzop you remove
Match GettingBoxesAdd Get what?
Put get my %s
Matchwait

GettingBoxesAdd:
counter add 1
goto GettingBoxesGetT%c

GettingBoxesDrizzopP:
pause 1
GettingBoxesDrizzop:
Match GettingBoxesDrizzopP Sorry, you may only type ahead 1 command.
Match GettingBoxesDrizzopP ...wait
Match GettingBoxesGet You drop
Match GettingBoxesGet I could not find what you were referring to.
Put drop my %s
Matchwait

I usually use SF with Lich, so this probably basically just doesn't exist for me. This is a snippit of one of my scripts that's always worked for me.

Ya, yours is catching "get what?" twice.... hate that about wizard. Was pretty predictable though.

AestheticDeath
05-07-2008, 06:51 PM
That didn't work for me either.

Tried waitfors a couple different ways, but couldn't get that to work.

Looks like I am stuck with using pause.

Deathravin
05-08-2008, 10:52 AM
#dropbox

GettingBoxesGetT1:
Counter set 1
Save Box
goto GettingBoxesGet
GettingBoxesGetT2:
Save Chest
goto GettingBoxesGet
GettingBoxesGetT3:
Save Coffer
goto GettingBoxesGet
GettingBoxesGetT4:
Save Strongbox
goto GettingBoxesGet
GettingBoxesGetT5:
Save Trunk
goto GettingBoxesGet
GettingBoxesGetT6:
Exit

GettingBoxesGetp:
pause 1
GettingBoxesGet:
Match GettingBoxesGetp Sorry, you may only type ahead 1 command.
Match GettingBoxesGetp ...wait
Match GettingBoxesDrizzop you remove
Match GettingBoxesAdd Get what?
Put get my %s
Matchwait

GettingBoxesAdd:
Waitfor Get What?
counter add 1
goto GettingBoxesGetT%c

GettingBoxesDrizzopP:
pause 1
GettingBoxesDrizzop:
Match GettingBoxesDrizzopP Sorry, you may only type ahead 1 command.
Match GettingBoxesDrizzopP ...wait
Match GettingBoxesGet You drop
Match GettingBoxesGet I could not find what you were referring to.
Put drop my %s
Matchwait

Just added "Waitfor Get what?" - this fixes the double matching done by wizard. works fine for me now

You could also just have it drop the box weather or not it gets it... then match "I could not find what you were referring to" like this:


#dropbox

GettingBoxesGetT1:
Counter set 1
Save Box
goto GettingBoxesGet
GettingBoxesGetT2:
Save Chest
goto GettingBoxesGet
GettingBoxesGetT3:
Save Coffer
goto GettingBoxesGet
GettingBoxesGetT4:
Save Strongbox
goto GettingBoxesGet
GettingBoxesGetT5:
Save Trunk
goto GettingBoxesGet
GettingBoxesGetT6:
Exit

GettingBoxesGetp:
pause 1
GettingBoxesGet:
Match GettingBoxesGetp Sorry, you may only type ahead 1 command.
Match GettingBoxesGetp ...wait
Match GettingBoxesDrizzop you remove
Match GettingBoxesDrizzop Get what?
Put get my %s
Matchwait

GettingBoxesAdd:
counter add 1
goto GettingBoxesGetT%c

GettingBoxesDrizzopP:
pause 1
GettingBoxesDrizzop:
Match GettingBoxesDrizzopP Sorry, you may only type ahead 1 command.
Match GettingBoxesDrizzopP ...wait
Match GettingBoxesGet You drop
Match GettingBoxesAdd I could not find what you were referring to.
Put drop my %s
Matchwait

Either of those works fine.

Deathravin
05-08-2008, 11:07 AM
And I know I'm awesome... You don't have to rub it in. Nono, please... Heck, I have a great team out there... Deathravin's only one man, one part of a really great team.
Shucks, I'd just like to thank God. Without him none of this would be possible.