Log in

View Full Version : help me out



zax
10-10-2004, 06:46 PM
someone look this over and find out why it sucks.....thanks in advance




#werebearhunt.Cmd

Start:
ECHO ***STARTING***
put look
match 1 A glance upwards reveals a steep drop from above to the rocky floor of the ravine.
match 2 Deeper into the ravine, the stream becomes wider, and the bank narrower.
match 3 The ravine comes to a dead end here at a high rock wall which is pocked with holes,
match 4 Light slants in the opening from outside,
match 5 Moss grows on the walls of the cave,
match 6 Faint skittering sounds come from just beyond the edge of the torchlight,
match 7 This particular tunnel appears to be a dead end,
match 8 As you travel deeper into the caves,
match 9 There is definitely an odd smell in this corner of the caves,
match 10 The unrelenting drip-drip-drip of the water in the caves
match 11 The floor of the cave is very slick with the frigid water
match 12 The high-pitched squeak of bats comes from further inside the cave,
match 13 Eerie sounds echo from further into the cave,
match 14 The distant sound of rushing water reminds you of the stream that probably
match 15 The damp air grows distinctly colder as you descend into the caves.
match 16 The faint sound of sobbing seems to echo from all directions in a disconcerting way
match 17 All sound seems to coalesce here, unseen feet skittering, shrieking bats, a woman's sobbing,
match 18 A small fire burns here, illuminating the room.

1:
save 1
pause .5
put look
match check werebear
match Move1 Obvious paths:
match Move1 Obvious exits:
matchwait

Move1:
move nw
goto 2

2:
save 1
pause .5
put look
match check werebear
match Move2 Obvious paths:
match Move2 Obvious exits:
matchwait

Move2:
move nw
move se
goto 3


3:
save 1
pause .5
put look
match check werebear
match Move3 Obvious paths:
match Move3 Obvious exits:
matchwait

Move3:
move go open
move se
goto 4


4:
save 1
pause .5
put look
match check werebear
match Move4 Obvious paths:
match Move4 Obvious exits:
matchwait

Move4:
move ne
move go open
goto 5

5:
save 1
pause .5
put look
match check werebear
match Move5 Obvious paths:
match Move5 Obvious exits:
matchwait

Move5:
move n
move sw
move se
goto 6

6:
save 1
pause .5
put look
match check werebear
match Move6 Obvious paths:
match Move6 Obvious exits:
matchwait

Move6:
move nw
move w
move s
goto 7


7:
save 1
pause .5
put look
match check werebear
match Move7 Obvious paths:
match Move7 Obvious exits:
matchwait

Move7:
move se

goto 8

8:
save 1
pause .5
put look
match check werebear
match Move8 Obvious paths:
match Move8 Obvious exits:
matchwait

Move8:
move w
move e
goto 9

9:
save 1
pause .5
put look
match check werebear
match Move9 Obvious paths:
match Move9 Obvious exits:
matchwait

Move9:
move s
move e
goto 10

10:
save 1
pause .5
put look
match check werebear
match Move10 Obvious paths:
match Move10 Obvious exits:
matchwait

Move10:
move s
move n
goto 11

11:
save 1
pause .5
put look
match check werebear
match Move11 Obvious paths:
match Move11 Obvious exits:
matchwait

Move11:
move e
move n
goto 12

12:
save 1
pause .5
put look
match check werebear
match Move12 Obvious paths:
match Move12 Obvious exits:
matchwait

Move4:
move ne
move w
goto 13

13:
save 1
pause .5
put look
match check werebear
match Move13 Obvious paths:
match Move13 Obvious exits:
matchwait

Move13:
move d
move nw
move sw
goto 14

14:
save 1
pause .5
put look
match check werebear
match Move14 Obvious paths:
match Move14 Obvious exits:
matchwait

Move14:
move se
move up
goto 15

15:
save 1
pause .5
put look
match check werebear
match Move15 Obvious paths:
match Move15 Obvious exits:
matchwait

Move15:
move ne
move nw
goto 16

16:
save 1
pause .5
put look
match check werebear
match Move16 Obvious paths:
match Move16 Obvious exits:
matchwait

Move16:
move n
move sw
goto 17

17:
save 1
pause .5
put look
match check werebear
match Move17 Obvious paths:
match Move17 Obvious exits:
matchwait

Move17:
move e
move s
goto 18

