shithub: pokecrystal

ref: 5b94d54a6c81d7ea09497dfc3d1477a7ed3bd954
dir: /maps/IlexForest.asm/

View raw version
const_value set 2
	const ILEXFOREST_BIRD
	const ILEXFOREST_YOUNGSTER1
	const ILEXFOREST_BLACK_BELT
	const ILEXFOREST_ROCKER
	const ILEXFOREST_POKE_BALL1
	const ILEXFOREST_KURT
	const ILEXFOREST_LASS
	const ILEXFOREST_YOUNGSTER2
	const ILEXFOREST_POKE_BALL2
	const ILEXFOREST_POKE_BALL3
	const ILEXFOREST_POKE_BALL4

IlexForest_MapScriptHeader:
.MapTriggers:
	db 0

.MapCallbacks:
	db 1

	; callbacks

	dbw 2, .FarfetchdCallback

.FarfetchdCallback:
	checkevent EVENT_GOT_HM01_CUT
	iftrue .Static
	copybytetovar FarfetchdPosition
	if_equal  1, .PositionOne
	if_equal  2, .PositionTwo
	if_equal  3, .PositionThree
	if_equal  4, .PositionFour
	if_equal  5, .PositionFive
	if_equal  6, .PositionSix
	if_equal  7, .PositionSeven
	if_equal  8, .PositionEight
	if_equal  9, .PositionNine
	if_equal 10, .PositionTen
.Static:
	return

.PositionOne:
	moveperson ILEXFOREST_BIRD, $e, $1f
	appear ILEXFOREST_BIRD
	return

.PositionTwo:
	moveperson ILEXFOREST_BIRD, $f, $19
	appear ILEXFOREST_BIRD
	return

.PositionThree:
	moveperson ILEXFOREST_BIRD, $14, $18
	appear ILEXFOREST_BIRD
	return

.PositionFour:
	moveperson ILEXFOREST_BIRD, $1d, $16
	appear ILEXFOREST_BIRD
	return

.PositionFive:
	moveperson ILEXFOREST_BIRD, $1c, $1f
	appear ILEXFOREST_BIRD
	return

.PositionSix:
	moveperson ILEXFOREST_BIRD, $18, $23
	appear ILEXFOREST_BIRD
	return

.PositionSeven:
	moveperson ILEXFOREST_BIRD, $16, $1f
	appear ILEXFOREST_BIRD
	return

.PositionEight:
	moveperson ILEXFOREST_BIRD, $f, $1d
	appear ILEXFOREST_BIRD
	return

.PositionNine:
	moveperson ILEXFOREST_BIRD, $a, $23
	appear ILEXFOREST_BIRD
	return

.PositionTen:
	moveperson ILEXFOREST_BIRD, $6, $1c
	appear ILEXFOREST_BIRD
	return

YoungsterScript_0x6eb7b:
	faceplayer
	loadfont
	checkevent EVENT_HERDED_FARFETCHD
	iftrue .DoneFarfetchd
	writetext UnknownText_0x6ef5c
	waitbutton
	closetext
	end

.DoneFarfetchd:
	writetext UnknownText_0x6f019
	waitbutton
	closetext
	end

IlexForestFarfetchdScript:
	copybytetovar FarfetchdPosition
	if_equal  1, .Position1
	if_equal  2, .Position2
	if_equal  3, .Position3
	if_equal  4, .Position4
	if_equal  5, .Position5
	if_equal  6, .Position6
	if_equal  7, .Position7
	if_equal  8, .Position8
	if_equal  9, .Position9
	if_equal 10, .Position10

.Position1:
	faceplayer
	loadfont
	writetext Text_ItsTheMissingPokemon
	buttonsound
	writetext Text_Kwaaaa
	cry FARFETCH_D
	waitbutton
	closetext
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos1_Pos2
	moveperson ILEXFOREST_BIRD, $f, $19
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 2
	end

.Position2:
	scall .CryAndCheckFacing
	if_equal DOWN, .Position2_Down
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos2_Pos3
	moveperson ILEXFOREST_BIRD, $14, $18
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 3
	end

.Position2_Down:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos2_Pos8
	moveperson ILEXFOREST_BIRD, $f, $1d
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 8
	end

.Position3:
	scall .CryAndCheckFacing
	if_equal LEFT, .Position3_Left
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos3_Pos4
	moveperson ILEXFOREST_BIRD, $1d, $16
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 4
	end

