Route69_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route69DirectionsSign:
	signpostheader 3
	ctxt "Please stop tak-"
	next "ing the signs."
	nl   ""
	next "<UP> Heath Village"
	next "<DOWN> Caper City"
	done

Route69_Item_Potion:
	db POTION, 1

Route69_Item_MiracleSeed:
	db MIRACLE_SEED, 1

Route69_Item_Nugget:
	db NUGGET, 1

Route69_Trainer_1:
	trainer EVENT_ROUTE_69_TRAINER_1, HIKER, 2, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	ctxt "As a Trainer, you"
	line "must be prepared"
	cont "for anything."
	done

.battle_won_text
	ctxt "Oh, I lost that!"
	done

.after_battle_text
	ctxt "It's impossible to"
	line "predict every"
	cont "single thing."
	done

Route69_Trainer_2:
	trainer EVENT_ROUTE_69_TRAINER_2, HIKER, 3, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	ctxt "You think you're"
	line "slick, don't you?"

	para "You're nothing"
	line "compared to me!"
	done

.battle_won_text
	ctxt "Not slick enough!"
	done

.after_battle_text
	ctxt "I'm so slick, that"
	line "I detest Crobat."
	done

Route69_Trainer_3:
	trainer EVENT_ROUTE_69_TRAINER_3, HIKER, 10, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	ctxt "My #mon enjoy a"
	line "hike just as much"
	cont "as I do."
	done

.battle_won_text
	ctxt "They experience"
	line "losses too!"
	done

.after_battle_text
	ctxt "Going on hikes is"
	line "more fun with your"
	cont "#mon!"
	done

Route69_Trainer_4:
	trainer EVENT_ROUTE_69_TRAINER_4, BLACKBELT_T, 2, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	ctxt "I come here to"
	line "train here every"
	para "day with my"
	line "loyal #mon!"
	done

.battle_won_text
	ctxt "Waaaargh!"
	done

.after_battle_text
	ctxt "I must train with"
	line "my #mon even"
	cont "harder now!"
	done

Route69_Trainer_5:
	trainer EVENT_ROUTE_69_TRAINER_5, COOLTRAINERM, 3, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	ctxt "You cannot deny"
	line "my awesome skill!"
	done

.battle_won_text
	ctxt "I admit defeat."
	done

.after_battle_text
	ctxt "It's important to"
	line "recognize your"
	para "flaws, so you can"
	line "improve."

	para "Self-discipline."
	done

Route69_Trainer_6:
	trainer EVENT_ROUTE_69_TRAINER_6, COOLTRAINERF, 1, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	ctxt "What are your"
	line "battle methods?"
	done

.battle_won_text
	ctxt "<...>Really?"
	done

.after_battle_text
	ctxt "Perhaps you can"
	line "teach me a thing"
	cont "or two<...>"

	para "No?"

	para "How rude!"
	done

IlkBrotherHouseBlockLeaving:
	checkevent EVENT_ROUTE_69_ILK_BRO_TRAPPED
	sif false
		end
	showtext .text
	applymovement PLAYER, .move_player_up
	disappear PLAYER
	warpsound
	special Special_BattleTowerFade
	waitsfx
	warpfacing UP, ROUTE_69_ILKBROTHERHOUSE, 4, 9
	playmusic MUSIC_RIVAL_ENCOUNTER
	end

.move_player_up
	step_up
	step_end

.text
	ctxt "Where are you"
	line "going?"

	para "Please come back"
	line "inside and stop"
	cont "that crazy kid!"
	sdone

Route69_MapEventHeader ;filler
	db 0, 0

;warps
	db 4
	warp_def $54, $6, 2, ROUTE_69_GATE
	warp_def $55, $6, 3, ROUTE_69_GATE
	warp_def $41, $b, 1, ROUTE_69_ILKBROTHERHOUSE
	warp_def $3b, $e, 2, MOUND_UPPERAREA

	;xy triggers
	db 1
	xy_trigger 0, 66, 11, $0, IlkBrotherHouseBlockLeaving, $0, $0

	;signposts
	db 1
	signpost 5, 11, SIGNPOST_LOAD, Route69DirectionsSign

	;people-events
	db 10
	person_event SPRITE_HIKER, 19, 10, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 1, Route69_Trainer_1, -1
	person_event SPRITE_HIKER, 24, 14, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 2, Route69_Trainer_2, -1
	person_event SPRITE_HIKER, 41, 32, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 1, Route69_Trainer_3, -1
	person_event SPRITE_BLACK_BELT, 48, 7, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 2, Route69_Trainer_4, -1
	person_event SPRITE_COOLTRAINER_M, 58, 11, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, Route69_Trainer_5, -1
	person_event SPRITE_COOLTRAINER_F, 4, 8, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, Route69_Trainer_6, -1
	person_event SPRITE_POKE_BALL, 63, 15, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, Route69_Item_Potion, EVENT_ROUTE_69_ITEM_1
	person_event SPRITE_POKE_BALL, 79, 6, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, Route69_Item_MiracleSeed, EVENT_ROUTE_69_ITEM_2
	person_event SPRITE_POKE_BALL, 34, 17, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TMHMBALL, TM_FURY_CUTTER, 0, EVENT_ROUTE_69_TM
	person_event SPRITE_POKE_BALL, 52, 10, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, Route69_Item_Nugget, EVENT_ROUTE_69_ITEM_3
