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
	db TX_COMPRESSED, $75, $78, $a3, $44, $a8, $68, $39, $61
	db $7a, $cf, $50, $73, $49, $03, $dc, $c7, $f4, $9e
	db $a6, $80

MagmaPalletPathB1FNobu_OnlyMonInParty:
	jumptext .text

.text
	db TX_COMPRESSED, $17, $03, $19, $25, $a4, $2d, $72, $98, $e8, $b2, $0c
	db $8f, $08, $d1, $92, $2c, $7c, $a6, $e1, $03, $57

	db $c0, $3a, $8a, $44, $0d, $52, $d3, $b7, $07
	db $6f, $32, $16, $bb, $98, $ac, $e6, $74, $9c, $9a, $c2, $d2

	db $00, $58, $62, $b3, $83, $24, $b4, $8d, $11, $9d, $06
	db $37, $aa, $1d, $a4, $2d, $5c, $d8, $0e, $57, $c2, $4f

	db $00, $12, $58, $c9, $cc, $40, $5f, $38, $f8, $56
	db $6f, $03, $95, $f0, $92, $54, $3b, $4c, $04, $16
	db $95, $69, $33, $19, $0b, $e7, $15, $eb, $2a, $5e
	db $a6, $80

MagmaPalletPathB1FNobu_Text_Introduction:
	db TX_COMPRESSED, $72, $85, $a2, $73, $02, $43, $fc, $11, $d3, $d4, $1f
	db $17, $9b, $74, $90, $10, $5a, $89, $3e, $88

	db $e2, $02, $9e, $08, $d7, $29

	db $f0, $07, $51, $9d, $25, $32, $3e, $10, $63, $a7

	db $80, $00, $a8, $29, $82, $c6, $64, $cc, $10, $14, $20, $d0, $80
	db $2f, $1a, $26, $c4, $5a, $c2, $4e, $62, $b0, $e4, $17
	db $d5, $3f, $b9, $38, $1c, $22, $2c, $cf, $be

	db $00, $c4, $f1, $a2, $b3, $9a, $af, $a7, $2c
	db $2f, $33, $ab, $58, $28, $f9, $c4, $85, $f3

	db $f0, $0e, $1e, $9e, $a0, $ff, $19, $0b, $5d, $cc, $04, $16
	db $9e, $56, $b1, $93, $98, $91, $bf, $12, $6b, $3a

	db $50, $0c, $4f, $14, $65, $a5, $ac, $c9, $7d
	db $04, $f6, $dc, $0b, $4b, $89, $0b, $e7, $02
	db $40, $0e, $40, $b5, $67, $29, $f0, $b1, $f9, $d1, $a9, $1f, $41
	db $3d, $7a, $a4, $32, $73, $36, $2c, $d1, $7e

	db $01, $c3, $d3, $d4, $1c, $4b, $4b, $58, $2e
	db $34, $d0

MagmaPalletPathB1FNobu_Text_FoundAggron:
	db TX_COMPRESSED, $e0, $1e, $60, $20, $b5, $1f, $d2, $6f
	db $26, $f5, $86, $60, $32, $66, $3e, $0a, $60, $b1, $99, $33

	db $4a, $02, $9e

	db $00, $05, $27, $48, $a5, $39, $08, $72, $43, $42, $38
	db $d3, $40

MagmaPalletPathB1FNobu_Text_PartingWords:
	db TX_COMPRESSED, $29, $3a, $45, $28, $08, $2d, $7e, $3e
	db $09, $ec, $16, $33, $26, $65, $43, $ef, $61, $03
	db $52, $a5, $9d, $b4, $b2, $47, $ce, $24, $2f, $9f

	db $80, $31, $0d, $46, $0c, $6b, $fc, $75, $11, $63, $ef
	db $5e, $21, $9e, $60, $20, $b4, $b8, $93, $e8, $8f

	db $00, $ae, $e5, $a4, $e1, $93, $30, $38, $4b, $48
	db $d0, $f5, $b4, $42, $1f, $67, $46, $72, $d2
	db $60, $16, $68, $b1, $93, $99, $ca, $c2, $d1, $32
	db $87, $83, $84, $d8, $20, $35, $1a, $f0, $6b
	db $aa, $81, $fb, $da, $70, $33, $96, $b5, $79, $1e, $93

	db $c0, $14, $c2, $1e, $a2, $54, $7a, $b1, $93
	db $97, $ad, $7b, $91, $d8, $c2, $4d, $ec, $07, $ef, $69, $c0
	db $80, $e7, $56, $ad, $13, $56, $72, $d6, $08, $64
	db $e5, $eb, $0c, $59, $83, $0c, $18, $e0, $ef

	db $88, $02, $92, $60, $a6, $4d, $03, $59, $cb
	db $0b, $db, $56, $a9, $19, $25, $a4, $e0, $3f, $7b, $4e
	db $04, $03, $09, $ad, $5e, $47, $a4, $47, $e0
	db $c8, $f0, $57, $93, $5c, $b0, $c5, $6b, $19, $39
	db $00, $0f, $de, $d3, $81, $8a, $f5, $95, $29, $61
	db $7a, $a4, $ed, $c1, $dc, $69, $07, $99, $61
	db $00, $ac, $e2, $5a, $26, $56, $79, $44, $0e
	db $0f, $02, $3d, $5a, $26, $f2, $1f

	db $00, $29, $26, $0a, $64, $24, $a6, $45, $22, $06
	db $a7, $ad, $3b, $72, $d2, $71, $84, $d6, $af, $23, $d2

	db $20, $05, $43, $ef, $62, $90, $fb, $d8, $60, $c6, $b0, $41, $21
	db $bc, $32, $40, $7e, $f6, $9c, $0c, $a9, $21

	db $01, $90, $9a, $09, $4c, $82, $02, $84, $1a, $11, $2d
	db $26, $f2, $be, $84, $39, $e8, $c8, $70, $38, $4b, $49
	db $80, $c0, $6b, $45, $c0, $7e, $f6, $9c
	db $0b, $dc, $99, $0d, $7b, $63, $09

	db $3c, $01, $d1, $08, $16, $4c, $97, $04, $18, $44, $74
	db $de, $d2, $66, $03, $95, $f0, $92, $54, $3e

	db $f4, $06, $f7, $b0, $41, $ac, $68, $4c, $1e
	db $0f, $0e, $e5, $5a, $a4, $68, $8d, $08

	db $e2, $03, $87, $a7, $a8, $3f, $c4, $58, $44, $4b, $49
	db $be, $f6, $dc, $de, $f6, $32, $14, $5a, $38
	db $d3, $40

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

