summaryrefslogtreecommitdiff
path: root/data/maps/TwoIsland/scripts.inc
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-02-26 01:46:21 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-02-26 01:46:21 -0500
commite80ddc46758bfef075b749af2802ce5d646bd9cd (patch)
tree560086f0cbad5a8a2a3e7cb4603d7058440d3924 /data/maps/TwoIsland/scripts.inc
parent3b558edc7906b2a75b7d65aa396c611ce1802e62 (diff)
Document Two Island scripts
Diffstat (limited to 'data/maps/TwoIsland/scripts.inc')
-rw-r--r--data/maps/TwoIsland/scripts.inc162
1 files changed, 81 insertions, 81 deletions
diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc
index acfb2c38b..530fd3928 100644
--- a/data/maps/TwoIsland/scripts.inc
+++ b/data/maps/TwoIsland/scripts.inc
@@ -5,137 +5,137 @@ TwoIsland_MapScripts:: @ 8167564
TwoIsland_OnTransition:: @ 816756A
setworldmapflag FLAG_WORLD_MAP_TWO_ISLAND
setflag FLAG_VISITED_TWO_ISLAND
- call EventScript_167576
+ call TwoIsland_EventScript_SetShopState
end
-EventScript_167576:: @ 8167576
- goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_167597
- goto_if_set FLAG_SYS_GAME_CLEAR, EventScript_1675B8
- goto_if_set FLAG_RESCUED_LOSTELLE, EventScript_1675D9
- goto EventScript_1675E8
+TwoIsland_EventScript_SetShopState:: @ 8167576
+ goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, TwoIsland_EventScript_SetShopStateAfterHoennLink
+ goto_if_set FLAG_SYS_GAME_CLEAR, TwoIsland_EventScript_SetShopStateAfterChampion
+ goto_if_set FLAG_RESCUED_LOSTELLE, TwoIsland_EventScript_SetShopStateAfterLostelleRescue
+ goto TwoIsland_EventScript_SetShopStateDefault
end
-EventScript_167597:: @ 8167597
- goto_if_unset FLAG_TWO_ISLAND_SHOP_INTRODUCED, EventScript_1675EE
- goto_if_unset FLAG_TWO_ISLAND_SHOP_EXPANDED_1, EventScript_1675F4
- goto_if_unset FLAG_TWO_ISLAND_SHOP_EXPANDED_2, EventScript_1675FD
- goto EventScript_167606
+TwoIsland_EventScript_SetShopStateAfterHoennLink:: @ 8167597
+ goto_if_unset FLAG_TWO_ISLAND_SHOP_INTRODUCED, TwoIsland_EventScript_SetShopInitial
+ goto_if_unset FLAG_TWO_ISLAND_SHOP_EXPANDED_1, TwoIsland_EventScript_SetShopExpanded1
+ goto_if_unset FLAG_TWO_ISLAND_SHOP_EXPANDED_2, TwoIsland_EventScript_SetShopExpanded2
+ goto TwoIsland_EventScript_SetShopExpanded3
end
-EventScript_1675B8:: @ 81675B8
- goto_if_unset FLAG_TWO_ISLAND_SHOP_INTRODUCED, EventScript_1675EE
- goto_if_unset FLAG_RESCUED_LOSTELLE, EventScript_1675EE
- goto_if_unset FLAG_TWO_ISLAND_SHOP_EXPANDED_1, EventScript_1675F4
- goto EventScript_1675FD
+TwoIsland_EventScript_SetShopStateAfterChampion:: @ 81675B8
+ goto_if_unset FLAG_TWO_ISLAND_SHOP_INTRODUCED, TwoIsland_EventScript_SetShopInitial
+ goto_if_unset FLAG_RESCUED_LOSTELLE, TwoIsland_EventScript_SetShopInitial
+ goto_if_unset FLAG_TWO_ISLAND_SHOP_EXPANDED_1, TwoIsland_EventScript_SetShopExpanded1
+ goto TwoIsland_EventScript_SetShopExpanded2
end
-EventScript_1675D9:: @ 81675D9
- goto_if_unset FLAG_TWO_ISLAND_SHOP_INTRODUCED, EventScript_1675EE
- goto EventScript_1675F4
+TwoIsland_EventScript_SetShopStateAfterLostelleRescue:: @ 81675D9
+ goto_if_unset FLAG_TWO_ISLAND_SHOP_INTRODUCED, TwoIsland_EventScript_SetShopInitial
+ goto TwoIsland_EventScript_SetShopExpanded1
end
-EventScript_1675E8:: @ 81675E8
- goto EventScript_1675EE
+TwoIsland_EventScript_SetShopStateDefault:: @ 81675E8
+ goto TwoIsland_EventScript_SetShopInitial
end
-EventScript_1675EE:: @ 81675EE
+TwoIsland_EventScript_SetShopInitial:: @ 81675EE
setvar VAR_MAP_SCENE_TWO_ISLAND, 1
return
-EventScript_1675F4:: @ 81675F4
+TwoIsland_EventScript_SetShopExpanded1:: @ 81675F4
setvar VAR_MAP_SCENE_TWO_ISLAND, 2
clearflag FLAG_HIDE_TWO_ISLAND_WOMAN
return
-EventScript_1675FD:: @ 81675FD
+TwoIsland_EventScript_SetShopExpanded2:: @ 81675FD
setvar VAR_MAP_SCENE_TWO_ISLAND, 3
clearflag FLAG_HIDE_TWO_ISLAND_BEAUTY
return
-EventScript_167606:: @ 8167606
+TwoIsland_EventScript_SetShopExpanded3:: @ 8167606
setvar VAR_MAP_SCENE_TWO_ISLAND, 4
clearflag FLAG_HIDE_TWO_ISLAND_SUPER_NERD
return
-TwoIsland_EventScript_16760F:: @ 816760F
+TwoIsland_EventScript_Clerk:: @ 816760F
goto_if_questlog EventScript_ReleaseEnd
lock
faceplayer
compare VAR_MAP_SCENE_TWO_ISLAND, 4
- goto_if_eq EventScript_167646
+ goto_if_eq TwoIsland_EventScript_ClerkShopExpanded3
compare VAR_MAP_SCENE_TWO_ISLAND, 3
- goto_if_eq EventScript_16765E
+ goto_if_eq TwoIsland_EventScript_ClerkShopExpanded2
compare VAR_MAP_SCENE_TWO_ISLAND, 2
- goto_if_eq EventScript_167676
- goto EventScript_16768E
+ goto_if_eq TwoIsland_EventScript_ClerkShopExpanded1
+ goto TwoIsland_EventScript_ClerkShopInitial
end
-EventScript_167646:: @ 8167646
- goto_if_set FLAG_TWO_ISLAND_SHOP_EXPANDED_3, EventScript_1676A6
+TwoIsland_EventScript_ClerkShopExpanded3:: @ 8167646
+ goto_if_set FLAG_TWO_ISLAND_SHOP_EXPANDED_3, TwoIsland_EventScript_ClerkShopSkipIntro
setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3
- message Text_181CAE
+ message TwoIsland_Text_BringingItemsFromDistantLands
waitmessage
- goto EventScript_167728
+ goto TwoIsland_EventScript_ShopExpanded3
end
-EventScript_16765E:: @ 816765E
- goto_if_set FLAG_TWO_ISLAND_SHOP_EXPANDED_2, EventScript_1676A6
+TwoIsland_EventScript_ClerkShopExpanded2:: @ 816765E
+ goto_if_set FLAG_TWO_ISLAND_SHOP_EXPANDED_2, TwoIsland_EventScript_ClerkShopSkipIntro
setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
- message Text_181C77
+ message TwoIsland_Text_HopeYouGiveItYourBest
waitmessage
- goto EventScript_167708
+ goto TwoIsland_EventScript_ShopExpanded2
end
-EventScript_167676:: @ 8167676
- goto_if_set FLAG_TWO_ISLAND_SHOP_EXPANDED_1, EventScript_1676A6
+TwoIsland_EventScript_ClerkShopExpanded1:: @ 8167676
+ goto_if_set FLAG_TWO_ISLAND_SHOP_EXPANDED_1, TwoIsland_EventScript_ClerkShopSkipIntro
setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
- message Text_181B7C
+ message TwoIsland_Text_AddedMerchandiseForLostelle
waitmessage
- goto EventScript_1676EC
+ goto TwoIsland_EventScript_ShopExpanded1
end
-EventScript_16768E:: @ 816768E
- goto_if_set FLAG_TWO_ISLAND_SHOP_INTRODUCED, EventScript_1676A6
+TwoIsland_EventScript_ClerkShopInitial:: @ 816768E
+ goto_if_set FLAG_TWO_ISLAND_SHOP_INTRODUCED, TwoIsland_EventScript_ClerkShopSkipIntro
setflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
- message Text_181AFE
+ message TwoIsland_Text_WelcomeToShopMerchandiseLimited
waitmessage
- goto EventScript_1676D3
+ goto TwoIsland_EventScript_ShopInitial
end
-EventScript_1676A6:: @ 81676A6
+TwoIsland_EventScript_ClerkShopSkipIntro:: @ 81676A6
message Text_MayIHelpYou
waitmessage
compare VAR_MAP_SCENE_TWO_ISLAND, 4
- goto_if_eq EventScript_167728
+ goto_if_eq TwoIsland_EventScript_ShopExpanded3
compare VAR_MAP_SCENE_TWO_ISLAND, 3
- goto_if_eq EventScript_167708
+ goto_if_eq TwoIsland_EventScript_ShopExpanded2
compare VAR_MAP_SCENE_TWO_ISLAND, 2
- goto_if_eq EventScript_1676EC
- goto EventScript_1676D3
+ goto_if_eq TwoIsland_EventScript_ShopExpanded1
+ goto TwoIsland_EventScript_ShopInitial
end
-EventScript_1676D3:: @ 81676D3
- pokemart Items_1676E4
+TwoIsland_EventScript_ShopInitial:: @ 81676D3
+ pokemart TwoIsland_Items_ShopInitial
msgbox Text_PleaseComeAgain
release
end
.align 2
-Items_1676E4:: @ 81676E4
+TwoIsland_Items_ShopInitial:: @ 81676E4
.2byte ITEM_GREAT_BALL
.2byte ITEM_FRESH_WATER
.2byte ITEM_NONE
release
end
-EventScript_1676EC:: @ 81676EC
- pokemart Items_1676FC
+TwoIsland_EventScript_ShopExpanded1:: @ 81676EC
+ pokemart TwoIsland_Items_ShopExpanded1
msgbox Text_PleaseComeAgain
release
end
.align 2
-Items_1676FC:: @ 81676FC
+TwoIsland_Items_ShopExpanded1:: @ 81676FC
.2byte ITEM_ULTRA_BALL
.2byte ITEM_GREAT_BALL
.2byte ITEM_SODA_POP
@@ -144,14 +144,14 @@ Items_1676FC:: @ 81676FC
release
end
-EventScript_167708:: @ 8167708
- pokemart Items_167718
+TwoIsland_EventScript_ShopExpanded2:: @ 8167708
+ pokemart TwoIsland_Items_ShopExpanded2
msgbox Text_PleaseComeAgain
release
end
.align 2
-Items_167718:: @ 8167718
+TwoIsland_Items_ShopExpanded2:: @ 8167718
.2byte ITEM_ULTRA_BALL
.2byte ITEM_GREAT_BALL
.2byte ITEM_LEMONADE
@@ -162,14 +162,14 @@ Items_167718:: @ 8167718
release
end
-EventScript_167728:: @ 8167728
- pokemart Items_167738
+TwoIsland_EventScript_ShopExpanded3:: @ 8167728
+ pokemart TwoIsland_Items_ShopExpanded3
msgbox Text_PleaseComeAgain
release
end
.align 2
-Items_167738:: @ 8167738
+TwoIsland_Items_ShopExpanded3:: @ 8167738
.2byte ITEM_ULTRA_BALL
.2byte ITEM_REPEAT_BALL
.2byte ITEM_TIMER_BALL
@@ -182,42 +182,42 @@ Items_167738:: @ 8167738
release
end
-TwoIsland_EventScript_16774C:: @ 816774C
- msgbox gUnknown_8181D2F, MSGBOX_NPC
+TwoIsland_EventScript_Sailor:: @ 816774C
+ msgbox TwoIsland_Text_FellowMovedFromCeladonCity, MSGBOX_NPC
end
-TwoIsland_EventScript_167755:: @ 8167755
- msgbox gUnknown_8181DCA, MSGBOX_NPC
+TwoIsland_EventScript_Woman:: @ 8167755
+ msgbox TwoIsland_Text_ShopkeepersBrotherWorksGameCorner, MSGBOX_NPC
end
-TwoIsland_EventScript_16775E:: @ 816775E
+TwoIsland_EventScript_Beauty:: @ 816775E
lock
faceplayer
famechecker FAMECHECKER_BRUNO, 4
- msgbox gUnknown_8181E47
+ msgbox TwoIsland_Text_BrunoCameToIslandWhileBack
release
end
-TwoIsland_EventScript_167777:: @ 8167777
- msgbox gUnknown_8181F28, MSGBOX_NPC
+TwoIsland_EventScript_SuperNerd:: @ 8167777
+ msgbox TwoIsland_Text_BuyRareItemsHere, MSGBOX_NPC
end
-TwoIsland_EventScript_167780:: @ 8167780
- msgbox gUnknown_8181F5D, MSGBOX_NPC
+TwoIsland_EventScript_Boy:: @ 8167780
+ msgbox TwoIsland_Text_OldWomanLivesOutOnCape, MSGBOX_NPC
end
-TwoIsland_EventScript_167789:: @ 8167789
- msgbox gUnknown_8181FCE, MSGBOX_NPC
+TwoIsland_EventScript_LittleBoy:: @ 8167789
+ msgbox TwoIsland_Text_HaveYouTriedJumpingGame, MSGBOX_NPC
end
-TwoIsland_EventScript_167792:: @ 8167792
- msgbox gUnknown_8181A88, MSGBOX_SIGN
+TwoIsland_EventScript_IslandSign:: @ 8167792
+ msgbox TwoIsland_Text_IslandSign, MSGBOX_SIGN
end
-TwoIsland_EventScript_16779B:: @ 816779B
- msgbox gUnknown_8181AA7, MSGBOX_SIGN
+TwoIsland_EventScript_JoyfulGameCornerSign:: @ 816779B
+ msgbox TwoIsland_Text_JoyfulGameCornerSign, MSGBOX_SIGN
end
-TwoIsland_EventScript_1677A4:: @ 81677A4
- msgbox gUnknown_8181AC8, MSGBOX_SIGN
+TwoIsland_EventScript_FastCurrentSign:: @ 81677A4
+ msgbox TwoIsland_Text_DangerFastCurrent, MSGBOX_SIGN
end