PDA

View Full Version : Help with a script.



Volstock
08-09-2006, 10:31 PM
The script moved east twice and just stand there. I was wondering if I did anything wrong.
XXXXX.Cmd
room:
put look
match room1 The huge cavern that stretches out
match room2 Making your way among the spires of stone that
match room3 Molds and mosses growing on the sides of the stone spires
match room4 The shallow stream flowing in from the west
match room5 A narrow, shallow channel filled with the
match room6 The muted gurgle of running water is an odd
match room7 A broad stair of gigantic proportion has been carved
match room8 Somewhere overhead, the ceiling of the cavern lies out of sight,
matchwait

room1:
put spellup auto
waitfor PsiNet is done spelling you up.
put east
counter set 2
goto roomcheck

room2:
put east
counter set 3
goto roomcheck

room3:
put northeast
counter set 4
goto roomcheck

room4:
put west
counter set 5
goto roomcheck

room5:
put west
counter set 6
goto roomcheck

room6:
put north
counter set 7
goto roomcheck

room7:
put east
counter set 8
goto roomcheck

room8:
put southwest
waitfor Obvious exits: north, northeast, east, southeast, south, southwest
put southwest
counter set 1
goto roomcheck

roomcheck:
put look
match roomwait Your disk arrives, following you dutifully
match roomwait Also here:
match myklianwait Obvious exits:
matchwait

targetclear:
put target clear
waitfor Target cleared.
goto myklian

myklianwait:
waitfor followed.

myklian:
match room%c You do not have a target
match kill You are now targetting a
match targetclear You are currently targetting a
match myklian Your current target has become invalid. Clearing it now.
match loot You can't target a
put target myklian
put look
matchwait

killwait:
pause 1

wait:
pause 1

kill:
match wait ...wait
match skin dies.
match skin mass of flesh and fractured bones.
match killwait Cast Roundtime 3 Seconds.
match killwait Your armor prevents
match release You do not currently have a target.
put incant 1106
matchwait

skin:
pause 1
put target clear
waitfor Target cleared.
put get my cinquedea
waitfor You remove
put skin myklian
match stowhands You botched the job. The myklian scale is ruined.
match stow You skinned the
matchwait

stow:
put put my cinquedea in my wrist
waitfor You put a
put stow left
match hands You put a
match shift won't fit
matchwait

shift:
put incant 220
pause 2
put whisper JJJJJ Lets call it a night.
pause 4
put quit

stowhands:
pause 1
put put my cinquedea in my wrist
waitfor You put a
hands:
save diagnose
match lhand some minor cuts and bruises on your left hand
match rhand some minor cuts and bruises on your right hand
match 3rhand a fractured and bleeding right hand
match 3lhand a fractured and bleeding left hand
put health
matchwait

3rhand:
put rhand
waitfor Your spell is ready.
pause 4
put rhand
waitfor Your spell is ready.
pause 4
rhand:
put rhand
waitfor Your spell is ready.
pause 2
goto diagnose

3lhand:
put lhand
waitfor Your spell is ready.
pause 4
put lhand
waitfor Your spell is ready.
pause 4
lhand:
put lhand
waitfor Your spell is ready.
pause 2
goto %s

diagnose:
pause 1
save myklian
put appraise JJJJJ
match 3tranlhand a fractured and bleeding left hand
match tranlhand bruises on his left hand
match 3tranrhand a fractured and bleeding right hand
match tranrhand bruises on his right hand
match myklian no apparent injuries
matchwait

3tranlhand:
put transfer JJJJJ left hand
waitfor You meditate
goto 3lhand

tranlhand:
put transfer JJJJJ left hand
waitfor You meditate
goto lhand

3tranrhand:
put transfer JJJJJ right hand
waitfor You meditate
goto 3rhand

tranrhand:
put transfer JJJJJ right hand
waitfor You meditate
goto rhand

roomwait:
put look
waitfor You also see the XXXXX disk
goto room%c

loot:
put whisper JJJJJ loot
pause 1
goto diagnose

release:
put release
wait
put target clear
wait
goto myklian#XXXXX.Cmd
room:
put look
match room1 The huge cavern that stretches out
match room2 Making your way among the spires of stone that
match room3 Molds and mosses growing on the sides of the stone spires
match room4 The shallow stream flowing in from the west
match room5 A narrow, shallow channel filled with the
match room6 The muted gurgle of running water is an odd
match room7 A broad stair of gigantic proportion has been carved
match room8 Somewhere overhead, the ceiling of the cavern lies out of sight,
matchwait

room1:
put spellup auto
waitfor PsiNet is done spelling you up.
put east
counter set 2
goto roomcheck

room2:
put east
counter set 3
goto roomcheck

