pokefirered/data/maps/TwoIsland/scripts.inc
2019-10-21 10:42:24 -04:00

240 lines
5.1 KiB
PHP

TwoIsland_MapScripts:: @ 8167564
map_script 3, TwoIsland_MapScript1_16756A
.byte 0
TwoIsland_MapScript1_16756A:: @ 816756A
setworldmapflag FLAG_WORLD_MAP_TWO_ISLAND
setflag FLAG_VISITED_TWO_ISLAND
call EventScript_167576
end
EventScript_167576:: @ 8167576
checkflag FLAG_SYS_CAN_LINK_WITH_RS
goto_if TRUE, EventScript_167597
checkflag FLAG_SYS_GAME_CLEAR
goto_if TRUE, EventScript_1675B8
checkflag FLAG_RESCUED_LOSTELLE
goto_if TRUE, EventScript_1675D9
goto EventScript_1675E8
end
EventScript_167597:: @ 8167597
checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
goto_if FALSE, EventScript_1675EE
checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
goto_if FALSE, EventScript_1675F4
checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
goto_if FALSE, EventScript_1675FD
goto EventScript_167606
end
EventScript_1675B8:: @ 81675B8
checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
goto_if FALSE, EventScript_1675EE
checkflag FLAG_RESCUED_LOSTELLE
goto_if FALSE, EventScript_1675EE
checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
goto_if FALSE, EventScript_1675F4
goto EventScript_1675FD
end
EventScript_1675D9:: @ 81675D9
checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
goto_if FALSE, EventScript_1675EE
goto EventScript_1675F4
end
EventScript_1675E8:: @ 81675E8
goto EventScript_1675EE
end
EventScript_1675EE:: @ 81675EE
setvar VAR_MAP_SCENE_TWO_ISLAND, 1
return
EventScript_1675F4:: @ 81675F4
setvar VAR_MAP_SCENE_TWO_ISLAND, 2
clearflag FLAG_HIDE_TWO_ISLAND_WOMAN
return
EventScript_1675FD:: @ 81675FD
setvar VAR_MAP_SCENE_TWO_ISLAND, 3
clearflag FLAG_HIDE_TWO_ISLAND_BEAUTY
return
EventScript_167606:: @ 8167606
setvar VAR_MAP_SCENE_TWO_ISLAND, 4
clearflag FLAG_HIDE_TWO_ISLAND_SUPER_NERD
return
TwoIsland_EventScript_16760F:: @ 816760F
special sub_8110AB4
compare_var_to_value VAR_RESULT, 2
goto_if eq, EventScript_1A7AE0
lock
faceplayer
compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4
goto_if eq, EventScript_167646
compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3
goto_if eq, EventScript_16765E
compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2
goto_if eq, EventScript_167676
goto EventScript_16768E
end
EventScript_167646:: @ 8167646
checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3
goto_if TRUE, EventScript_1676A6
setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3
message Text_181CAE
waitmessage
goto EventScript_167728
end
EventScript_16765E:: @ 816765E
checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
goto_if TRUE, EventScript_1676A6
setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
message Text_181C77
waitmessage
goto EventScript_167708
end
EventScript_167676:: @ 8167676
checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
goto_if TRUE, EventScript_1676A6
setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
message Text_181B7C
waitmessage
goto EventScript_1676EC
end
EventScript_16768E:: @ 816768E
checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
goto_if TRUE, EventScript_1676A6
setflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
message Text_181AFE
waitmessage
goto EventScript_1676D3
end
EventScript_1676A6:: @ 81676A6
message Text_1A6211
waitmessage
compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4
goto_if eq, EventScript_167728
compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3
goto_if eq, EventScript_167708
compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2
goto_if eq, EventScript_1676EC
goto EventScript_1676D3
end
EventScript_1676D3:: @ 81676D3
pokemart Items_1676E4
msgbox gUnknown_81A5190
release
end
.align 2
Items_1676E4:: @ 81676E4
.2byte ITEM_GREAT_BALL
.2byte ITEM_FRESH_WATER
.2byte ITEM_NONE
release
end
EventScript_1676EC:: @ 81676EC
pokemart Items_1676FC
msgbox gUnknown_81A5190
release
end
.align 2
Items_1676FC:: @ 81676FC
.2byte ITEM_ULTRA_BALL
.2byte ITEM_GREAT_BALL
.2byte ITEM_SODA_POP
.2byte ITEM_FRESH_WATER
.2byte ITEM_NONE
release
end
EventScript_167708:: @ 8167708
pokemart Items_167718
msgbox gUnknown_81A5190
release
end
.align 2
Items_167718:: @ 8167718
.2byte ITEM_ULTRA_BALL
.2byte ITEM_GREAT_BALL
.2byte ITEM_LEMONADE
.2byte ITEM_SODA_POP
.2byte ITEM_FRESH_WATER
.2byte ITEM_MOOMOO_MILK
.2byte ITEM_NONE
release
end
EventScript_167728:: @ 8167728
pokemart Items_167738
msgbox gUnknown_81A5190
release
end
.align 2
Items_167738:: @ 8167738
.2byte ITEM_ULTRA_BALL
.2byte ITEM_REPEAT_BALL
.2byte ITEM_TIMER_BALL
.2byte ITEM_LEMONADE
.2byte ITEM_SODA_POP
.2byte ITEM_FRESH_WATER
.2byte ITEM_MOOMOO_MILK
.2byte ITEM_LAVA_COOKIE
.2byte ITEM_NONE
release
end
TwoIsland_EventScript_16774C:: @ 816774C
msgbox gUnknown_8181D2F, 2
end
TwoIsland_EventScript_167755:: @ 8167755
msgbox gUnknown_8181DCA, 2
end
TwoIsland_EventScript_16775E:: @ 816775E
lock
faceplayer
famechecker FAMECHECKER_BRUNO, 4
msgbox gUnknown_8181E47
release
end
TwoIsland_EventScript_167777:: @ 8167777
msgbox gUnknown_8181F28, 2
end
TwoIsland_EventScript_167780:: @ 8167780
msgbox gUnknown_8181F5D, 2
end
TwoIsland_EventScript_167789:: @ 8167789
msgbox gUnknown_8181FCE, 2
end
TwoIsland_EventScript_167792:: @ 8167792
msgbox gUnknown_8181A88, 3
end
TwoIsland_EventScript_16779B:: @ 816779B
msgbox gUnknown_8181AA7, 3
end
TwoIsland_EventScript_1677A4:: @ 81677A4
msgbox gUnknown_8181AC8, 3
end