home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ZZTV 9
/
zztv9.zip
/
Tavernen.txt
< prev
next >
Wrap
Text File
|
2004-06-02
|
1KB
|
41 lines
$Tavern Engine v1.0
$by
$Jazzy2290
Feel free to use and/or modify this
engine; just give me some credit lest I
hunt you down and flame you. :P )
This is somewhat lenghty, but simple to
understand. It uses the basic Store engine
to start off with. However, those things
in the background aren't just for
decoration; the @Keeper will actually go
up to one. During this time, @Barkeep
#locks itself. It then /i's
the exact number of steps the @Keeper
takes (including /i's), then #unlocks. At
that moment, the @Keeper sends it a
message to change shape and #zap touches
the appropriate amount of times.
Now, the @Barkeep should at this time
look like a "pint", and allow you to
drink it yourself. It then #clears and
#sets the flag 'drink', which lets the
@Door let you out. It then #char's back
and #restores touch, allowing you to drink
again. Also note that Beer and Ale #take 6
health, Booze #takes 11 health, and Wine
#gives 30 health.
Why? To see if you're 'drunk', in which
case (When it can't #take the right
amount of health) it uses the label td
(Too drunk) to display a message and end
the game. Furthermore, MAKE SURE that
@Barkeep AND @Keeper are at the same
cycle,(preferably #cycle 1,) as this is
very important! If they aren't in sync,
this WILL NOT WORK!
If you still don't understand, just edit
the objects.