room3:
put northeast
counter set 4
goto roomcheck

room4:
put west
counter set 5
goto roomcheck

room5:
put west
counter set 6
goto roomcheck

room6:
put north
counter set 7
goto roomcheck

room7:
put east
counter set 8
goto roomcheck

room8:
put southwest
waitfor Obvious exits: north, northeast, east, southeast, south, southwest
put southwest
counter set 1
goto roomcheck

roomcheck:
put look
match roomwait Your disk arrives, following you dutifully
match roomwait Also here:
match myklianwait Obvious exits:
matchwait

targetclear:
put target clear
waitfor Target cleared.
goto myklian

myklianwait:
waitfor followed.

myklian:
match room%c You do not have a target
match kill You are now targetting a
match targetclear You are currently targetting a
match myklian Your current target has become invalid. Clearing it now.
match loot You can't target a
put target myklian
put look
matchwait

killwait:
pause 1

wait:
pause 1

kill:
match wait ...wait
match skin dies.
match skin mass of flesh and fractured bones.
match killwait Cast Roundtime 3 Seconds.
match killwait Your armor prevents
match release You do not currently have a target.
put incant 1106
matchwait

skin:
pause 1
put target clear
waitfor Target cleared.
put get my cinquedea
waitfor You remove
put skin myklian
match stowhands You botched the job. The myklian scale is ruined.
match stow You skinned the
matchwait

stow:
put put my cinquedea in my wrist
waitfor You put a
put stow left
match hands You put a
match shift won't fit
matchwait

shift:
put incant 220
pause 2
put whisper JJJJJ Lets call it a night.
pause 4
put quit

stowhands:
pause 1
put put my cinquedea in my wrist
waitfor You put a
hands:
save diagnose
match lhand some minor cuts and bruises on your left hand
match rhand some minor cuts and bruises on your right hand
match 3rhand a fractured and bleeding right hand
match 3lhand a fractured and bleeding left hand
put health
matchwait

3rhand:
put rhand
waitfor Your spell is ready.
pause 4
put rhand
waitfor Your spell is ready.
pause 4
rhand:
put rhand
waitfor Your spell is ready.
pause 2
goto diagnose

3lhand:
put lhand
waitfor Your spell is ready.
pause 4
put lhand
waitfor Your spell is ready.
pause 4
lhand:
put lhand
waitfor Your spell is ready.
pause 2
goto %s

diagnose:
pause 1
save myklian
put appraise JJJJJ
match 3tranlhand a fractured and bleeding left hand
match tranlhand bruises on his left hand
match 3tranrhand a fractured and bleeding right hand
match tranrhand bruises on his right hand
match myklian no apparent injuries
matchwait

3tranlhand:
put transfer JJJJJ left hand
waitfor You meditate
goto 3lhand

tranlhand:
put transfer JJJJJ left hand
waitfor You meditate
goto lhand

3tranrhand:
put transfer JJJJJ right hand
waitfor You meditate
goto 3rhand

tranrhand:
put transfer JJJJJ right hand
waitfor You meditate
goto rhand

roomwait:
put look
waitfor You also see the XXXXX disk
goto room%c

loot:
put whisper JJJJJ loot
pause 1
goto diagnose

release:
put release
wait
put target clear
wait
goto myklian#XXXXX.Cmd
room:
put look
match room1 The huge cavern that stretches out
match room2 Making your way among the spires of stone that
match room3 Molds and mosses growing on the sides of the stone spires
match room4 The shallow stream flowing in from the west
match room5 A narrow, shallow channel filled with the
match room6 The muted gurgle of running water is an odd
match room7 A broad stair of gigantic proportion has been carved
match room8 Somewhere overhead, the ceiling of the cavern lies out of sight,
matchwait

room1:
put spellup auto
waitfor PsiNet is done spelling you up.
put east
counter set 2
goto roomcheck

room2:
put east
counter set 3
goto roomcheck

room3:
put northeast
counter set 4
goto roomcheck

room4:
put west
counter set 5
goto roomcheck

room5:
put west
counter set 6
goto roomcheck

room6:
put north
counter set 7
goto roomcheck

room7:
put east
counter set 8
goto roomcheck

room8:
put southwest
waitfor Obvious exits: north, northeast, east, southeast, south, southwest
put southwest
counter set 1
goto roomcheck

roomcheck:
put look
match roomwait Your disk arrives, following you dutifully
match roomwait Also here:
match myklianwait Obvious exits:
matchwait

targetclear:
put target clear
waitfor Target cleared.
goto myklian

myklianwait:
waitfor followed.

myklian:
match room%c You do not have a target
match kill You are now targetting a
match targetclear You are currently targetting a
match myklian Your current target has become invalid. Clearing it now.
match loot You can't target a
put target myklian
put look
matchwait