.Position3_Left:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos3_Pos2
	moveperson ILEXFOREST_BIRD, $f, $19
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 2
	end

.Position4:
	scall .CryAndCheckFacing
	if_equal UP, .Position4_Up
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos4_Pos5
	moveperson ILEXFOREST_BIRD, $1c, $1f
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 5
	end

.Position4_Up:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos4_Pos3
	moveperson ILEXFOREST_BIRD, $14, $18
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 3
	end

.Position5:
	scall .CryAndCheckFacing
	if_equal UP, .Position5_Up
	if_equal LEFT, .Position5_Left
	if_equal RIGHT, .Position5_Right
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos5_Pos6
	moveperson ILEXFOREST_BIRD, $18, $23
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 6
	end

.Position5_Left:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetchd_Pos5_Pos7
	moveperson ILEXFOREST_BIRD, $16, $1f
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 7
	end

.Position5_Up:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos5_Pos4_Up
	moveperson ILEXFOREST_BIRD, $1d, $16
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 4
	end

.Position5_Right:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos5_Pos4_Right
	moveperson ILEXFOREST_BIRD, $1d, $16
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 4
	end

.Position6:
	scall .CryAndCheckFacing
	if_equal RIGHT, .Position6_Right
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos6_Pos7
	moveperson ILEXFOREST_BIRD, $16, $1f
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 7
	end

.Position6_Right:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos6_Pos5
	moveperson ILEXFOREST_BIRD, $1c, $1f
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 5
	end

.Position7:
	scall .CryAndCheckFacing
	if_equal DOWN, .Position7_Down
	if_equal LEFT, .Position7_Left
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos7_Pos8
	moveperson ILEXFOREST_BIRD, $f, $1d
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 8
	end

.Position7_Left:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos7_Pos6
	moveperson ILEXFOREST_BIRD, $18, $23
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 6
	end

.Position7_Down:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos7_Pos5
	moveperson ILEXFOREST_BIRD, $1c, $1f
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 5
	end

.Position8:
	scall .CryAndCheckFacing
	if_equal UP, .Position8_Up
	if_equal LEFT, .Position8_Left
	if_equal RIGHT, .Position8_Right
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos8_Pos9
	moveperson ILEXFOREST_BIRD, $a, $23
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 9
	end

.Position8_Right:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos8_Pos7
	moveperson ILEXFOREST_BIRD, $16, $1f
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 7
	end

.Position8_Up:
.Position8_Left:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos8_Pos2
	moveperson ILEXFOREST_BIRD, $f, $19
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 2
	end

.Position9:
	scall .CryAndCheckFacing
	if_equal DOWN, .Position9_Down
	if_equal RIGHT, .Position9_Right
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos9_Pos10
	moveperson ILEXFOREST_BIRD, $6, $1c
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 10
	appear ILEXFOREST_BLACK_BELT
	setevent EVENT_CHARCOAL_KILN_BOSS
	setevent EVENT_HERDED_FARFETCHD
	end

.Position9_Right:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos9_Pos8_Right
	moveperson ILEXFOREST_BIRD, $f, $1d
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 8
	end

.Position9_Down:
	applymovement ILEXFOREST_BIRD, MovementData_Farfetched_Pos9_Pos8_Down
	moveperson ILEXFOREST_BIRD, $f, $1d
	disappear ILEXFOREST_BIRD
	appear ILEXFOREST_BIRD
	loadvar FarfetchdPosition, 8
	end

.Position10:
	faceplayer
	loadfont
	writetext Text_Kwaaaa
	cry FARFETCH_D
	waitbutton
	closetext
	end

.CryAndCheckFacing:
	faceplayer
	loadfont
	writetext Text_Kwaaaa
	cry FARFETCH_D
	waitbutton
	closetext
	checkcode VAR_FACING
	end

BlackBeltScript_0x6edae:
	faceplayer
	loadfont
	checkevent EVENT_GOT_HM01_CUT
	iftrue .AlreadyGotCut
	writetext UnknownText_0x6f099
	buttonsound
	verbosegiveitem HM_CUT
	setevent EVENT_GOT_HM01_CUT
	writetext UnknownText_0x6f141
	waitbutton
	closetext
	setevent EVENT_ILEX_FOREST_FARFETCHD
	setevent EVENT_ILEX_FOREST_APPRENTICE
	setevent EVENT_ILEX_FOREST_CHARCOAL_MASTER
	clearevent EVENT_CHARCOAL_KILN_FARFETCH_D
	clearevent EVENT_CHARCOAL_KILN_APPRENTICE
	clearevent EVENT_CHARCOAL_KILN_BOSS
	end