18:
save 1
pause .5
put look
match check werebear
match Move18 Obvious paths:
match Move18 Obvious exits:
matchwait

Move18:
move w
move s
move sw
move nw
move up
move nw
move sw
move go open
move se
move se

goto 1


Check:
echo ***Checking Werebear***
waitfor Obvious
put look
match Move%s Also here
Match Move%s Also in the room
match Attack Obvious exits:
match Attack Obvious paths:
matchwait

Attack:
put attack werebear
MATCH Start I could not find what you were referring to.
MATCH Dead falls to the ground motionless
match Dead Isn't death enough
Match Dead A werebear is already dead.
match Dead You hear a sound like a weeping child as a white glow separates itself
MATCH Unbless1 returns to normal.
Match unbless1 You hack away but the undead is immune to that form of attack!
MATCH Pause Roundtime:
MATCHWAIT

Pause:
pause 1
Goto Attack

Dead:
pause 0.5
put search werebear
goto roomcleanup
Goto Start

Unbless1:
pause Roundtime:
put put axe in my clo
put get imflass axe from my clo
match unbless2 i could not find what you were referring to.
goto Attack1

Unbless2:
pause Roundtime:
put put imflass axe in my clo
put get my vultit axe


Unbless1


RoomCleanUp:
put l
MATCH STRONG strongbox
MATCH CHEST chest
MATCH TRUNK trunk
MATCH COFFER coffer
MATCH BOX box
MATCH TOPAZ topaz
MATCH DUST a pinch of
MATCH LAPIS lapis
MATCH GEM gem
MATCH BLOODSTONE bloodstone
MATCH AMULET crystal amulet
MATCH AMULET ruby amulet
MATCH ORB orb
MATCH CRYSTAL crystal
MATCH WAND wand
MATCH JADE jade
MATCH CORAL coral
MATCH AGATE agate
MATCH SCROLL scroll
MATCH RING gold ring
MATCH ZIRCON zircon
MATCH NUGGET nugget
MATCH AMBER a piece of amber
MATCH DIAMOND diamond
MATCH PEARL pearl
MATCH SAPPHIRE sapphire
MATCH ROOMCLEANUP1 Obvious
MATCHWAIT

RoomCleanUp1:
put l
MATCH GARNET garnet
MATCH OPAL opal
MATCH STONE stone
MATCH JASPER jasper
MATCH SPINEL spinel
MATCH DIOPSIDE diopside
MATCH CORDERITE corderite
MATCH TOURMALINE tourmaline
MATCH MITHRILBLOOM mithril-bloom
MATCH ORABLOOM ora-bloom
MATCH QUARTZ a piece of milky quartz
MATCH QUARTZ a piece of smoky quartz
MATCH QUARTZ a piece of citrine quartz
MATCH FLASK white flask
MATCH LOCKPICK lockpick
MATCH EMERALD emerald
MATCH RUBY ruby
MATCH SHELL shell
MATCH ROOMCLEANED Obvious
MATCHWAIT

SKINNED:
put put my axe in my pack
waitfor you
put get axe
waitfor you

Skinned1:
put put my axe in my Pack

wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER axe
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

QUARTZ:
put put my axe in my pack
waitfor you
put get quartz
waitfor you

Quartz1:
put put my quartz in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER quartz
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

MITHRILBLOOM:
put put my axe in my pack
waitfor you
put get mithril
waitfor you

MithrilBloom1:
put put my mithril in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER mithril-bloom
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

ORABLOOM:
put put my axe in my pack
waitfor you
put get ora
waitfor you

OraBloom1:
put put my ora in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER ora-bloom
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

TOURMALINE:
put put my axe in my pack
waitfor you
put get tourmaline
waitfor you

Tourmaline1:
put put my tourmaline in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER tourmaline
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

BOX:
put put my axe in my pack
waitfor you
put get box
waitfor you

Box1:
put put my box in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER box
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

CHEST:
put put my axe in my pack
waitfor you
put get chest
waitfor you

Chest1:
put put my chest in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER chest
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

TRUNK:
put put my axe in my pack
waitfor you
put get trunk
waitfor you

Trunk1:
put put my trunk in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER trunk
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

COFFER:
put put my axe in my pack
waitfor you
put get coffer
waitfor you

Coffer1:
put put my coffer in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER coffer
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

