Route55_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, Route55UnlockRijonSecondHalf

Route55UnlockRijonSecondHalf:
	setevent EVENT_RIJON_SECOND_PART
	return

Route55HiddenItem:
	dw EVENT_ROUTE_55_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route55StudiosSign:
	checkcode VAR_FACING
	loadarray .SignpostPointersArray
	readarrayhalfword 0
	loadsignpost -1

.SignpostPointersArray
	dw .FacingDown
.SignpostPointersArrayEntrySizeEnd:
	dw .FacingUp
	dw .FacingLeft
	dw .FacingRight

.FacingUp
	ctxt "(removed)"
	nl   " Studios."
	nl   "<UP>"
	nl   "<UP>@"
	start_asm
	ld hl, .facingUpEntryPoint
	ret

.FacingDown
	ctxt "(removed)"
	nl   " Studios.@"
.facingUpEntryPoint
	ctxt ""
	nl   "    <UP>"
	nl   "    <UP>"
	nl   "    <UP>"
	nl   "    <LEFT>@"
.facingLeftEntryPoint
	ctxt "<LEFT><LEFT><LEFT><LEFT><LEFT><LEFT> You"
	done

.FacingLeft
	ctxt "(removed)"
	nl   " Studios."
	nl   "    <UP>"
	nl   "    <UP>"
	nl   "    <UP>"
	nl   "    <LEFT><LEFT><LEFT><LEFT><LEFT><LEFT><LEFT><LEFT>"
	nl   "           <UP>"
	nl   "          You"
	done

.FacingRight
	ctxt "(removed)"
	nl   " Studios."
	nl   "    <UP>"
	nl   "    <UP>"
	nl   "    <UP>"
	nl   "    <UP>@"
	start_asm
	ld hl, .facingLeftEntryPoint
	ret

Route55_Trainer_1:
	trainer EVENT_ROUTE_55_TRAINER_1, HIKER, 5, .before_battle_text, Route55_Trainers_1_2_BattleWon_Text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "Taking the long"
	line "way is always"
	cont "refreshing!"
	done

.after_battle_text
	ctxt "Why fly with your"
	line "#mon when you"
	para "can walk with"
	line "them?"
	done

Route55_Trainer_2:
	trainer EVENT_ROUTE_55_TRAINER_2, HIKER, 6, .before_battle_text, Route55_Trainers_1_2_BattleWon_Text, $0000, .Script

.Script:
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "Why didn't anyone"
	line "bother to clear"
	cont "this path?"
	done

.after_battle_text
	ctxt "Guess those crazy"
	line "guys up north"
	para "want their"
	line "studios to be in"
	cont "seclusion."
	done

Route55_Trainer_3:
	trainer EVENT_ROUTE_55_TRAINER_3, GENTLEMAN, 1, .before_battle_text, .battle_won_text, $0000, .Script

.Script:
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "Enter this"
	line "building at your"
	cont "own risk!"
	done

.battle_won_text
	ctxt "Don't listen to"
	line "false prophets."
	done

.after_battle_text
	ctxt "Those guys"
	line "believe that our"
	para "world is nothing"
	line "more than a game"
	para "and that they"
	line "created it."

	para "I can't stand"
	line "egomaniacs<...>"
	done

Route55_Trainers_1_2_BattleWon_Text:
	ctxt "Good exercise!"
	done

Route55_MapEventHeader:: db 0, 0

.Warps: db 3
	warp_def 7, 0, 1, SILK_TUNNEL_1F
	warp_def 5, 13, 2, ROUTE_55_GATE_UNDERGROUND
	warp_def 49, 12, 1, MT_BOULDER_B1F

.CoordEvents: db 0

.BGEvents: db 2
	signpost 25, 13, SIGNPOST_READ, Route55StudiosSign
	signpost 30, 2, SIGNPOST_ITEM, Route55HiddenItem

.ObjectEvents: db 3
	person_event SPRITE_FISHER, 53, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, 2, 2, Route55_Trainer_1, -1
	person_event SPRITE_FISHER, 49, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, 2, 2, Route55_Trainer_2, -1
	person_event SPRITE_GENTLEMAN, 27, 8, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, 2, 3, Route55_Trainer_3, -1