.AlreadyGotCut:
	writetext UnknownText_0x6f1c0
	waitbutton
	closetext
	end

RockerScript_0x6edde:
	faceplayer
	loadfont
	checkevent EVENT_GOT_TM02_HEADBUTT
	iftrue UnknownScript_0x6edf3
	writetext UnknownText_0x6f21b
	buttonsound
	verbosegiveitem TM_HEADBUTT
	iffalse UnknownScript_0x6edf7
	setevent EVENT_GOT_TM02_HEADBUTT
UnknownScript_0x6edf3:
	writetext UnknownText_0x6f26d
	waitbutton
UnknownScript_0x6edf7:
	closetext
	end

TrainerBug_catcherWayne:
	trainer EVENT_BEAT_BUG_CATCHER_WAYNE, BUG_CATCHER, WAYNE, Bug_catcherWayneSeenText, Bug_catcherWayneBeatenText, 0, Bug_catcherWayneScript

Bug_catcherWayneScript:
	end_if_just_battled
	loadfont
	writetext UnknownText_0x6f571
	waitbutton
	closetext
	end

LassScript_0x6ee0d:
	jumptextfaceplayer UnknownText_0x6f2af

ItemFragment_0x6ee10:
	db REVIVE, 1

ItemFragment_0x6ee12:
	db X_ATTACK, 1

ItemFragment_0x6ee14:
	db ANTIDOTE, 1

ItemFragment_0x6ee16:
	db ETHER, 1

MapIlexForestSignpostItem1:
	dwb EVENT_ILEX_FOREST_HIDDEN_ETHER, ETHER
	

MapIlexForestSignpostItem2:
	dwb EVENT_ILEX_FOREST_HIDDEN_SUPER_POTION, SUPER_POTION
	

MapIlexForestSignpostItem3:
	dwb EVENT_ILEX_FOREST_HIDDEN_FULL_HEAL, FULL_HEAL

IlexForestBoulder:
; unused
	jumpstd strengthboulder

MapIlexForestSignpost0Script:
	jumptext UnknownText_0x6f2de

MapIlexForestSignpost4Script:
	checkevent EVENT_FOREST_IS_RESTLESS
	iftrue .ForestIsRestless
	jump .DontDoCelebiEvent

.ForestIsRestless:
	checkitem GS_BALL
	iftrue .AskCelebiEvent
.DontDoCelebiEvent:
	jumptext UnknownText_0x6f358

.AskCelebiEvent:
	loadfont
	writetext UnknownText_0x6f394
	yesorno
	iftrue .CelebiEvent
	closetext
	end

.CelebiEvent:
	takeitem GS_BALL
	clearevent EVENT_FOREST_IS_RESTLESS
	setevent EVENT_AZALEA_TOWN_KURT
	disappear ILEXFOREST_LASS
	clearevent EVENT_ROUTE_34_ILEX_FOREST_GATE_LASS
	writetext UnknownText_0x6f43b
	waitbutton
	closetext
	pause 20
	showemote EMOTE_SHOCK, PLAYER, 20
	special Special_FadeOutMusic
	applymovement PLAYER, MovementData_0x6ef58
	pause 30
	spriteface PLAYER, DOWN
	pause 20
	clearflag ENGINE_HAVE_EXAMINED_GS_BALL
	special Special_CelebiShrineEvent
	loadwildmon CELEBI, 30
	startbattle
	returnafterbattle
	pause 20
	special CheckCaughtCelebi
	iffalse .DidntCatchCelebi
	appear ILEXFOREST_KURT
	applymovement ILEXFOREST_KURT, MovementData_0x6ef4e
	loadfont
	writetext UnknownText_0x6f452
	waitbutton
	closetext
	applymovement ILEXFOREST_KURT, MovementData_0x6ef53
	disappear ILEXFOREST_KURT
.DidntCatchCelebi:
	end

MovementData_Farfetchd_Pos1_Pos2:
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_Farfetchd_Pos2_Pos3:
	big_step_up
	big_step_up
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_down
	step_end

MovementData_Farfetchd_Pos2_Pos8:
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	step_end

MovementData_Farfetchd_Pos3_Pos4:
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	step_end

MovementData_Farfetchd_Pos3_Pos2:
	big_step_up
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	step_end

