;==========================================================================================
;Untaba Jungle Island Scenes
;==========================================================================================
	SCENE	900,	Bedroom,	SCENE,	"Untaba Sleeping Hole"
		ACTOR	1,	"Untasnore",	joshMiscellaneous, 26, 17, 71
	@begin
		SET	Innprice, 150
		MUL	Innprice, #<num.PeopleinParty>
		1: Let's just disregard the fact that there's a volcano about to kill us all.
		1: Would you like to stay the night? Only #<Innprice> Septi!
	@Menu
		MENU	"Yes=@yes", "No=@no", "Set Untaba as Save Point=@save"
		GOTO	@Menu
	@no
		1: Please come again!
		END
	@Eventactorclick1
		GOTO @begin
	@save
		SET	SPlocation, "Untaba"
		SET	SPid,	142
		SET	SPset,	1
		N: Save Point set as Untaba.
		END
	@yes
		IF G#<Innprice>, @hascash
		1: Sorry friend, we may be on the verge of death, but I can't run a charity here.
		END
	@hascash
		1: Thanks friend, enjoy your stay.
		HOST_TAKE G#<Innprice>
		GIVE	L1
		GIVE	H32000
		GIVE	M32000
		END
;==================================================
	SCENE	901,	ItemShop,	SCENE,	"Obsidian Implements"
		ACTOR	1,	"Untastab",	joshMiscellaneous, 29, 17, 71
		1: Hello, and welcome to my establishment.
		1: With all this talk of prophecies and erupting volcanoes, you'll need all the protection you can get!
		OFFER	301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319
		END
;===================================================
	SCENE	902,	ArmorShop,	SCENE,	"The Hypochondriac Herbalist"
		ACTOR	1,	"Untavaletude",	joshMiscellaneous, 28, 17, 71
		1: You look a little under the weather, are you okay?
		1: Maybe you should buy some (or all) of my items to make sure you don't keel over!
		OFFER	1, 2, 3, 4, 7, 8, 12, 13, 15, 16, 18, 19, 99, 141, 253
		END
;===================================================
;	90, "A disaster has stranded me on the Jungle Island of Untaba."
;	91, "I met the Untaban chief and learned of his island's dark fate."
;	92, "I received the blessing of the Sea God."
;	93, "The Sea God's blessing allowed me to travel the volcano and earn the Sea God's Amulet."
;	94, "With the Amulet's power protecting me, I was able to reach the deepest area of the volcano and defeat its guardian."
;	95, "As thanks, the chief gave me Dryad's Balance."
	SCENE	903, TwoWays,	SCENE,	"Chief's Hut"
	ACTOR	1,	"Untaprez",	joshRoyalty,	23, 17, 71
	IF T91, @hasT91
	1: Welcome to our island, friend.
	H: Hey thanks! You know, it's awfully warm here...
	1: Unfortunately so. It would seem that you have arrived at a poor time.
	1: Our nearby mountain is spewing lava all over!
	H: That sounds dangerous! Why don't you guys leave?
	1: It is our destiny to stay here.
	1: Long ago, a sapphire-haired prophet came to our small island, and spoke these words:
	1: "A time will come when the god of flame overpowers the lord of the sea."
	1: "Do not flee, though your land will be endangered."
	1: "A foreign hero will appear and restore balance to your lands."
	1: "When that happens, give #<g.him> this stone."
	1: The stone he means is this... Dryad's Balance.
	1: It has been passed down through the line of chiefs for two hundred years now.
	1: Now that I see you here, I'm sure you must be the foreign hero the Prophet mentioned!
	1: Please, restore balance to our small island!
	H: Wait, how can I even stop a volcanic eruption!?
	1: I do not know... Perhaps if you explore the nearby Shrine of the Sea God, you can receive protection from the ocean king.
	1: His magic may help you brave the heat of the magma.
	H: I see...
	H: I'll go check out this Sea God's Shrine then... Looks like it'll be the only way I can get this temple key!
	1: Thank you for your assistance, hero.
	GIVE	T91
	END
	@hasT91
	IF T94, @hasT94
	1: The Sea God's Shrine lies to the west of Untaba Village.
	1: It shouldn't be hard to find... Just go where there's no lava!
	END
	@hasT94
	IF	T95, @hasT95
	1: I see sense it from here... The mountain has calmed!
	1: Though our sky is still bathed in sanguine...
	1: I feel it may be that way for some time, until the lava cools.
	1: I'm not certain how you did it, hero.
	1: ...But I'm no less thankful.
	1: Take this as your reward. Dryad's Balance will protect you, as it sent you to protect us.
	GIVE	I321
	GIVE	T95
	1: You will always be welcome in Untaba, friend.
	END
	@hasT95
	1: It's the savior of Untaba!
	1: Feel free to stay in our peaceful village as long as you'd like.
	END
