PDA

View Full Version : Movement



02-14-2004, 06:13 PM
Hows the movement aspect for most of these scripts work? Anyone feel like giving me a quick breakdown?

TheEschaton
02-14-2004, 06:19 PM
I don't think I get what you're saying.


If you mean the MOVE command in the Wizard FE script language, it's basically just a PUT <direction> followed by a WAITFOR <room input> sort of thing. It'll put a direction in, and then wait til it acknowledges room input (note, this counts for when you LOOK, etc).

I always start my EN-to-Landing script one SW of the Sapphire gate, FLIRT there, and when the script tries to go SW, I will use LOOK to get the script to think I did just go SW. I hate flirting in front of other people.

-TheE-

Xcalibur
02-14-2004, 06:22 PM
I don't think he's speaking of that.

I think he's speaking of that part of scripts:

goback:
put look
match gb0 Obvious exits: southwest
match gb2 Obvious exits: northwest
match gb4 Obvious exits: northeast
match gb6 Obvious exits: southeast
match gb3 Obvious exits: north
match gb5 Obvious exits: east
match gb7 Obvious exits: south
match gb1 Obvious exits: west
matchwait

gb0:
save sw
goto mover

gb1:
save w
goto mover


Which I have 0 clue at all.

02-14-2004, 06:35 PM
Yea, that stuff X

TheEschaton
02-14-2004, 06:41 PM
Which scripts? Am I missing something? That's not in my scripts.

-TheE-

Xcalibur
02-14-2004, 06:44 PM
See his first post

That's the "normal" way to make the cool scripts to move.

If not, you're assuming the route (put move e, put move n) which makes a script long as hell and slow as some chick's brains.

02-14-2004, 10:02 PM
Okay, i got this script that incorporates the movement method Kranar uses, along with a basic function. I.e Check locker to see if someone is in there and if not move on to next and if so put boxes into the locker. WHY THE FUCK DOESN"T IT WORK. For whatever reason it hangs up when you cycle back through the different box types.

#dump

counter set 1

Start:
put look
Match checkbag Moot Hall, Great Lobby]
Match lost obvious
matchwait

lost:
echo **** Must be in moot hall for script to work properly****
exit

checkbag:
put look in pack
match r1 coffer
match r1 trunk
match r1 box
match r1 strongbox
match r1 chest
match lost2 In the
match lost2 There is
matchwait

r1:
pause 2
put e
pause .5
put e
pause .5
counter set 2
goto locker

r2:
pause 2
put e
counter set 4
goto locker

r3:
pause 2
put e
counter set 5
goto locker


r4:
pause 2
put e
counter set 6
goto locker

r5:
pause 2
put n
counter Set 7
goto locker

r6:
pause 2
put n
counter set 8
goto locker

r7:
pause 2
move s
put s
move s
counter set 9
goto locker

r8:
pause s
put s
counter set 10
goto locker

r9:
pause 2
move n
move n
move w
move w
move w
move w
move w
counter set 1
goto checkbag


locker:
put go open
match dump1 Public Lockers]
match dump1 You step
match r%c you may only type ahead
match lost3 A clerk walks up
match r%c You'll have to wait
matchwait

dump1:
put open lock
pause .5

dump:
put look in pack
match coffer coffer
match trunk trunk
match strongbox strongbox
match boxer box
match chest chest
match lost2 There is nothing
matchwait

coffer:
put get coffer
match coffer2 You remove
match dump Get what?
matchwait

coffer2:
put put coffer in locker
pause .5
goto coffer


trunk:
put get trunk
match trunk2 You remove
match dump Get what?
matchwait

trunk2:

put put coffer in locker
pause .5
goto trunk

Strongbox:
put get strongbox
match strong2 You remove
match dump Get what?
matchwait

strong2:
put put strong in locker
pause .5
goto strongbox

boxer:
put get box
match box2 You remove
match dump Get what?
matchwait

box2:
put put box in locker
pause .5
goto boxer

chest:
put get chest
match chest2 You remove
match dump Get what?
matchwait

chest2:
put put chest in lock
pause .5
goto chest

lost2:
echo *** DONE!!***
exit

Lost3:
echo *** PAY YOUR DEBTS *****
exit

Bobmuhthol
02-14-2004, 10:07 PM
1. Why put boxes in a locker?
2. Why make a script to put boxes in a locker?