STRONG:
put put my axe in my pack
waitfor you
put get strongbox
waitfor you

Strong1:
put put my strongbox in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER strongbox
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

AMBER:
put put my axe in my pack
waitfor you
put get amber
waitfor you

Amber1:
put put my amber in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER amber
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

TOPAZ:
put put my axe in my pack
waitfor you
put get topaz
waitfor you

Topaz1:
put put my topaz in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER topaz
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

DUST:
put put my axe in my pack
waitfor you
put get dust
waitfor you

Dust1:
put put my dust in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER dust
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

LAPIS:
put put my axe in my pack
waitfor you
put get lapis
waitfor you

Lapis1:
put put my lapis in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER lapis
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

GEM:
put put my axe in my pack
waitfor you
put get gem
waitfor you

Gem1:
put put my gem in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER gem
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

STONE:
put put my axe in my pack
waitfor you
put get stone
waitfor you

Stone1:
put put my stone in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER stone
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

CRYSTAL:
put put my axe in my pack
waitfor you
put get crystal
waitfor you

Crystal1:
put put my crystal in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER crystal
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

ORB:
put put my axe in my pack
waitfor you
put get orb
waitfor you

Orb1:
put put my orb in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER orb
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

AMULET:
put put my axe in my pack
waitfor you
put get amulet
waitfor you

Amulet1:
put put my amulet in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER amulet
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

WAND:
put put my axe in my pack
waitfor you
put get wand
waitfor you

Wand1:
put put my wand in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER wand
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

JADE:
put put my axe in my pack
waitfor you
put get jade
waitfor you

Jade1:
put put my jade in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER jade
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

CORAL:
put put my axe in my pack
waitfor you
put get coral
waitfor you

Coral1:
put put my coral in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER coral
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

AGATE:
put put my axe in my pack
waitfor you
put get agate
waitfor you

Agate1:
put put my agate in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER agate
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

SCROLL:
put put my axe in my pack
waitfor you
put get scroll
waitfor you

Scroll1:
put put my scroll in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER scroll
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

RING:
put put my axe in my pack
waitfor you
put get ring
waitfor you

Ring1:
put put my ring in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER ring
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

ZIRCON:
put put my axe in my pack
waitfor you
put get zircon
waitfor you

Zircon1:
put put my zircon in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER zircon
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

NUGGET:
put put my axe in my pack
waitfor you
put get nugget
waitfor you

Nugget1:
put put my nugget in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER nugget
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

GARNET:
put put my axe in my pack
waitfor you
put get garnet
waitfor you

Garnet1:
put put my garnet in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER garnet
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

OPAL:
put put my axe in my pack
waitfor you
put get opal
waitfor you

Opal1:
put put my opal in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER opal
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

Bloodstone:
put put my axe in my pack
waitfor you
put get bloodstone
waitfor you

Bloodstone1:
put put my bloodstone in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER bloodstone
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

DIAMOND:
put put my axe in my pack
waitfor you
put get diamond
waitfor you

Diamond1:
put put my diamond in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER diamond
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

PEARL:
put put my axe in my pack
waitfor you
put get pearl
waitfor you

Pearl1:
put put my pearl in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER pearl
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

SAPPHIRE:
put put my axe in my pack
waitfor you
put get sapphire
waitfor you

Sapphire1:
put put my sapphire in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER sapphire
MATCH ROOMCLEANUP axe in your right hand
MATCHWAIT

JASPER:
put put my axe in my pack
waitfor you
put get jasper
waitfor you

Jasper1:
put put my jasper in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER jasper
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

SPINEL:
put put my axe in my pack
waitfor you
put get spinel
waitfor you

Spinel1:
put put my spinel in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER spinel
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

DIOPSIDE:
put put my axe in my pack
waitfor you
put get diopside
waitfor you

Diopside1:
put put my diopside in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER diopside
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

CORDERITE:
put put my axe in my pack
waitfor you
put get corderite
waitfor you

Corderite1:
put put my corderite in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER corderite
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

FLASK:
put put my axe in my pack
waitfor you
put get flask
waitfor you

Flask1:
put put my flask in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER flask
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

LOCKPICK:
put put my axe in my pack
waitfor you
put get lockpick
waitfor you

Lockpick1:
put put my lockpick in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER lockpick
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

