The Players Corner Archive

Intelligent Transportation

Well, I haven't done this yet, but I'm thinking about it..

Many people who script the travelers from town to town have eventually come across a deader and made the choice either to stop to help, and be lost yourself, or leave him/her behind and call for help when you get to town.

Or maybe you've gotten stunned or you typed something and got a type-ahead miss on one of the MOVEs.

Anyway, the idea is this; intelligent movement scripts that can "pick up" from a lost trip and take you the rest of the way. Useful for both making emergency stops and turning around mid-way. The script would use a series of matchsets (30 room descriptions, 2 "Obvious exits:" "Obvious paths:" checks to make it go to the next set) activated by "l", to send you to the correct position in the script after your location is determined.

Has it already been done? reg

Tis a wonderful idea, but I just pause the script when I see someone in need. To pause the script just hit [Shift]+[Esc]. Another thing to watch out for is the script timing out if the help you give takes too long. Both pausing the script and using a script that stops to help people will time out so there is no going around it unless ye make the script a smart script that can look and see what room you are in and continue from there once restarted. If you successfully complete a script to the effect you desire, by all means post it. I would love to see one that goes from WL to Mule and can find the time to stop without getting ye lost. I am positive there is a way to do it, but right now am too lazy to do so myself. *whistles to himself*

------------------
Caels Onae'Rae
==============
"Light the path through darkness with the light of friendship." reg

Here's the beginning of exactly that kind of script I wrote for traveling to and from wehnimer's and icemule.

For brevity (and to reduce redundancy) I only included the first 6 steps, but the rest of the trip is exactly the same process.

Basically, each room move is preceded by a label in order from 1 to 143. The script echo's the incremental counter on each move, so that if and when you stop the script, you restart by simply typing .tomule 45, or whichever step need to resume.

The only subtlety is knowing whether to type .tomule X or .tomule X+1 depending on if the move was made after the last counter was displayed.

If anyone can simplify this... please show me.

-Joonan

------------------
AIM: Clumsy Disciple


# To Icemule Trace from Wehnimer's Landing
# by David Close http://www.closes.org

echo ---------------------------------------------
echo Wehnimers to Icemule
echo
echo Stand outside North Gate
echo Get your WEAPON and SHIELD out
echo
echo If and when the script stops, X = last counter displayed:
echo If you didn't make the move (slipped & fell)
echo after the last counter displayed,
echo Then restart using .tomule X
echo
echo If you did make the move (manually stopped)
echo after the last counter displayed,
echo Then restart using .tomule X + 1
echo -----------------------------------------------
pause 10

if_1 goto Restart
goto NewTrip


Restart:
counter set %1
goto %c

NewTrip:
counter set 0
put stance defensive

1:
echo COUNTER = %c
counter add 1
move sw

2:
echo COUNTER = %c
counter add 1
move s

3:
echo COUNTER = %c
counter add 1
move s

4:
echo COUNTER = %c
counter add 1
move s

5:
echo COUNTER = %c
counter add 1
move s

6:
echo COUNTER = %c
counter add 1
move s

etc..

[This message has been edited by Joonan (edited 04-18-2001).] reg

Why not just have it like this:

if_1 goto %1

move s
2:
echo 2
move w
3:
echo 3
move s
4:
echo 4
move s

and so on.


Nietslaf

[This message has been edited by Nietslaf (edited 04-18-2001).] reg

you can take out all the echos, and the command line variables, and just save %c everytime you add the counter. the %s variable saves as long as your running the wizard, so when you start up you can have it goto %s and it will pick up right where it left off.

Also good for time outs

for the first run off the script
put a

labelerror:
goto start

or whatever.


'lood

reg