02-14-2004, 10:11 PM
Its just a little test to see if i know what i'm doing. However, if you wanted a practical application it could be used in a hunting script to save boxes so you can go get em picked when you have the time.

Bobmuhthol
02-14-2004, 10:15 PM
I think it could be a lot shorter, but other than that I don't see why it doesn't work efficiently.

02-14-2004, 10:24 PM
Because it hangs. Let me demonstrate

>.dump
[Script dump is running, Esc to cancel, Shift-Esc to pause]
>look
You put an iron-bound monir strongbox in your rolaren-clasped pack.
>
Destructin just arrived.
>
[Moot Hall, Great Lobby]
This is the great lobby of the Moot Hall. Hushed voices discussing urgent town matters echo off the high ceiling. The walls are draped in rich tapestries framing niches that hold marble busts of local dignitaries. Ahead of you is a double door, and to your left, a mahogany door bearing a silver plaque. You also see a huge wall map of the lands carved from solid maple and polished to a deep sheen, the Debt Collector's Office, a staircase with a sign on it, a small brass plaque with a map of town mounted on the wall and a blackboard.
Also here: Destructin
Obvious exits: east, out
>look in pack
Destructin just went east.
>
In the rolaren-clasped pack you see an iron-bound monir strongbox, a rotting thanot chest and a rotting tanik box.
>e
>e
>go open
[Moot Hall, Storage Facility]
You are in the anteroom of the public storage locker facility. This area is busy with clerks going over paperwork. A hallway leads east to the locker booths.
Obvious exits: east, west
>
[Moot Hall, Storage Hall]
You are in a darkly lit hallway which travels east and west. On the north wall is a curtained opening.
Obvious exits: east, west
>
You'll have to wait, Randin is presently using that locker booth.
>e
>go open
[Moot Hall, Storage Hall]
You are in a darkly lit hallway which travels east and west. On the north wall is a curtained opening.
Obvious exits: east, west
>
You step through the curtained opening.
[Public Lockers]
You are standing in a tiny room whose facing wall is an array of small, locked doors. One of the lockers has been removed for you and is sitting on a small counter. You also see a curtained opening.
Obvious exits: none
>open lock
>look in pack
You open the locker.
>
In the rolaren-clasped pack you see an iron-bound monir strongbox, a rotting thanot chest and a rotting tanik box.
>get strongbox
You remove an iron-bound monir strongbox from in your rolaren-clasped pack.
>put strong in locker
>get strongbox
You place the monir strongbox in the locker, and it quickly disappears.
>
Get what?
>look in pack
In the rolaren-clasped pack you see a rotting thanot chest and a rotting tanik box.
>get chest
You remove a rotting thanot chest from in your rolaren-clasped pack.
>put chest in lock
>get chest
You place the thanot chest in the locker, and it quickly disappears.
>
Get what?
>look in pack
In the rolaren-clasped pack you see a rotting tanik box.

Then it hangs

Also, how would you make it shorter.

Bobmuhthol
02-14-2004, 10:25 PM
I understand it hangs, what I said was I don't know why it would.

I'll post a shorter version in a minute.

Bobmuhthol
02-14-2004, 10:38 PM
Okay, well, this thing is confusing as all hell, but I shortened it a little and fixed a typo or two.

#dump

counter set 1

Start:
put look
Match checkbag Moot Hall, Great Lobby]
Match lost obvious
matchwait

lost:
echo **** Must be in moot hall for script to work properly****
exit

checkbag:
put look in pack
match r1 coffer
match r1 trunk
match r1 box
match r1 strongbox
match r1 chest
match lost2 In the
match lost2 There is
matchwait

r1:
pause 2
move e
move e
counter set 2
goto locker

r2:
pause 2
move e
counter set 4
goto locker

r3:
pause 2
move e
counter set 5
goto locker


r4:
pause 2
put e
counter set 6
goto locker

r5:
pause 2
put n
counter Set 7
goto locker

r6:
pause 2
move n
counter set 8
goto locker

r7:
pause 2
move s
move s
move s
counter set 9
goto locker

r8:
pause 2
move s
counter set 10
goto locker

r9:
pause 2
move n
move n
move w
move w
move w
move w
move w
counter set 1
goto checkbag


locker:
put go open
match dump1 You step
match r%c you may only type ahead
match lost3 A clerk walks up
match r%c You'll have to wait
matchwait

dump1:
put open lock
pause .5