;=======================================================================================================
	SCENE	904, Cave2,	SCENE,	"Shrine of the Sea God"
	N: This place appears to be a shrine of some sort.
	WAIT	3
	N: For some strange reason, you feel an urge to pray here.
	WAIT	3
	N: Will you give in to your urge to pray?
	WAIT	3
	@Menu
	MENU	"Yes=@pray", "No=@nopray"
	GOTO	@menu
	@nopray
	H: Nah, that would be silly. I won't pray here!
	END
	@pray
	IF T91, @hasT91
	N: You get on your knees and begin to pray...
	WAIT	3
	N: ...But aside from feeling a bit better about yourself, nothing happens.
	END
	@hasT91
	IF	T94, @hasT94
	IF	I319, @has319
	N: As you pray, you begin to hear a voice:
	N: "It has been long since someone came to my shrine."
	WAIT	3
	N: "You wish to overcome the flames?"
	WAIT	3
	N: "Bring me an object into which I can place my blessing."
	END
	@has319
	N: As you pray, you begin to hear a voice:
	N: "It has been long since someone came to my shrine."
	WAIT	3
	N: "You wish to overcome the flames?"
	WAIT	3
	N: "Into this amulet, I place my blessing."
	COUNTDOWN	900
	GIVE	T92
	WAIT	3
	HOST_TAKE	I319
	SET	shrine1, 0
	SET	shrine2, 0
	SET	shrine3, 0
	SET shrine4, 0
	N: "In the depths of the mountain, there are four shrines."
	GIVE I322.4
	WAIT	3
	N: "Place these amulets at each shrine, and your way forward will be revealed."
	END
	@hasT94
	N: There is nothing left for you here.
	END
;=====================================================
	SCENE	905, Volcano1, SCENE, "Sea God's Wayshrine"
	COMPARE	#<shrine1>, 1
	IF= @nothing
	IF -I322, @nothing
	WAIT	3
	N: You place one of the Flame Deity's amulets on the shrine.
	WAIT	3
	N: As it disappears, you feel a cooling sensation wash over you.
	SET	shrine1, 1
	SET shrinetotal, 0
	ADD shrinetotal, #<shrine1>
	ADD shrinetotal, #<shrine2>
	ADD shrinetotal, #<shrine3>
	ADD shrinetotal, #<shrine4>
	COMPARE	#<shrinetotal>, 4
	IF=	@amulet
	END
	@nothing
	N: There's nothing for you here.
	END
	@amulet
	N: In place of the amulet you placed, a new amulet has appeared.
	WAIT	3
	N: You take it with you, but as you grab it, you feel the blessing of the Sea God fade away...
	TAKE	T92
	TAKE	I322
	GIVE	T93
	GIVE	I320
	COUNTDOWN	0
	END
