home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 1
/
ClassicFond01.iso
/
simulato
/
privater.zip
/
TABTNE.VDA
< prev
Wrap
Text File
|
1993-08-10
|
10KB
|
506 lines
@echo off
set _=echo
set ~=goto
set !=set _
set @=if not
echo.
if '%1'=='' %~%cstart
if '%1'=='setup' %~%csetup
if '%_L%'=='' %~%c1
%!%T=
%!%U=
if '%1'=='go' %~%cgo
if '%1'=='inv' %~%cinv
if '%1'=='take' %~%ctake
if '%1'=='drop' %~%cdrop
if '%1'=='quit' %~%cquit
if '%1'=='look' %~%clook
if '%1'=='say' %~%csay
if '%1'=='use' %~%cuse
:cstart
%@%exist advent.bat %~%c0
%@%exist go.bat %~%c2
%@%'%_L%'=='' %~%c3
cls
%_% --- Art D's First Batch Adventure ---
echo.
echo.
%_%A few notes before you begin:
echo.
%_%1. Do not let your commands stray beyond two words.
%_%2. Type 'quit' to quit.
%_%3. Don't type DOS commands while playing (except 'dir' for a verb list).
echo.
%!%R=%PROMPT%
%!%L=path
%!%BOX=road
%!%KNIFE=path
%!%LAMP=nowh
%!%SHOES=gymn
prompt $g
advent go
:c0
%_%First you have to give this file its rightful name.
%~%e
:c1
%_%Type 'advent' to start.
%~%e
:c2
%_%Please place this file in an empty directory.
%_%Then type 'advent setup'.
%~%e
:c3
%_%Type 'quit' before restarting.
%~%e
:cgo
%@%'%_L%'=='' %~%ggo
%_%Type 'advent' to start.
%~%e
:ggo
if '%2'=='' %~%gl
if '%2'=='n' %~%gn
if '%2'=='s' %~%gs
if '%2'=='w' %~%gw
if '%2'=='e' %~%ge
if '%2'=='u' %~%gu
if '%2'=='d' %~%gd
if '%2'=='north' %~%gn
if '%2'=='south' %~%gs
if '%2'=='west' %~%gw
if '%2'=='east' %~%ge
if '%2'=='up' %~%gu
if '%2'=='down' %~%gd
%_%This adventure is strictly cardinal.
%~%e
:gn
if '%_L%'=='path' %~%g1
if '%_L%'=='roo2' %~%g5
%~%gb2
:gs
if '%_L%'=='pend' %~%g2
if '%_L%'=='room' %~%g7
%~%gb2
:gw
if '%_L%'=='pend' %~%g4
if '%_L%'=='road' %~%gb1
if '%_L%'=='gymn' %~%g7
if '%_L%'=='roo2' %~%gb3
%~%gb2
:ge
if '%_L%'=='road' %~%g1
if '%_L%'=='roo2' %~%g10
if '%_L%'=='shop' %~%gb1
%~%gb2
:gu
if '%_L%'=='cave' %~%g1
if '%_L%'=='cav2' %~%g5
if '%_L%'=='cav3' %~%g8
if '%_L%'=='cell' %~%gg1
%~%gb2
:gd
if '%_L%'=='pend' %~%g3
if '%_L%'=='room' %~%g6
if '%_L%'=='cell' %~%g9
%~%gb2
:g1
%!%L=pend
%~%gl
:g2
%!%L=path
%~%gl
:g3
%!%L=cave
%~%gl
:g4
%!%L=road
%~%gl
:g5
%!%L=room
%~%gl
:g6
%!%L=cav2
%~%gl
:g7
%!%L=roo2
%~%gl
:g8
%!%L=cell
%~%gl
:g9
%!%L=cav3
%~%gl
:g10
%!%L=gymn
%~%gl
:gb1
%_%Nope. Too slick. Can't let you risk hurting yourself in an Art D
%_%Deth-B-Gon(tm) adventure such as this. Other frustrations will suffice.
%~%e
:gb2
%_%You can't go that way.
%~%e
:gb3
%_%The western exit is barred by a massive portcullis.
%~%e
:gg1
%_%As you emerge from the cellar, its entrance collapses behind you! You find
%_%yourself in a sunny clearing with a statue of a smiling crowned man.
%_%On its base is an inscription: 'You have passed the first test. Your
%_%reward is a single word: PHLEGMATIC. Remember it well, for it will aid you
%_%on the dark road that lies ahead. Play Art D's Next Batch Adventure and
%_%fulfill your destiny!'
echo.
advent quit
:gl
%!%D=
%~%g%_L%
:gpath
%_%You are walking along a sunny north/south path near a small stream.
%_%A very recent landslide prevents your return to the south.
%~%go
:gpend
%_%You are at the end of a sunny path. A hatchway leads down and a
%_%concrete bridge crosses a stream to the west.
%_%A sign has been planted next to the hatchway.
%~%go
:gcave
%_%You are in a damp cave with an exit above. The letters SCSCSCFY are
%_%etched in one wall.
%~%go
:gcav2
%_%You are in a damp cave with an exit above. The word BREADSTICK is
%_%etched in one wall.
%~%go
:gcav3
%_%You are in a damp cave with an exit above. The message CRACKTHE is
%_%etched in one wall.
%~%go
:groad
%_%You are on the east edge of a paved road. The road is very slick
%_%here, so it might not be wise to venture out on it.
%~%go
:groom
%@%'%_LAMP%'=='poss' %~%gdark
%_%You are in a throne room. Right behind the throne, actually.
%_%The main part of the room lies to the south. There's an open trap door
%_%in the floor.
%~%go
:groo2
%@%'%_LAMP%'=='poss' %~%gdark
%_%You are in a throne room. Exits lead east and west.
%~%go
:gcell
%_%You are in a dusty cellar. Stairs go up and there is a hole in the floor
%_%in one corner.
%~%go
:ggymn
%@%'%_LAMP%'=='poss' %~%gdark
%_%You are in the king's private gymnasium.
%~%go
:gshop
%_%You are in a quaint little shop. A small bell sits on the counter and
%_%a sign hangs on one wall.
%~%go
:gdark
%!%D=X
%_%You are in the dark.
%~%e
:go
%!%U=%_%There is a
if '%_BOX%'=='%_L%' %_U%small box here.
if '%_KNIFE%'=='%_L%' %_U%sharp knife here.
if '%_LAMP%'=='%_L%' %_U%shiny unlit lamp here.
if '%_SHOES%'=='%_L%' %_U%pair of cleated shoes here.
%~%e
:cinv
%!%U=%_%You are carrying
%@%'%_BOX%'=='poss' %~%i1
%_U%a box.
%!%T=X
:i1
%@%'%_KNIFE%'=='poss' %~%i2
%_U%a knife.
%!%T=X
:i2
%@%'%_LAMP%'=='poss' %~%i3
%_U%a lit lamp.
%!%T=X
:i3
%@%'%_SHOES%'=='poss' %~%i4
%_U%a pair of shoes.
%!%T=X
:i4
if '%_T%'=='' %_U%nothing.
%~%e
:ctake
if '%2'=='' %~%tb3
if '%_D%'=='X' %~%tb4
if '%2'=='box' %!%T=%_BOX%
if '%2'=='knife' %!%T=%_KNIFE%
if '%2'=='lamp' %!%T=%_LAMP%
if '%2'=='shoes' %!%T=%_SHOES%
if '%_T%'=='%_L%' %~%tg
if '%_T%'=='poss' %~%tb1
%@%'%_T%'=='' %~%tb2
%_%Take %2? What %2?
%~%e
:tg
%!%%2=poss
%_%Taken.
%~%e
:tb1
%_%You already have the %2.
%~%e
:tb2
%_%The %2 ain't here.
%~%e
:tb3
%_%'Take' is a transitive verb, pal.
%~%e
:tb4
%_%It's too dark to take anything right now.
%~%e
:cdrop
if '%2'=='' %~%dwhat
if '%2'=='box' %!%T=%_BOX%
if '%2'=='knife' %!%T=%_KNIFE%
if '%2'=='lamp' %!%T=%_LAMP%
if '%2'=='shoes' %!%T=%_SHOES%
if '%_T%'=='poss' %~%dg
%@%'%_T%'=='' %~%db
%_%Drop the %2? I don't think I quite understand you.
%~%e
:dwhat
%_%'Take' ain't the only transitive verb, either.
%~%e
:db
%_%You aren't carrying the %2.
%~%e
:dg
%!%%2=%_L%
%_%Dropped the %2.
%~%e
:cquit
prompt %_R%
%!%R=
%!%L=
%!%T=
%!%D=
%!%BOX=
%!%KNIFE=
%!%LAMP=
%!%SHOES=
echo.
%_%Your environment is clear. You may proceed.
echo.
%~%e
:clook
if '%2'=='' %~%cgo
if '%_D%'=='X' %~%lb1
if '%2'=='sign' %~%lsign
if '%2'=='box' %!%T=%_BOX%
if '%2'=='knife' %!%T=%_KNIFE%
if '%2'=='lamp' %!%T=%_LAMP%
if '%2'=='shoes' %!%T=%_SHOES%
if '%_T%'=='poss' %~%l%2
if '%_T%'=='%_L%' %~%l%2
%~%lb2
:lb1
%_%Sorry, too dark.
%~%e
:lb2
%_%Sorry, I don't know how to look at such a thing.
%~%e
:lsign
if '%_L%'=='pend' %~%ls1
if '%_L%'=='shop' %~%ls2
%~%lb2
:ls1
%_%The sign reads 'This Way to the Cave of Thrills.'
%~%e
:ls2
%_%The sign reads 'Until Tuesday, 40%% off magic words like CRACKTHE.'
%~%e
:lbox
%_%The box is made of cardboard and wrapped in decorative colored paper.
%_%An ad hanging from the box depicts a smiling crowned man in a cave
%_%carrying a long thin food item. The caption reads 'Try BREADSTICK! It's new!'
%~%e
:lknife
%_%The knife is very sharp.
%~%e
:llamp
%_%The lamp bears the inscription 'Frenthor's Magic Touch-Activated Lamps.'
%~%e
:lshoes
%_%The cleats look sturdy.
%~%e
:csay
%!%T= for a moment.
if '%2'=='' %~%sb
if '%2'=='scscscfy' %~%s1
if '%2'=='breadstick' %~%s2
if '%2'=='crackthe' %~%s3
%~%sb4
%~%e
:sb
%_%Say what?
%~%e
:s1
if '%_L%'=='cav2' %~%sg1
if '%_L%'=='cav3' %~%sg1
%~%sb2
:s2
if '%_L%'=='cave' %~%sg2
if '%_L%'=='cav3' %~%sg2
%~%sb2
:s3
if '%_L%'=='cave' %~%sg3
if '%_L%'=='cav2' %~%sg3
%~%sb2
:sb2
if '%_L%'=='cave' %~%sb3
if '%_L%'=='cav2' %~%sb3
if '%_L%'=='cav3' %~%sb3
%~%sb4
%~%e
:sb3
%_%A hollow voice says 'Same to you.'
%~%e
:sb4
%_%Nothing happens.
%~%e
:sg1
%_%Your vision blurs%_T%
%!%L=cave
%~%e
:sg2
%_%You feel queasy%_T%
%!%L=cav2
%~%e
:sg3
%_%Your ears buzz%_T%
%!%L=cav3
%~%e
:cuse
if '%2'=='' %~%ub1
if '%_D%'=='X' %~%ub2
if '%2'=='box' %!%T=%_BOX%
if '%2'=='knife' %!%T=%_KNIFE%
if '%2'=='shoes' %!%T=%_SHOES%
if '%2'=='bell' %~%ubell
if '%_T%'=='' %~%ub5
%@%'%_T%'=='poss' %~%db
%~%u%2
:ub1
%_%Once again, a direct object would be most appreciated.
%~%e
:ub2
%_%You might hurt yourself if you try to use anything in the dark.
%~%e
:ubox
%@%'%_LAMP%'=='nowh' %~%ub3
%_%The beautiful colored paper is wrapped very tightly and your nails
%_%aren't sufficient to tear it.
%~%e
:uknife
%@%'%_BOX%'=='poss' %~%ub4
%@%'%_LAMP%'=='nowh' %~%ub4
%_%The knife slices cleanly through the box's beautiful colored paper.
%_%Inside the box is a shiny little lamp that lights up as you take it.
%!%LAMP=poss
%~%e
:ushoes
if '%_L%'=='road' %~%ush1
if '%_L%'=='shop' %~%ush2
%~%ub4
:ush1
%!%L=shop
%~%ush3
:ush2
%!%L=road
%~%ush3
:ush3
%_%Using the nifty cleated shoes, you jog effortlessly across the road.
%~%e
:ubell
%@%'%_L%'=='shop' %~%lb2
%_%A voice from under the counter shouts 'Go away!'
%~%e
:ub3
%_%The %2 has already been used, so to speak.
%~%e
:ub4
%_%There is no obvious immediate use for the %2.
%~%e
:ub5
%_%I don't know how to use that which you call '%2.'
%~%e
:csetup
%!%T=%_%@advent
%!%U=if exist
%!%V=bat %~%e
%_U%d.%_V%1
%_T%go d > d.bat
:e1
%_U%drop.%_V%2
%_T%drop %%1% > drop.bat
:e2
%_U%e.%_V%3
%_T%go e > e.bat
:e3
%_U%get.%_V%4
%_T%take %%1% > get.bat
:e4
%_U%go.%_V%5
%_T%go %%1% > go.bat
:e5
%_U%inv.%_V%6
%_T%inv %%1% > inv.bat
:e6
%_U%n.%_V%7
%_T%go n > n.bat
:e7
%_U%quit.%_V%8
%_T%quit > quit.bat
:e8
%_U%s.%_V%9
%_T%go s > s.bat
:e9
%_U%l.%_V%10
%_T%look %%1% > l.bat
:e10
%_U%take.%_V%11
%_T%take %%1% > take.bat
:e11
%_U%u.%_V%12
%_T%go u > u.bat
:e12
%_U%w.%_V%13
%_T%go w > w.bat
:e13
%_U%look.%_V%14
%_T%look %%1% > look.bat
:e14
%_U%say.%_V%15
%_T%say %%1% > say.bat
:e15
%_U%use.%_V%16
%_T%use %%1% > use.bat
:e16
%_U%i.%_V%17
%_T%inv %%1% > i.bat
:e17
%_U%examine.%_V%18
%_T%look %%1% > examine.bat
:e18
%_%Type 'advent' to start.
%!%V=
%~%e
:e
%!%=
set ~=
set !=
set @=
echo.