diff options
| author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-10-23 09:05:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 09:05:26 -0400 |
| commit | 6e36c229200e083ca005cbc448e99210d111f3b2 (patch) | |
| tree | aec86bd0f081a7ff207f68cba33315991b629be1 /data/maps/TwoIsland/scripts.inc | |
| parent | 4bc284ff2c7d0ec3f24df8d94a77860fbaed588b (diff) | |
| parent | 3efd2e1210b4149628197446d063df0fc11281ab (diff) | |
Merge pull request #130 from PikalaxALT/trainers
Trainers, event flags, mystery_event_msg, map object gfx
Diffstat (limited to 'data/maps/TwoIsland/scripts.inc')
| -rw-r--r-- | data/maps/TwoIsland/scripts.inc | 110 |
1 files changed, 54 insertions, 56 deletions
diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index a9a42eda5..3d35a89c1 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -4,43 +4,43 @@ TwoIsland_MapScripts:: @ 8167564 TwoIsland_MapScript1_16756A:: @ 816756A setworldmapflag FLAG_WORLD_MAP_TWO_ISLAND - setflag FLAG_0x2A2 + setflag FLAG_VISITED_TWO_ISLAND call EventScript_167576 end EventScript_167576:: @ 8167576 - checkflag FLAG_0x844 - goto_if_eq EventScript_167597 - checkflag FLAG_0x82C - goto_if_eq EventScript_1675B8 - checkflag FLAG_0x2A3 - goto_if_eq EventScript_1675D9 + 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_0x29D - goto_if 0, EventScript_1675EE - checkflag FLAG_0x29E - goto_if 0, EventScript_1675F4 - checkflag FLAG_0x29F - goto_if 0, EventScript_1675FD + 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_0x29D - goto_if 0, EventScript_1675EE - checkflag FLAG_0x2A3 - goto_if 0, EventScript_1675EE - checkflag FLAG_0x29E - goto_if 0, EventScript_1675F4 + 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_0x29D - goto_if 0, EventScript_1675EE + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED + goto_if FALSE, EventScript_1675EE goto EventScript_1675F4 end @@ -49,70 +49,70 @@ EventScript_1675E8:: @ 81675E8 end EventScript_1675EE:: @ 81675EE - setvar VAR_0x4078, 1 + setvar VAR_MAP_SCENE_TWO_ISLAND, 1 return EventScript_1675F4:: @ 81675F4 - setvar VAR_0x4078, 2 - clearflag FLAG_0x07B + setvar VAR_MAP_SCENE_TWO_ISLAND, 2 + clearflag FLAG_HIDE_TWO_ISLAND_WOMAN return EventScript_1675FD:: @ 81675FD - setvar VAR_0x4078, 3 - clearflag FLAG_0x07C + setvar VAR_MAP_SCENE_TWO_ISLAND, 3 + clearflag FLAG_HIDE_TWO_ISLAND_BEAUTY return EventScript_167606:: @ 8167606 - setvar VAR_0x4078, 4 - clearflag FLAG_0x07D + 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 + goto_if eq, EventScript_1A7AE0 lock faceplayer - compare_var_to_value VAR_0x4078, 4 - goto_if_eq EventScript_167646 - compare_var_to_value VAR_0x4078, 3 - goto_if_eq EventScript_16765E - compare_var_to_value VAR_0x4078, 2 - goto_if_eq EventScript_167676 + 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_0x2A0 - goto_if_eq EventScript_1676A6 - setflag FLAG_0x2A0 + 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_0x29F - goto_if_eq EventScript_1676A6 - setflag FLAG_0x29F + 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_0x29E - goto_if_eq EventScript_1676A6 - setflag FLAG_0x29E + 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_0x29D - goto_if_eq EventScript_1676A6 - setflag FLAG_0x29D + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED + goto_if TRUE, EventScript_1676A6 + setflag FLAG_TWO_ISLAND_SHOP_INTRODUCED message Text_181AFE waitmessage goto EventScript_1676D3 @@ -121,12 +121,12 @@ EventScript_16768E:: @ 816768E EventScript_1676A6:: @ 81676A6 message Text_1A6211 waitmessage - compare_var_to_value VAR_0x4078, 4 - goto_if_eq EventScript_167728 - compare_var_to_value VAR_0x4078, 3 - goto_if_eq EventScript_167708 - compare_var_to_value VAR_0x4078, 2 - goto_if_eq EventScript_1676EC + 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 @@ -209,9 +209,7 @@ TwoIsland_EventScript_167755:: @ 8167755 TwoIsland_EventScript_16775E:: @ 816775E lock faceplayer - setvar VAR_0x8004, 10 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BRUNO, 4 msgbox gUnknown_8181E47 release end |