MovementData_Farfetchd_Pos4_Pos5:
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	step_end

MovementData_Farfetchd_Pos4_Pos3:
	big_step_left
	jump_step_left
	big_step_left
	big_step_left
	step_end

MovementData_Farfetchd_Pos5_Pos6:
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	step_end

MovementData_Farfetchd_Pos5_Pos7:
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	step_end

MovementData_Farfetched_Pos5_Pos4_Up:
	big_step_up
	big_step_up
	big_step_up
	big_step_right
	big_step_up
	step_end

MovementData_Farfetched_Pos5_Pos4_Right:
	big_step_right
	turn_head_up
	step_sleep_1
	turn_head_down
	step_sleep_1
	turn_head_up
	step_sleep_1
	big_step_down
	big_step_down
	fix_facing
	jump_step_up
	step_sleep_8
	step_sleep_8
	remove_fixed_facing
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_Farfetched_Pos6_Pos7:
	big_step_left
	big_step_left
	big_step_left
	big_step_up
	big_step_up
	big_step_right
	big_step_up
	big_step_up
	step_end

MovementData_Farfetched_Pos6_Pos5:
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_Farfetched_Pos7_Pos8:
	big_step_up
	big_step_up
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	step_end

MovementData_Farfetched_Pos7_Pos6:
	big_step_down
	big_step_down
	big_step_left
	big_step_down
	big_step_down
	big_step_right
	big_step_right
	big_step_right
	step_end

MovementData_Farfetched_Pos7_Pos5:
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	step_end

MovementData_Farfetched_Pos8_Pos9:
	big_step_down
	big_step_left
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	big_step_down
	step_end

MovementData_Farfetched_Pos8_Pos7:
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	step_end

MovementData_Farfetched_Pos8_Pos2:
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_Farfetched_Pos9_Pos10:
	big_step_left
	big_step_left
	fix_facing
	jump_step_right
	step_sleep_8
	step_sleep_8
	remove_fixed_facing
	big_step_left
	big_step_left
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_Farfetched_Pos9_Pos8_Right:
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_Farfetched_Pos9_Pos8_Down:
	big_step_left
	big_step_left
	fix_facing
	jump_step_right
	step_sleep_8
	step_sleep_8
	remove_fixed_facing
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	step_end

MovementData_0x6ef4e:
	step_up
	step_up
	step_up
	step_up
	step_end

MovementData_0x6ef53:
	step_down
	step_down
	step_down
	step_down
	step_end

MovementData_0x6ef58:
	fix_facing
	slow_step_down
	remove_fixed_facing
	step_end

UnknownText_0x6ef5c:
	text "Oh, man… My boss"
	line "is going to be"
	cont "steaming…"

	para "The FARFETCH'D"
	line "that CUTS trees"

	para "for charcoal took"
	line "off on me."

	para "I can't go looking"
	line "for it here in the"
	cont "ILEX FOREST."

	para "It's too big, dark"
	line "and scary for me…"
	done

UnknownText_0x6f019:
	text "Wow! Thanks a"
	line "whole bunch!"

	para "My boss's #MON"
	line "won't obey me be-"
	cont "cause I don't have"
	cont "a BADGE."
	done

Text_ItsTheMissingPokemon:
	text "It's the missing"
	line "#MON!"
	done

Text_Kwaaaa:
	text "FARFETCH'D: Kwaa!"
	done

UnknownText_0x6f099:
	text "Ah! My FARFETCH'D!"

	para "You found it for"
	line "us, kid?"

	para "Without it, we"
	line "wouldn't be able"

	para "to CUT trees for"
	line "charcoal."

	para "Thanks, kid!"

	para "Now, how can I"
	line "thank you…"

	para "I know! Here, take"
	line "this."
	done

UnknownText_0x6f141:
	text "That's the CUT HM."
	line "Teach that to a"

	para "#MON to clear"
	line "small trees."

	para "Of course, you"
	line "have to have the"

	para "GYM BADGE from"
	line "AZALEA to use it."
	done

UnknownText_0x6f1c0:
	text "Do you want to"
	line "apprentice as a"

	para "charcoal maker"
	line "with me?"

	para "You'll be first-"
	line "rate in ten years!"
	done

UnknownText_0x6f21b:
	text "What am I doing?"

	para "I'm shaking trees"
	line "using HEADBUTT."

	para "It's fun. Here,"
	line "you try it too!"
	done

