ViridianCity_Mart_MapScripts:: @ 816A1D3
	map_script MAP_SCRIPT_ON_LOAD, ViridianCity_Mart_OnLoad
	map_script MAP_SCRIPT_ON_FRAME_TABLE, ViridianCity_Mart_OnFrame
	.byte 0

ViridianCity_Mart_OnLoad:: @ 816A1DE
	goto_if_unset FLAG_SYS_POKEDEX_GET, EventScript_16A1E8
	end

EventScript_16A1E8:: @ 816A1E8
	setmetatile 1, 3, 703, 1
	setmetatile 1, 4, 704, 1
	end

ViridianCity_Mart_OnFrame:: @ 816A1FB
	map_script_2 VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 0, EventScript_16A205
	.2byte 0

EventScript_16A205:: @ 816A205
	lockall
	textcolor 0
	applymovement 1, Movement_WalkInPlaceFastestDown
	waitmovement 0
	msgbox gUnknown_819021A
	closemessage
	applymovement 1, Movement_16A262
	applymovement OBJ_EVENT_ID_PLAYER, Movement_16A25C
	waitmovement 0
	msgbox gUnknown_819023A
	setvar VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 1
	giveitem_msg gUnknown_8190289, ITEM_OAKS_PARCEL, 1, MUS_FAN5
	setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 5
	releaseall
	end

Movement_16A25C:: @ 816A25C
	walk_up
	walk_up
	walk_up
	walk_up
	walk_in_place_fastest_left
	step_end

Movement_16A262:: @ 816A262
	delay_16
	delay_16
	delay_16
	delay_16
	walk_in_place_fastest_right
	step_end

ViridianCity_Mart_EventScript_16A268:: @ 816A268
	lock
	faceplayer
	compare VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 1
	goto_if_eq EventScript_16A2A4
	goto_if_questlog EventScript_ReleaseEnd
	message Text_MayIHelpYou
	waitmessage
	pokemart Items_16A298
	msgbox Text_PleaseComeAgain
	release
	end

	.align 2
Items_16A298:: @ 816A298
	.2byte ITEM_POKE_BALL
	.2byte ITEM_POTION
	.2byte ITEM_ANTIDOTE
	.2byte ITEM_PARALYZE_HEAL
	.2byte ITEM_NONE
	release
	end

EventScript_16A2A4:: @ 816A2A4
	msgbox Text_1902BF
	release
	end

ViridianCity_Mart_EventScript_16A2AE:: @ 816A2AE
	msgbox gUnknown_81902F5, MSGBOX_NPC
	end

ViridianCity_Mart_EventScript_16A2B7:: @ 816A2B7
	msgbox gUnknown_819032C, MSGBOX_NPC
	end
