MagmaPalletPathB1F_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

MagmaPalletPathB1FNobu:
	faceplayer
	opentext
	checkevent EVENT_NOBUS_AGGRON_IN_PARTY
	iftrue MagmaPalletPathB1FNobu_ReturnAggron
	jumptext MagmaPalletPathB1FNobu_Text_Introduction

MagmaPalletPathB1F_Item_1:
	db PP_UP, 1

MagmaPalletPathB1FNPC4:
	jumpstd strengthboulder

MagmaPalletPathB1FNobu_ReturnAggron:
	writetext MagmaPalletPathB1FNobu_Text_FoundAggron
	waitbutton
	special SpecialReturnNobusAggron
	anonjumptable
	dw MagmaPalletPathB1FNobu_NotAggron
	dw MagmaPalletPathB1FNobu_NotAggron
	dw MagmaPalletPathB1f_GaveBackAggron
	dw MagmaPalletPathB1FNobu_OnlyMonInParty

MagmaPalletPathB1f_GaveBackAggron:
	closetext
	appear $3
	cry AGGRON
	waitsfx
	opentext
	writetext MagmaPalletPathB1FNobu_Text_PartingWords
	waitbutton
	closetext
	applymovement 0, .player_move_away
	applymovement 3, .aggron_approaches
	follow 3, 2
	applymovement 3, .aggron_nobu_leave
	stopfollow
	disappear 3
	disappear 2
	playsound SFX_EXIT_BUILDING
	setevent EVENT_AGGRON_NOT_IN_MAGMA
	clearevent EVENT_NOBUS_AGGRON_IN_PARTY
	clearevent EVENT_NOBU_NOT_IN_HOUSE
	waitsfx
	end

.player_move_away
	step_down
	step_right
	step_end

.aggron_approaches
	step_left
	step_end

.aggron_nobu_leave
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

MagmaPalletPathB1FNobu_NotAggron:
	jumptext .text

.text
	ctxt "It's unwise to"
	line "tease an old man."
	done

MagmaPalletPathB1FNobu_OnlyMonInParty:
	jumptext .text

.text
	ctxt "Even though I'm in"
	line "pain right now,"

	para "I know that it"
	line "could be dangerous"

	para "to be in this cave"
	line "without a #mon."

	para "Bring some more"
	line "#mon with you"
	cont "and come back."
	done

MagmaPalletPathB1FNobu_Text_Introduction:
	ctxt "Young one, please!"
	line "Can you help!"

	para "<...> ugh."

	para "I can't move<...>"

	para "My friend possess-"
	line "es a strong body,"
	cont "made of steel."

	para "He'd be able to"
	line "carry me home."

	para "Please, could you"
	line "bring him here?"

	para "He's currently"
	line "at our home on"
	para "Route 80, likely"
	line "taking a rest."

	para "Please hurry!"
	done

MagmaPalletPathB1FNobu_Text_FoundAggron:
	ctxt "Did you manage"
	line "to find my friend?"

	para "<...>"

	para "Thank goodness!"
	done

MagmaPalletPathB1FNobu_Text_PartingWords:
	ctxt "Thank you, my"
	line "friend will now"
	cont "return me home."

	para "However, I still"
	line "need your help."

	para "At the end of this"
	line "tunnel lie the"
	para "resting grounds"
	line "of a powerful"
	cont "Naljo guardian."

	para "Fools wearing"
	line "traditional Naljo"
	para "garbs are trying"
	line "to revive it!"

	para "They desire to"
	line "awaken the Naljo"
	para "Guardians, in"
	line "order to bring"
	para "Naljo back to"
	line "what it used to"
	para "be hundreds of"
	line "years ago."

	para "They don't know"
	line "that the Guardians"

	para "will kill everyone"
	line "in Naljo who"

	para "doesn't possess the"
	line "bloodline of the"
	para "first Naljo"
	line "generation."

	para "Innocent people"
	line "and #mon will"

	para "all perish if"
	line "it wakes up!"

	para "Please, stop them"
	line "at all costs!"
	done

MagmaPalletPathB1F_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $21, $25, 1, MAGMA_ROOMS
	warp_def $9, $7, 3, MAGMA_PALLETPATH_1F

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 5
	person_event SPRITE_SAGE, 23, 36, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 1, MagmaPalletPathB1FNobu, EVENT_RESCUED_NOBU
	person_event SPRITE_AGGRON, 24, 37, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_SILVER, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_AGGRON_NOT_IN_MAGMA
	person_event SPRITE_POKE_BALL, 5, 23, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, MagmaPalletPathB1F_Item_1, EVENT_MAGMA_PALLETPATH_B1F_ITEM_1
	person_event SPRITE_POKE_BALL, 17, 37, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TMHMBALL, TM_DUST_DEVIL, 0, EVENT_MAGMA_PALLETPATH_B1F_NPC_3
	person_event SPRITE_BOULDER, 21, 33, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, MagmaPalletPathB1FNPC4, -1
