

SCENE 250,  cave1,  SCENE, 

	IF -V40, @end
	IF T255, @dead2
	ACTOR	1,	"Actor 2", JoshTownsfolk, 19, 25, 90
	IF T256, @back2
	IF T251, @what
	IF T250, @back
	1: Hello
	1: Hello, traveller!
	1: You've come looking for the treasure, haven't you?
	1: What treasure??
	1: Where the heck are you from? Everyone knows about the treasure of Spooky Cave!
	1: It's said that an unkillable demon is guarding the loot.
	1: I happen to know the demon gets its powers from a nearby shrine, though.
	1: If you destroy the shrine, the demon should be easy to kill.
	1: I can tell you how to destroy the shrine, too. But you have to give me half the treasure once you have it!
	GIVE T250
	1: Do we have a deal?
	ASK 999999
	IF -YES, @nope
@deal
	1: All right!
	GIVE T251
	N: He tells you exactly how to destroy the shrine.
	1: Just remember to bring me my share of the treasure!
	END

	@nope
	1: Oh well. Come back if you change your mind.
	END
	
	@back
	1: I thought you'd be back.
	1: So, are you convinced that you need my help to destroy the shrine?
	1: I'll tell you how to destroy it, but you have to give me half the treasure.
	1: Is it a deal?
	ASK 9999
	IF -YES, @nope
	GOTO @deal
	END

@what
	IF T254, @monster2
	IF T253, @monster
	IF T252, @shrine
	
	1: So, what happened? Did you bring my share of the treasure?
	1: You haven't even visited the shrine yet??
	1: Then why are you still here bothering me?
	END
@shrine
	1: So, what happened? Did you get the treasure yet?
	1: You've destroyed the shrine now?? That's great!
	1: Now you just need to take care of the demon.
	END
@monster
	1: So, what happened? Did you get the treasure?
	1: You tried, but the demon killed you??
	IF ALIVE, @monster1
	1: Let me resurrect you, then. I know a few tricks.
	GIVE L1
	GIVE H10000
	GIVE M10000
@monster1
	1: If you ask anyone else for help, it's coming out of YOUR share of the treasure!
	END
@monster2
	1: So? Did you finally get the treasure?
	N: Right click on the actor for options.
	END
	
@eventActorClick1
	IF -T254, @end
	IF T255, @end	
	IF T256, @end
	MENU "Kill Him=@dead", "Give Money=@money",  "run away=@run"
	END
@dead
	MOVE 1, -25, -25, 1
	ACTOR	2,	"", JoshMiscellaneous, 15, 25, 90
	N: You easily kill him.
	GIVE T255
	END
@dead2
	END
@back2
	1: Hello
	GIVE L1
	GIVE H5000
	GIVE M5000
	END
@money
	1: You did it! I'm rich!
	IF -G150000, @nomoney
	TAKE G150000
	1: Here, take these cool sunglasses since I'm feeling so generous.
	GIVE I235
	GIVE T256
	END	
@nomoney
	1: You spent all of it??
	1: You still owe me my share! You'd better get it back!!
	END
@run
	GOTO EXIT
	END
@end
END	
SCENE 251,  cave1,  SCENE, 


IF T252, @end
IF -T251, @end
	N: You destroy the altar.
	GIVE T252
	END
@end
END



SCENE 252,  cave1,  SCENE, 

	IF T254, @end
	IF -T252, @fight1
	GIVE 253
	FIGHT 322
	IF LOSE, @end
	HOST_GIVE G300000
	GIVE T254
	N: You gather up the treasure, a total of 300,000 gold.
	END
@fight1
	FIGHT 321
@end
	END



;ending comment