IntroOutside_MapScriptHeader;trigger count
	db 4
	maptrigger .Trigger0
	maptrigger .Trigger1
	maptrigger .Trigger2
	maptrigger .Trigger3
 ;callback count
	db 2
	dbw MAPCALLBACK_TILES, .LandslideTiles
	dbw MAPCALLBACK_NEWMAP, .Callback

.LandslideTiles
	checkevent EVENT_INTRO_LANDSLIDE
	sif false
		return
	changeblock 8, 16, $3b
	changeblock 10, 16, $8e
	changeblock 12, 16, $28
	return

.Callback
	checkevent EVENT_INITIALIZED_EVENTS
	sif true
		return
	jumpstd initializeevents

.Trigger0
	priorityjump .PlayMusic
.Trigger1
.Trigger2
.Trigger3
	end

.PlayMusic
	playmusic MUSIC_NATIONAL_PARK
	dotrigger 1
	spriteface PLAYER, LEFT
	spriteface $2, RIGHT
	jumptext .MomIntroText

.MomIntroText:
	ctxt "It's so beautiful"
	line "here, isn't it?"

	para "I'm glad we could"
	line "have a relaxing"
	cont "time together<...>"

	para "I'm sorry you had"
	line "to deal with your"
	cont "father moving on."

	para "No child wants to"
	line "go through that<...>"

	para "<PLAYER>, your"
	line "father has always"
	cont "been a great man,"

	para "and, while he's had"
	line "many fans, you're"
	cont "still his biggest."

	para "I know you want"
	line "to follow in his"
	cont "footsteps<...>"

	para "But promise me,"
	line "no matter where"
	cont "you go in life<...>"

	para "never forget about"
	line "your dear mother."

	para "Thanks for coming"
	line "with me, <PLAYER>."
	done

StartingGameEarthquake:
	playmusic MUSIC_NONE
	playsound SFX_EMBER
	earthquake 50
	changeblock 08, 16, $3B
	changeblock 10, 16, $8E
	changeblock 12, 16, $28
	spriteface PLAYER, UP
	showemote EMOTE_SHOCK, 0, 16
	waitsfx
	dotrigger 3
	setevent EVENT_INTRO_LANDSLIDE
	end

MomCampsiteFireScript:
	jumptext .text

.text
	ctxt "Looks hot!"
	line "Better not touch<...>"
	done

MomCampsiteTextScript:
	jumptextfaceplayer .text

.text
	ctxt "It's so beautiful"
	line "here, isn't it?"

	para "I've missed just"
	line "escaping into the"
	cont "wilderness<...>"

	para "Thanks for coming"
	line "with me, <PLAYER>."
	done

IntroMomLeavingDialogue:
	spriteface PLAYER, UP
	spriteface $2, DOWN
	playmusic MUSIC_MOM
	opentext
	writetext .leaving_text_1
	closetext
	checkcode VAR_XCOORD
	sif =, 4, then
		applymovement 2, .approach_far
	selse
		applymovement 2, .approach_near
	sendif
	opentext
	writetext .leaving_text_2
	closetext
	playmusic MUSIC_NATIONAL_PARK
	applymovement 2, .walk_back
	dotrigger 2
	end

.leaving_text_1
	text "<PLAYER>!"
	sdone

.leaving_text_2
	ctxt "<...>Oh, heading"
	line "out for a walk?"

	para "Could you try to"
	line "get some firewood"
	cont "for us?"

	para "The fire will need"
	line "some soon to keep"
	cont "us nice and warm"
	cont "tonight!"

	para "<...>And, <PLAYER><...>"

	para "<...>"

	para "<...>Just, be safe!"
	sdone

.approach_far
	step_down
	step_down
	rept 5
		step_left
	endr
	turn_head_down
	step_end

.approach_near
	step_down
	step_down
	rept 4
		step_left
	endr
	turn_head_down
	step_end

.walk_back
	rept 5
		step_right
	endr
	step_up
	step_up
	turn_head_down
	step_end

IntroOutside_MapEventHeader:: db 0, 0

.Warps: db 1
	warp_def 31, 14, 1, INTRO_CAVE

.CoordEvents: db 4
	xy_trigger 1, 9, 4, 0, IntroMomLeavingDialogue, 0, 0
	xy_trigger 1, 9, 5, 0, IntroMomLeavingDialogue, 0, 0
	xy_trigger 2, 22, 10, 0, StartingGameEarthquake, 0, 0
	xy_trigger 2, 22, 11, 0, StartingGameEarthquake, 0, 0

.BGEvents: db 0

.ObjectEvents: db 2
	person_event SPRITE_MOM, 6, 9, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 3, -1, -1, PAL_OW_PLAYER + 8, PERSONTYPE_SCRIPT, 0, MomCampsiteTextScript, -1
	person_event SPRITE_FIRE, 6, 11, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, MomCampsiteFireScript, -1
