shithub: pokecrystal

ref: c5527a02ae1423479af567acf7dc38708f50f9b3
dir: /maps/WhirlIslandLugiaChamber.asm/

View raw version
WhirlIslandLugiaChamber_MapScriptHeader:
.MapTriggers:
	db 0

.MapCallbacks:
	db 1

	; callbacks

	dbw 2, UnknownScript_0x18c504

UnknownScript_0x18c504:
	checkevent EVENT_FOUGHT_LUGIA
	iftrue UnknownScript_0x18c515
	checkitem SILVER_WING
	iftrue UnknownScript_0x18c512
	jump UnknownScript_0x18c515

UnknownScript_0x18c512:
	appear $2
	return

UnknownScript_0x18c515:
	disappear $2
	return

LugiaScript_0x18c518:
	faceplayer
	loadfont
	writetext UnknownText_0x18c531
	cry LUGIA
	pause 15
	loadmovesprites
	setevent EVENT_FOUGHT_LUGIA
	writecode VAR_BATTLETYPE, BATTLETYPE_FORCEITEM
	loadpokedata LUGIA, 60
	startbattle
	disappear $2
	returnafterbattle
	end

UnknownText_0x18c531:
	text "Gyaaas!"
	done

WhirlIslandLugiaChamber_MapEventHeader:
	; filler
	db 0, 0

.Warps:
	db 1
	warp_def $d, $9, 3, WHIRL_ISLAND_B2F

.XYTriggers:
	db 0

.Signposts:
	db 0

.PersonEvents:
	db 1
	person_event SPRITE_LUGIA, 5, 9, SPRITEMOVEDATA_16, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, 0, 0, LugiaScript_0x18c518, EVENT_WHIRL_ISLAND_LUGIA_CHAMBER_LUGIA