;=========================================================
	SCENE	906, Volcano1, SCENE, "Sea God's Wayshrine"
	COMPARE	#<shrine2>, 1
	IF= @nothing
	IF -I322, @nothing
	WAIT	3
	N: You place one of the Flame Deity's amulets on the shrine.
	WAIT	3
	N: As it disappears, you feel a cooling sensation wash over you.
	SET	shrine2, 1
	SET shrinetotal, 0
	ADD shrinetotal, #<shrine1>
	ADD shrinetotal, #<shrine2>
	ADD shrinetotal, #<shrine3>
	ADD shrinetotal, #<shrine4>
	COMPARE	#<shrinetotal>, 4
	IF=	@amulet
	END
	@nothing
	N: There's nothing for you here.
	END
	@amulet
	N: In place of the amulet you placed, a new amulet has appeared.
	WAIT	3
	N: You take it with you, but as you grab it, you feel the blessing of the Sea God fade away...
	TAKE	T92
	TAKE	I322
	GIVE	T93
	GIVE	I320
	COUNTDOWN	0
	END
;============================================================
	SCENE	907, Volcano1, SCENE, "Sea God's Wayshrine"
	COMPARE	#<shrine3>, 1
	IF= @nothing
	IF -I322, @nothing
	WAIT	3
	N: You place one of the Flame Deity's amulets on the shrine.
	WAIT	3
	N: As it disappears, you feel a cooling sensation wash over you.
	SET	shrine3, 1
	SET shrinetotal, 0
	ADD shrinetotal, #<shrine1>
	ADD shrinetotal, #<shrine2>
	ADD shrinetotal, #<shrine3>
	ADD shrinetotal, #<shrine4>
	COMPARE	#<shrinetotal>, 4
	IF=	@amulet
	END
	@nothing
	N: There's nothing for you here.
	END
	@amulet
	N: In place of the amulet you placed, a new amulet has appeared.
	WAIT	3
	N: You take it with you, but as you grab it, you feel the blessing of the Sea God fade away...
	TAKE	T92
	TAKE	I322
	GIVE	T93
	GIVE	I320
	COUNTDOWN	0
	END
;============================================================
	SCENE	908, Volcano1, SCENE, "Sea God's Wayshrine"
	COMPARE	#<shrine4>, 1
	IF= @nothing
	IF -I322, @nothing
	WAIT	3
	N: You place one of the Flame Deity's amulets on the shrine.
	WAIT	3
	N: As it disappears, you feel a cooling sensation wash over you.
	SET	shrine4, 1
	SET shrinetotal, 0
	ADD shrinetotal, #<shrine1>
	ADD shrinetotal, #<shrine2>
	ADD shrinetotal, #<shrine3>
	ADD shrinetotal, #<shrine4>
	COMPARE	#<shrinetotal>, 4
	IF=	@amulet
	END
	@nothing
	N: There's nothing for you here.
	END
	@amulet
	N: In place of the amulet you placed, a new amulet has appeared.
	WAIT	3
	N: You take it with you, but as you grab it, you feel the blessing of the Sea God fade away...
	TAKE	T92
	TAKE	I322
	GIVE	T93
	GIVE	I320
	COUNTDOWN	0
	END
;===============================================================
	SCENE	909, Volcano2, SCENE, "Spire of Flame"
	IF	T93, @hasT93
	N: You feel a burning presence here, but you don't know where it's coming from.
	END
	@hasT93
	IF	T94, @hasT94
	N: So you've come, bringing the Sea God's Blessing with you.
	WAIT	3
	N: I assume you wish to stop the eruption...
	WAIT	3
	N: Defeat me, and it will stop...
	WAIT	3
	N: But if you lose, I will torture your soul for eternity...
	MUSIC Boss1
	FIGHT2	173, 176, 173
	IF	WIN, @won
	N: Your soul is mine...
	END
	@won
	GIVE T94
	N: The rumblings of the eruption around you begin to quell...
	WAIT	3
	N: For now, it seems that you've stopped the Flame Deity from making the volcano erupt.
	END
	@hasT94
	N: The volcano remains quiet, save for the bubbling of lava in the background.
	END