PDA

View Full Version : Can anyone help figure out what broke my script?



Drew
09-29-2005, 05:17 AM
I hadn't touched this thing for a year and all of the sudden it starts hanging, I have no idea why.

.skin giant scalp

[Press the ESCape key to abort script.]
[Script]>stance defensive
You are now in a defensive stance.
[Script]>get dagger from surcoat
You remove a dull iron dagger with a badly notched blade from in your knight's surcoat.
[Script]>kneel
You kneel down.
[Script]>skin giant left
put my dagger in surcoat
search giant
You botched the job. The giant scalp is ruined.
[Script]>You put a dull iron dagger with a badly notched blade in your knight's surcoat.
[Script]>
You search the ice giant.
He had a fur-lined horned helm.
You discard the giant's remaining useless equipment.
He had 170 silvers on him.
You gather the remaining 170 coins.
He had nothing else of value.
A lesser ice giant melts away, leaving nothing behind.
[Script]>


At this point it just hangs.


Another problem is the no critter section of it, it seems like my variable is not set but I'm 100% sure they are all set.

.skin giant scalp

[Press the ESCape key to abort script.]
stance defensive
You are now in a defensive stance.
[Script]>get dagger from surcoat
You remove a dull iron dagger with a badly notched blade from in your knight's surcoat.
[Script]>kneel
You kneel down.
[Script]>skin giant left
get
You can only skin creatures!
[Script]>put my in my pack
stance defensive
stand

[Script finished!]


Here's the actual script:


#skinning script



#You need to set a few variables for this.

#weapon - your main weapon
#sheath - where you keep your weapon
#%weapon2 - the name of your skinning knife
#%container - your skins get put here
#%user0 - your gems, boxes, wands go here. You can set this the same as %container if you put them in them both in the same place
#%user1 - where you keep your skinning knife, I made it seperate because I keep mine in my boots


skin:
put stance defensive
match skin ...wait
match skin1 You
match skin1 Cast Round
matchwait

skin1:
#put stance defensive
wait
#put put my %weapon in %sheath
#wait
put get %weapon2 from %user1
waitfor You
put kneel
waitfor you
put skin %1 left
match getskin You skinned
match spoon You botched
match spoon You cannot
match spoon I could not find
match GetIt You can only
matchwait

getskin:
put put my %weapon2 in my %user1
wait
put get %2
wait
put put my %2 in my %container
wait
goto search

spoon:
put put my %weapon2 in %user1
goto search

search:
put search %1
match strongbox strongbox with it
match box box with it
match trunk trunk with it
match coffer coffer with it
match chest chest with it
match wand wand with it
match scroll scroll with it
match Endit amulet on it
match diamond diamond on it
match emerald emerald on it
match lapis lapis lazuli on it
match opal opal on it
match pearl pearl on it
match ruby ruby on it
match sapphire sapphire on it
match topaz topaz on it
match coral coral on it
match amber amber on it
match amethyst amethyst on it
match nugget nugget on it
match garnet garnet on it
match gem gem on it
match jasper jasper on it
match crystal crystal on it
match quartz quartz on it
match stone stone on it
match tourmaline tourmaline on it
match spinel spinel on it
match jade jade on it
match Endit It had nothing of interest
match Endit It had nothing else
match Nocritter I could not find
matchwait

strongbox:
save strongbox
Goto GetIt

box:
save box
Goto GetIt

trunk:
save trunk
Goto GetIt

coffer:
save coffer
Goto GetIt

chest:
save chest
Goto GetIt

wand:
save wand
Goto GetIt

scroll:
save scroll
Goto GetIt

diamond:
save diamond
Goto GetIt

emerald:
save emerald
Goto GetIt

lapis:
save lapis
Goto GetIt

opal:
save opal
Goto GetIt

pearl:
save pearl
Goto GetIt

ruby:
save ruby
Goto GetIt

sapphire:
save sapphire
Goto GetIt

topaz:
save topaz
Goto GetIt

coral:
save coral
Goto GetIt

amber:
save amber
Goto GetIt

amethyst:
save amethyst
Goto GetIT

nugget:
save nugget
Goto GetIt

quartz:
save quartz
Goto GetIt

garnet:
save garnet
Goto GetIt

gem:
save gem
Goto GetIt

jasper:
save jasper
Goto GetIT

crystal:
save crystal
Goto GetIt

tourmaline:
save tourmaline
Goto GetIt

spinel:
save spinel
Goto GetIt

stone:
save stone
Goto GetIt

jade:
save jade
Goto GetIt

GetIt:
put get %s
waitfor You
put put my %s in my %user0
Goto Endit

Endit:
#put get my %weapon from %sheath
#waitfor you
put stance defensive
put stand
#put cman cmovement
exit

Nocritter:
#put get my %weapon from %sheath
#waitfor you
put put my %weapon2 in my %user1
waitfor you
put stand
exit

Dwarven Empath
09-29-2005, 05:34 AM
spoon:
put put my %weapon2 in %user1
goto search

should be.....put get my wep.

Bobmuhthol
09-29-2005, 06:18 AM
Jesus, please use a scripting engine.

Drew
09-29-2005, 06:41 AM
Originally posted by Celember
spoon:
put put my %weapon2 in %user1
goto search

should be.....put get my wep.

Why since I get it in skin1 and I want to put the skinning dagger away after using it?

Drew
09-29-2005, 06:42 AM
Originally posted by Bobmuhthol
Jesus, please use a scripting engine.


Yeah it's big and ugly but it works(ed).

Latrinsorm
09-29-2005, 12:12 PM
Your search section looks for "It had nothing else" while Gemstone used "He had nothing else" for that particular giant.

The no creature error is from you going to the "Getit" section without saving anything (what with there being nothing to get).