home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Games 3
/
cd.iso
/
games
/
dcg303
/
teller.scr
< prev
next >
Wrap
Text File
|
1993-06-27
|
1KB
|
59 lines
!
! Default Fortune Teller script..
!
! (c) DC Software, 1992
!
!------------------------------------------------------------------------!
:@TALK ! Talk to the character !
!------------------------------------------------------------------------!
if player.hp = 0 then
writeln( player.name, " is dead!" );
STOP;
endif;
if npc.picture >= 0 then
viewpcx(npc);
endif;
! First, say hello.. !
if NPC.V0 > 0 then
writeln( "Hello ", player.name, ". What brings you back?" );
else
writeln( "How may I help you?" );
endif;
! Now, set some variables..
NPC.V0 = 1; ! From know on, remember we've been here
L1 = select$( "Tell Fortune", npc.value, "Leave", -1 );
if L1 <> 0 then
if NPC.V0 > 0 then
writeln( "As you wish.." );
else
writeln( "Fine, but you may live to regret it.." );
endif;
goto XSTOP;
endif;
if npc.value > group.gold then
writeln( "You don't have enough money.." );
goto XSTOP;
endif;
dec( group.gold, npc.value );
readtext( npc.text );
goto XSTOP;
!-----------------------------------------------------------------!
! All STOPs now lead here so the screen can be restored if needed !
!-----------------------------------------------------------------!
:XSTOP
if npc.picture >= 0 then
paint(window); ! Assumes the picture fits in the window !
endif;
STOP;