dump:
put look in pack
match coffer coffer
match trunk trunk
match strongbox strongbox
match boxer box
match chest chest
match lost2 There is nothing
matchwait

coffer:
save coffer
goto lockeritbaby

trunk:
save trunk
goto lockeritbaby

Strongbox:
save strongbox
goto lockeritbaby

boxer:
save box
goto lockeritbaby

chest:
save chest
goto lockeritbaby

lockeritbaby:
put get %s
match cool You remove
match dump Get what?

cool:
put put %s in locker
pause .5
goto lockeritbaby

lost2:
echo *** DONE!!***
exit

Lost3:
echo *** PAY YOUR DEBTS *****
exit

02-14-2004, 11:32 PM
Yours doesn't even get out of the first room. But i'll try and incorporate the save command

Bobmuhthol
02-14-2004, 11:34 PM
<<Yours doesn't even get out of the first room.>>

I didn't change anything in the first half of the script.

Copy and paste yours, it won't work either, I guarantee it.

02-14-2004, 11:36 PM
I already copied it working.

Bobmuhthol
02-14-2004, 11:37 PM
Copy it from here, paste it in a new file, use it. It won't work.

And pay attention to the fucking game I've been talking to you for an hour.

02-14-2004, 11:43 PM
Doesn't work. This is what happens

>open lock
>look in pack
You open the locker.
>
In the rolaren-clasped pack you see a rotting tanik box and a rotting thanot chest.
>get box
>put box in lock
You remove a rotting tanik box from in your rolaren-clasped pack.
>get box
>put box in lock
You place the tanik box in the locker, and it quickly disappears.
>
Get what?
>
I could not find what you were referring to.
>get box
>put box in lock
Get what?
>
I could not find what you were referring to.
>get box
>put box in lock
Get what?
>
[script aborted]

02-14-2004, 11:45 PM
Thats what i did when i said yours didn't work. Anyway, i went to jack in the box so i wasn't at my computer

Bobmuhthol
02-14-2004, 11:48 PM
Fuck, I know why, put a matchwait in lockeritbaby and it will work.

02-14-2004, 11:48 PM
#dump

counter set 1

Start:
put look
Match checkbag Moot Hall, Great Lobby]
Match lost obvious
matchwait

lost:
echo **** Must be in moot hall for script to work properly****
exit

checkbag:
put look in pack
match r1 coffer
match r1 trunk
match r1 box
match r1 strongbox
match r1 chest
match lost2 In the
match lost2 There is
matchwait

r1:
pause 2
put e
pause .5
put e
pause .5
counter set 2
goto locker

r2:
pause 2
put e
counter set 4
goto locker

r3:
pause 2
put e
counter set 5
goto locker

r4:
pause 2
put e
counter set 6
goto locker

r5:
pause 2
put n
counter Set 7
goto locker

r6:
pause 2
put n
counter set 8
goto locker

r7:
pause 2
move s
put s
move s
counter set 9
goto locker

r8:
pause s
put s
counter set 10
goto locker

r9:
pause 2
move n
move n
move w
move w
move w
move w
move w
counter set 1
goto checkbag

locker:
put go open
match dump1 Public Lockers]
match dump1 You step
match r%c you may only type ahead
match lost3 A clerk walks up
match r%c You'll have to wait
matchwait

dump1:
put open lock
pause .5

dump:
put look in pack
match coffer coffer
match trunk trunk
match strongbox strongbox
match boxer box
match chest chest
match lost2 There is nothing
matchwait

coffer:
put get coffer
match coffer2 You remove
match dump Get what?
matchwait

coffer2:
put put coffer in locker
pause .5
goto coffer

trunk:
put get trunk
match trunk2 You remove
match dump Get what?
matchwait

trunk2:

put put coffer in locker
pause .5
goto trunk

Strongbox:
put get strongbox
match strong2 You remove
match dump Get what?
matchwait

strong2:
put put strong in locker
pause .5
goto strongbox

boxer:
put get box
match box2 You remove
match dump Get what?
matchwait

box2:
put put box in locker
pause .5
goto boxer

chest:
put get chest
match chest2 You remove
match dump Get what?
matchwait

chest2:
put put chest in lock
pause .5
goto chest

lost2:
echo *** DONE!!***
exit

Lost3:
echo *** PAY YOUR DEBTS *****
exit


For whatever reason, when i add the save command to it, it just keeps trying to get strong box and shit