shithub: pokecrystal

ref: ffbf2c0f5d28c05c14f67a3cfb123d37157c2ef9
dir: /maps/MountMoon.asm/

View raw version
const_value set 2
	const MOUNTMOON_SILVER

MountMoon_MapScriptHeader:
.MapTriggers:
	db 2

	; triggers
	dw UnknownScript_0x74089, 0
	dw UnknownScript_0x7408d, 0

.MapCallbacks:
	db 0

UnknownScript_0x74089:
	priorityjump UnknownScript_0x7408e
	end

UnknownScript_0x7408d:
	end

UnknownScript_0x7408e:
	spriteface PLAYER, RIGHT
	showemote EMOTE_SHOCK, PLAYER, 15
	special Special_RotatePalettesRightMusic
	pause 15
	applymovement MOUNTMOON_SILVER, MovementData_0x740f9
	playmusic MUSIC_RIVAL_ENCOUNTER
	loadfont
	writetext UnknownText_0x74105
	waitbutton
	closetext
	checkevent EVENT_GOT_TOTODILE_FROM_ELM
	iftrue UnknownScript_0x740c3
	checkevent EVENT_GOT_CHIKORITA_FROM_ELM
	iftrue UnknownScript_0x740d3
	winlosstext UnknownText_0x7419d, UnknownText_0x742e0
	setlasttalked $2
	scriptedtrainerdata RIVAL2, 3
	startbattle
	reloadmapmusic
	returnafterbattle
	jump UnknownScript_0x740e3

UnknownScript_0x740c3:
	winlosstext UnknownText_0x7419d, UnknownText_0x742e0
	setlasttalked $2
	scriptedtrainerdata RIVAL2, 1
	startbattle
	reloadmapmusic
	returnafterbattle
	jump UnknownScript_0x740e3

UnknownScript_0x740d3:
	winlosstext UnknownText_0x7419d, UnknownText_0x742e0
	setlasttalked $2
	scriptedtrainerdata RIVAL2, 2
	startbattle
	reloadmapmusic
	returnafterbattle
	jump UnknownScript_0x740e3

UnknownScript_0x740e3:
	playmusic MUSIC_RIVAL_AFTER
	loadfont
	writetext UnknownText_0x741fa
	waitbutton
	closetext
	applymovement MOUNTMOON_SILVER, MovementData_0x740fd
	disappear MOUNTMOON_SILVER
	dotrigger $1
	setevent EVENT_BEAT_RIVAL_IN_MT_MOON
	playmapmusic
	end

MovementData_0x740f9:
	step_left
	step_left
	step_left
	step_end

MovementData_0x740fd:
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

UnknownText_0x74105:
	text "<......> <......> <......>"

	para "It's been a while,"
	line "<PLAYER>."

	para "…Since I lost to"
	line "you, I thought"

	para "about what I was"
	line "lacking with my"
	cont "#MON…"

	para "And we came up"
	line "with an answer."

	para "<PLAYER>, now we'll"
	line "show you!"
	done

UnknownText_0x7419d:
	text "<......> <......> <......>"

	para "I thought I raised"
	line "my #MON to be"

	para "the best they"
	line "could be…"

	para "…But it still "
	line "wasn't enough…"
	done

UnknownText_0x741fa:
	text "<......> <......> <......>"

	para "…You won, fair"
	line "and square."

	para "I admit it. But"
	line "this isn't the"
	cont "end."

	para "I'm going to be"
	line "the greatest #-"
	cont "MON trainer ever."

	para "Because these guys"
	line "are behind me."

	para "…Listen, <PLAYER>."

	para "One of these days"
	line "I'm going to prove"

	para "how good I am by"
	line "beating you."
	done

UnknownText_0x742e0:
	text "<......> <......> <......>"

	para "I've repaid my"
	line "debt to you."

	para "With my #MON,"
	line "I'm going to beat"

	para "the CHAMPION and"
	line "become the world's"
	cont "greatest trainer."
	done

MountMoon_MapEventHeader:
	; filler
	db 0, 0

.Warps:
	db 8
	warp_def $3, $3, 1, ROUTE_3
	warp_def $f, $f, 1, ROUTE_4
	warp_def $3, $d, 7, MOUNT_MOON
	warp_def $b, $f, 8, MOUNT_MOON
	warp_def $5, $19, 1, MOUNT_MOON_SQUARE
	warp_def $f, $19, 2, MOUNT_MOON_SQUARE
	warp_def $3, $19, 3, MOUNT_MOON
	warp_def $d, $19, 4, MOUNT_MOON

.XYTriggers:
	db 0

.Signposts:
	db 0

.PersonEvents:
	db 1
	person_event SPRITE_SILVER, 3, 7, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_MT_MOON_RIVAL