killwait:
pause 1

wait:
pause 1

kill:
match wait ...wait
match skin dies.
match skin mass of flesh and fractured bones.
match killwait Cast Roundtime 3 Seconds.
match killwait Your armor prevents
match release You do not currently have a target.
put incant 1106
matchwait

skin:
pause 1
put target clear
waitfor Target cleared.
put get my cinquedea
waitfor You remove
put skin myklian
match stowhands You botched the job. The myklian scale is ruined.
match stow You skinned the
matchwait

stow:
put put my cinquedea in my wrist
waitfor You put a
put stow left
match hands You put a
match shift won't fit
matchwait

shift:
put incant 220
pause 2
put whisper JJJJJ Lets call it a night.
pause 4
put quit

stowhands:
pause 1
put put my cinquedea in my wrist
waitfor You put a
hands:
save diagnose
match lhand some minor cuts and bruises on your left hand
match rhand some minor cuts and bruises on your right hand
match 3rhand a fractured and bleeding right hand
match 3lhand a fractured and bleeding left hand
put health
matchwait

3rhand:
put rhand
waitfor Your spell is ready.
pause 4
put rhand
waitfor Your spell is ready.
pause 4
rhand:
put rhand
waitfor Your spell is ready.
pause 2
goto diagnose

3lhand:
put lhand
waitfor Your spell is ready.
pause 4
put lhand
waitfor Your spell is ready.
pause 4
lhand:
put lhand
waitfor Your spell is ready.
pause 2
goto %s

diagnose:
pause 1
save myklian
put appraise JJJJJ
match 3tranlhand a fractured and bleeding left hand
match tranlhand bruises on his left hand
match 3tranrhand a fractured and bleeding right hand
match tranrhand bruises on his right hand
match myklian no apparent injuries
matchwait

3tranlhand:
put transfer JJJJJ left hand
waitfor You meditate
goto 3lhand

tranlhand:
put transfer JJJJJ left hand
waitfor You meditate
goto lhand

3tranrhand:
put transfer JJJJJ right hand
waitfor You meditate
goto 3rhand

tranrhand:
put transfer JJJJJ right hand
waitfor You meditate
goto rhand

roomwait:
put look
waitfor You also see the XXXXX disk
goto room%c

loot:
put whisper JJJJJ loot
pause 1
goto diagnose

release:
put release
wait
put target clear
wait
goto myklian

Buckwheet
08-09-2006, 10:43 PM
Sorry I didn't have time to read through all of it...

The first problem I saw was this.

myklianwait:
waitfor followed.


The script should die there as it doesn't know what to do after followed. happens.

I could be mistaken about that, but that was just the first thing that caught my eye.

Bobmuhthol
08-09-2006, 10:44 PM
<<The script should die there as it doesn't know what to do after followed. happens.>>

It will just keep executing commands in order, which will result in the script reaching the myklian label underneath.

Buckwheet
08-09-2006, 10:56 PM
Well in that case, I don't have an answer for you.

Some of the things you are doing such as performing the look command and then matching your disk arrives, I don't think could happen, as they would have to line up so close together it would be pretty difficult to get the text spaced correctly.

I also have limited experience with interactive scripts between characters, and the scripts I have for Myklians when I skinned them for profits utilized a dedicated healer and a ranger and the healing was much more basic then what it appears you are going for.

Volstock
08-09-2006, 11:08 PM
it use to work just fine a year or two back, but now when I wanna make some money from Myklian it stop working.

WRoss
08-10-2006, 04:22 AM
Likely this is your problem right here...notice the bold

roomcheck:
put look
match roomwait Your disk arrives, following you dutifully
match roomwait Also here:
match myklianwait Obvious exits:
matchwait

Per example....

Obvious exits: out
Obvious paths: north, east, southwest, northwest

Volstock
08-10-2006, 07:27 AM
Likely this is your problem right here...notice the bold

roomcheck:
put look
match roomwait Your disk arrives, following you dutifully
match roomwait Also here:
match myklianwait Obvious exits:
matchwait

Per example....

Obvious exits: out
Obvious paths: north, east, southwest, northwest

If you mean Obvious paths, there is no path in the place.

Volstock
08-11-2006, 02:16 AM
Bump

Caede
08-11-2006, 09:37 AM
My only suggestion would be to put some echos at strategic points (first entry in each label) to see where the script is freezing. I don't like the 'waitfor followed.' bit, so I'd especially put an echo before and after that to see if you ever go past it.

Also, it can't hurt to change it to 'Obvious' instead of Obvious exits.

Volstock
08-12-2006, 09:52 PM
tried that didn't work. Any other suggestions guys?