SlateportCity_OceanicMuseum_2F_MapScripts:: @ 8155CDA
	map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_OceanicMuseum_2F_MapScript1_155CE0
	.byte 0

SlateportCity_OceanicMuseum_2F_MapScript1_155CE0:: @ 8155CE0
	call Common_EventScript_SetupEvilTeamGfxIds
	end

SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
	lock
	faceplayer
	msgbox SlateportCity_OceanicMuseum_2F_Text_17ECFD, MSGBOX_DEFAULT
	closemessage
	playbgm MUS_EVIL_TEAM, TRUE
	addobject 3
	applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EB4
	waitmovement 0
	addobject 4
	applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EC3
	waitmovement 0
	applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EB8
	applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EC5
	waitmovement 0
	compare VAR_FACING, 1
	call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E62
	compare VAR_FACING, 4
	call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E62
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EDAE, MSGBOX_DEFAULT
	compare VAR_FACING, 4
	call_if_ne SlateportCity_OceanicMuseum_2F_EventScript_155E6D
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EDD7, MSGBOX_DEFAULT
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EE01, MSGBOX_DEFAULT
	closemessage
	applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EB2
	waitmovement 0
	compare VAR_FACING, 1
	call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E78
	compare VAR_FACING, 3
	call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E83
	trainerbattle_no_intro TRAINER_MUSEUM_2F_GRUNT_1, SlateportCity_OceanicMuseum_2F_Text_17EE4E
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EE66, MSGBOX_DEFAULT
	closemessage
	applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EBF
	waitmovement 0
	applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EB2
	waitmovement 0
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EEA5, MSGBOX_DEFAULT
	savebgm 0
	trainerbattle_no_intro TRAINER_MUSEUM_2F_GRUNT_2, SlateportCity_OceanicMuseum_2F_Text_17EED6
	applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EBF
	waitmovement 0
	applymovement 3, Common_Movement_WalkInPlaceFastestDown
	applymovement 4, Common_Movement_WalkInPlaceFastestUp
	waitmovement 0
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EEEA, MSGBOX_DEFAULT
	closemessage
	delay 35
	addobject 2
	applymovement 2, SlateportCity_OceanicMuseum_2F_Movement_155EA8
	applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155ECE
	waitmovement 0
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EF62, MSGBOX_DEFAULT
	applymovement 2, SlateportCity_OceanicMuseum_2F_Movement_155EA6
	waitmovement 0
	.ifdef SAPPHIRE
	msgbox SlateportCity_OceanicMuseum_2F_Text_17EFC9, MSGBOX_DEFAULT
	.else
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F17E, MSGBOX_DEFAULT
	.endif
	closemessage
	fadescreen FADE_TO_BLACK
	removeobject 2
	removeobject 3
	removeobject 4
	fadescreen FADE_FROM_BLACK
	delay 30
	setflag FLAG_HIDE_EVIL_TEAM_OCEANIC_MUSEUM
	applymovement LOCALID_PLAYER, Common_Movement_WalkInPlaceFastestRight
	waitmovement 0
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F352, MSGBOX_DEFAULT
	setvar VAR_0x8004, ITEM_DEVON_GOODS
	call Common_EventScript_PlayerHandedOverTheItem
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F433, MSGBOX_DEFAULT
	closemessage
	applymovement 1, SlateportCity_OceanicMuseum_2F_Movement_155E98
	waitmovement 0
	playse SE_EXIT
	removeobject 1
	setflag FLAG_HIDE_EVIL_TEAM_ROUTE110
	setflag FLAG_DELIVERED_DEVON_GOODS
	clearflag FLAG_HIDE_DEVON_EMPLOYEE_ROUTE116
	setflag FLAG_HIDE_EMPLOYEE_DEVON_CORP_3F
	release
	end

SlateportCity_OceanicMuseum_2F_EventScript_155E62:: @ 8155E62
	applymovement LOCALID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
	waitmovement 0
	return

SlateportCity_OceanicMuseum_2F_EventScript_155E6D:: @ 8155E6D
	applymovement 1, Common_Movement_WalkInPlaceFastestLeft
	waitmovement 0
	return

SlateportCity_OceanicMuseum_2F_EventScript_155E78:: @ 8155E78
	applymovement LOCALID_PLAYER, SlateportCity_OceanicMuseum_2F_Movement_155E8E
	waitmovement 0
	return

SlateportCity_OceanicMuseum_2F_EventScript_155E83:: @ 8155E83
	applymovement LOCALID_PLAYER, SlateportCity_OceanicMuseum_2F_Movement_155E92
	waitmovement 0
	return

SlateportCity_OceanicMuseum_2F_Movement_155E8E:: @ 8155E8E
	walk_left
	walk_down
	walk_in_place_fastest_left
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155E92:: @ 8155E92
	walk_up
	walk_left
	walk_left
	walk_down
	walk_in_place_fastest_left
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155E98:: @ 8155E98
	walk_up
	walk_left
	walk_left
	walk_left
	walk_left
	walk_left
	walk_up
	walk_up
	walk_left
	walk_left
	walk_up
	walk_up
	delay_8
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EA6:: @ 8155EA6
	walk_right
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EA8:: @ 8155EA8
	walk_down
	walk_down
	walk_down
	walk_down
	walk_down
	walk_right
	walk_right
	walk_right
	walk_right
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EB2:: @ 8155EB2
	walk_right
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EB4:: @ 8155EB4
	walk_down
	walk_right
	walk_in_place_fastest_down
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EB8:: @ 8155EB8
	walk_down
	walk_down
	walk_down
	walk_right
	walk_right
	walk_right
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EBF:: @ 8155EBF
	lock_facing_direction
	walk_left
	unlock_facing_direction
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EC3:: @ 8155EC3
	walk_down
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155EC5:: @ 8155EC5
	walk_down
	walk_down
	walk_down
	walk_down
	walk_right
	walk_right
	walk_right
	walk_right
	step_end

SlateportCity_OceanicMuseum_2F_Movement_155ECE:: @ 8155ECE
	delay_16
	delay_16
	delay_16
	delay_16
	delay_16
	delay_16
	delay_16
	delay_16
	delay_8
	walk_fast_down
	walk_in_place_fastest_up
	step_end

SlateportCity_OceanicMuseum_2F_EventScript_155EDA:: @ 8155EDA
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F572, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155EE3:: @ 8155EE3
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F5E3, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155EEC:: @ 8155EEC
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F653, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155EF5:: @ 8155EF5
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F754, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155EFE:: @ 8155EFE
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F7BC, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F07:: @ 8155F07
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F84E, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F10:: @ 8155F10
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F8BC, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F19:: @ 8155F19
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F918, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F22:: @ 8155F22
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F975, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F2B:: @ 8155F2B
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F9C7, MSGBOX_SIGN
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F34:: @ 8155F34
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F4B6, MSGBOX_NPC
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F3D:: @ 8155F3D
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F50E, MSGBOX_NPC
	end

SlateportCity_OceanicMuseum_2F_EventScript_155F46:: @ 8155F46
	lock
	faceplayer
	msgbox SlateportCity_OceanicMuseum_2F_Text_17F53B, MSGBOX_DEFAULT
	closemessage
	applymovement VAR_LAST_TALKED, Common_Movement_FaceOriginalDirection
	waitmovement 0
	release
	end