EMERALD:
put put my axe in my pack
waitfor you
put get emerald
waitfor you

Emerald1:
put put my emerald in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER emerald
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

RUBY:
put put my axe in my pack
waitfor you
put get ruby
waitfor you

Ruby1:
put put my ruby in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER ruby
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

SHELL:
put put my axe in my pack
waitfor you
put get shell
waitfor you

SHELL1:
put put my Shell in my Pack
wait
put get my axe from my pack
waitfor you
put glance
MATCH SWITCHCONTAINER itemname
MATCH ROOMCLEANUP1 axe in your right hand
MATCHWAIT

SWITCHCONTAINER:
echo Your bag is full, please go unload or shift your cargo and type CONTINUE SEARCH to continue the script.
waitfor CONTINUE SEARCH
goto CLEARHANDS

CLEARHANDS:
put glance
MATCH BOX1 box
MATCH CHEST1 chest
MATCH TRUNK1 trunk
MATCH COFFER1 coffer
MATCH STRONG1 strongbox
MATCH TOPAZ1 topaz
MATCH DUST1 a pinch of
MATCH LAPIS1 lapis
MATCH GEM1 gem
MATCH BLOODSTONE1 bloodstone
MATCH CRYSTAL1 crystal
MATCH ORB1 orb
MATCH AMULET1 amulet
MATCH WAND1 wand
MATCH JADE1 jade
MATCH CORAL1 coral
MATCH AGATE1 agate
MATCH SCROLL1 scroll
MATCH RING1 gold ring
MATCH ZIRCON1 zircon
MATCH NUGGET1 nugget
MATCH AMBER1 amber
MATCH GARNET1 garnet
MATCH OPAL1 opal
MATCH DIAMOND1 diamond
MATCH PEARL1 pearl
MATCH SAPPHIRE1 sapphire
MATCH CLEARHANDS2 in your left hand.
MATCHWAIT

CLEARHANDS2:
put glance
MATCH STONE1 stone
MATCH JASPER1 jasper
MATCH SPINEL1 spinel
MATCH DIOPSIDE1 diopside
MATCH CORDERITE1 corderite
MATCH TOURMALINE1 tourmaline
MATCH MITHRILBLOOM1 mithril-bloom
MATCH ORABLOOM1 ora-bloom
MATCH QUARTZ1 quartz
MATCH FLASK1 flask
MATCH LOCKPICK1 lockpick
MATCH EMERALD1 emerald
MATCH RUBY1 ruby
MATCH Skinned1 axe
MATCH SHELL shell
MATCHWAIT

ROOMCLEANED:
Goto Start

Nieninque
10-10-2004, 07:11 PM
You might get a better response if you say how you are having trouble with it.

Latrinsorm
10-10-2004, 08:23 PM
Need a matchwait for the first series of matches. See if that fixes it, and if it doesn't I'll look through the rest of the script.

Incidentally, that's a very well-painted hunting area.

zax
10-10-2004, 09:55 PM
This is my first attempt at scripting, so I have a few questions also, I keep getting a GOTO label not found error, and also it is trying to take paths that arent there....I am just trying to get it to walk all the way through the area then run back to the start and go again, but, it isnt quite working that way. Is there anyway to put mstrike in here if more than 3 critters are in the room? And maybe make it wait on the mstrike drain time?

One more quick question I forgot, is there a quick way to reverse a travel script, instead of just retyping the whole thing? thanks in advance.


[Edited on 10-11-2004 by zax]

zax
10-11-2004, 12:07 AM
no one knows, this is really aggrevating and I know it is just one little thing I am over looking...

Latrinsorm
10-11-2004, 03:26 PM
Alright, a number of housekeeping things. Firstly, did you add the initial matchwait? Secondly, you save "1" in every room, which would mean that no matter which room you see the werebear in, the Check section will think you're in the first room. Thirdly, you don't need a goto if the next line is the label you are going to. Fourthly, the Dead label has two gotos at the end, you can delete the second one. Finally, the Unbless1: label has a match without a matchwait and a goto after it, not to mention a "Roundtime:" after the pause. I don't know why you have it there. Also, Unbless2: leads to the RoomCleanUp section, which I'm pretty sure you don't want. I didn't look through the treasure gathering.

zax
10-11-2004, 03:58 PM
I went back and changed all the save, and match waits, and did away with unbless altogather and it runs fine now. Thanks for the help!