; Lairs
; Scenes 40-60
; Green Wyrm Lair

	SCENE 40, lair1, SCENE, "Green Wyrm Lair"
#include proxbeta.txt
	THEME	0
IF T22-T24, @noonehere
	MUSIC	battle1.mid
	FIGHT	249
	END

@noonehere
ACTOR	1,	"Serpentine Chief", josh66, 1, 85, 90
FACE 1,0
1: There's nothing here...
H: The wyrm must've heard that you were gone.  We have to get back to the city!
GIVE T23
END

; Red Wyrm Lair

	SCENE 41, lair2, SCENE, "Red Wyrm Lair"
#include proxbeta.txt
	THEME	0
	MUSIC	battle1.mid
	FIGHT	251
	END

; King Black Wyrm Lair

	SCENE 42, lair3, SCENE, "King Black Wyrm Lair"
#include proxbeta.txt
	THEME	0
	MUSIC	finalboss1.mid
	FIGHT	255
	END

; Baby Green Wyrm Lair

	SCENE 43, lair1, SCENE, "Baby Green Wyrm Lair"
#include proxbeta.txt
	THEME	0
	MUSIC	battle2.mid
	FIGHT	205
	END

; Sand Wyrm Lair

	SCENE 44, "Eastern Gretok", SCENE, "Sand Wyrm Lair"
#include proxbeta.txt
	THEME	0
	MUSIC	battle3.mid
	FIGHT	250
	END

; Cave of Nimorra

	SCENE 45, "lair3", CUT, "Cave of Nimorra"
#include proxbeta.txt
	THEME 0
	FLAGS 64
	MUSIC "Cave of Nimorra.mid"
;IF T9, @win1
;IF T10, @end
	ACTOR 1, "Sessath", josh19, 1, 30, 70, 7
	ACTOR 2, "Trellak", Trellak, 1 10, 90, 6
1: We finally have the final ingredients to make the orb of destruction!
	WAIT 3
	SOUND evillaugh.wav
	WAIT 2
1: We can now lay waste to all of Gretok!
2: But what would protect us from the blast?
1: I made a potion from Celeano leaves that can protect us.
1: Prepare the orb!
2: Yes, father.
	MOVE 2, -100, 90
	WAIT 3
1: I will finally become King of Gretok!
@win1
	GOTO SCENE 46
@end
END

; Enter the heroes.
SCENE 46, "lair3", SCENE, "Cave of Nimorra"
#include proxbeta.txt
	THEME	0
;	IF T9, @win1x
	ACTOR 1, "Sessath", josh19, 1, 30, 70, 7
	MUSIC	finalboss2.mid
H: Not so fast, Sessath!  
1: Trellak, take care of this fool.
	MOVE 1, -30, 70
	WAIT 2
	FIGHT2 210
	IF WIN, @win1
	MOVE 1, 30, 70
1: No one can stop us!
END

; Killed Trellak!
@win1
GIVE T9
@win1x
1: You killed my son!
H: You would've killed him anyway!  Celeano leaves can't protect from a blast from an orb of destruction!
1: Yes.  Thanks.  Let me return the favor by killing you all!
	MUSIC finalboss3.mid
	FIGHT2 211
	IF WIN, @win2
	SOUND evillaugh.wav
END
@win2
H: Finally, Sessath is dead.
	MOVE 1, 30, 70
1: Not quite.  Didn't Phoenix Star tell you?  I'm a god too!
H: WHAT?!?
1: You can't kill me that easily, but I'll give up my plans for now.  
1: You'll see me again later.
	GIVE T10
	WAIT 3
	SOUND evillaugh.wav
	MOVE 1, -100, 70
END
; Bet you didn't expect that!

; Baby Black Wyrm Lair

SCENE 47, lair1, SCENE, "Baby Black Wyrm Lair"
#include proxbeta.txt
	THEME	0
	MUSIC	battle2.mid
	FIGHT	209
END

; Thanks to anyone that helped make Gretok a success.