UnknownText_0x6f26d:
	text "Rattle trees with"
	line "HEADBUTT. Some-"
	cont "times, sleeping"
	cont "#MON fall out."
	done

UnknownText_0x6f2af:
	text "Did something"
	line "happen to the"
	cont "forest's guardian?"
	done

UnknownText_0x6f2de:
	text "ILEX FOREST is"
	line "so overgrown with"

	para "trees that you"
	line "can't see the sky."

	para "Please watch out"
	line "for items that may"
	cont "have been dropped."
	done

UnknownText_0x6f358:
	text "ILEX FOREST"
	line "SHRINE…"

	para "It's in honor of"
	line "the forest's"
	cont "protector…"
	done

UnknownText_0x6f394:
	text "ILEX FOREST"
	line "SHRINE…"

	para "It's in honor of"
	line "the forest's"
	cont "protector…"

	para "Oh? What is this?"

	para "It's a hole."
	line "It looks like the"

	para "GS BALL would fit"
	line "inside it."

	para "Want to put the GS"
	line "BALL here?"
	done

UnknownText_0x6f43b:
	text "<PLAYER> put in the"
	line "GS BALL."
	done

UnknownText_0x6f452:
	text "Whew, wasn't that"
	line "something!"

	para "<PLAYER>, that was"
	line "fantastic. Thanks!"

	para "The legends about"
	line "that SHRINE were"
	cont "real after all."

	para "I feel inspired by"
	line "what I just saw."

	para "It motivates me to"
	line "make better BALLS!"

	para "I'm going!"
	done

Bug_catcherWayneSeenText:
	text "Don't sneak up on"
	line "me like that!"

	para "You frightened a"
	line "#MON away!"
	done

Bug_catcherWayneBeatenText:
	text "I hadn't seen that"
	line "#MON before…"
	done

UnknownText_0x6f571:
	text "A #MON I've"
	line "never seen before"

	para "fell out of the"
	line "tree when I used"
	cont "HEADBUTT."

	para "I ought to use"
	line "HEADBUTT in other"
	cont "places too."
	done

IlexForest_MapEventHeader:
	; filler
	db 0, 0

.Warps:
	db 3
	warp_def $5, $1, 3, ROUTE_34_ILEX_FOREST_GATE
	warp_def $2a, $3, 1, ILEX_FOREST_AZALEA_GATE
	warp_def $2b, $3, 2, ILEX_FOREST_AZALEA_GATE

.XYTriggers:
	db 0

.Signposts:
	db 5
	signpost 17, 3, SIGNPOST_READ, MapIlexForestSignpost0Script
	signpost 7, 11, SIGNPOST_ITEM, MapIlexForestSignpostItem1
	signpost 14, 22, SIGNPOST_ITEM, MapIlexForestSignpostItem2
	signpost 17, 1, SIGNPOST_ITEM, MapIlexForestSignpostItem3
	signpost 22, 8, SIGNPOST_UP, MapIlexForestSignpost4Script

.PersonEvents:
	db 11
	person_event SPRITE_BIRD, 31, 14, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, IlexForestFarfetchdScript, EVENT_ILEX_FOREST_FARFETCHD
	person_event SPRITE_YOUNGSTER, 28, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, YoungsterScript_0x6eb7b, EVENT_ILEX_FOREST_APPRENTICE
	person_event SPRITE_BLACK_BELT, 28, 5, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackBeltScript_0x6edae, EVENT_ILEX_FOREST_CHARCOAL_MASTER
	person_event SPRITE_ROCKER, 14, 15, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, RockerScript_0x6edde, -1
	person_event SPRITE_POKE_BALL, 32, 20, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee10, EVENT_ILEX_FOREST_REVIVE
	person_event SPRITE_KURT, 29, 8, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_ILEX_FOREST_KURT
	person_event SPRITE_LASS, 24, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LassScript_0x6ee0d, EVENT_ILEX_FOREST_LASS
	person_event SPRITE_YOUNGSTER, 1, 12, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 0, TrainerBug_catcherWayne, -1
	person_event SPRITE_POKE_BALL, 17, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee12, EVENT_ILEX_FOREST_X_ATTACK
	person_event SPRITE_POKE_BALL, 7, 17, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee14, EVENT_ILEX_FOREST_ANTIDOTE
	person_event SPRITE_POKE_BALL, 1, 27, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee16, EVENT_ILEX_FOREST_ETHER