From 2435bcc09db545d337c2b45a59d5276fa08ffa08 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 17 Oct 2019 21:24:47 -0400 Subject: sys flag rearrange --- data/maps/TwoIsland/scripts.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index a9a42eda5..ba2ee8216 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -11,7 +11,7 @@ TwoIsland_MapScript1_16756A:: @ 816756A EventScript_167576:: @ 8167576 checkflag FLAG_0x844 goto_if_eq EventScript_167597 - checkflag FLAG_0x82C + checkflag FLAG_SYS_GAME_CLEAR goto_if_eq EventScript_1675B8 checkflag FLAG_0x2A3 goto_if_eq EventScript_1675D9 -- cgit v1.2.3 From 4f15cb02d29707bc30a57db725cbea09aec43eb8 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 18 Oct 2019 12:49:59 -0400 Subject: Rename map scene vars and partially document Oak's lab --- data/maps/TwoIsland/scripts.inc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index ba2ee8216..9ccc7f1f5 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -49,21 +49,21 @@ 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 + setvar VAR_MAP_SCENE_TWO_ISLAND, 2 clearflag FLAG_0x07B return EventScript_1675FD:: @ 81675FD - setvar VAR_0x4078, 3 + setvar VAR_MAP_SCENE_TWO_ISLAND, 3 clearflag FLAG_0x07C return EventScript_167606:: @ 8167606 - setvar VAR_0x4078, 4 + setvar VAR_MAP_SCENE_TWO_ISLAND, 4 clearflag FLAG_0x07D return @@ -73,11 +73,11 @@ TwoIsland_EventScript_16760F:: @ 816760F goto_if_eq EventScript_1A7AE0 lock faceplayer - compare_var_to_value VAR_0x4078, 4 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4 goto_if_eq EventScript_167646 - compare_var_to_value VAR_0x4078, 3 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3 goto_if_eq EventScript_16765E - compare_var_to_value VAR_0x4078, 2 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2 goto_if_eq EventScript_167676 goto EventScript_16768E end @@ -121,11 +121,11 @@ EventScript_16768E:: @ 816768E EventScript_1676A6:: @ 81676A6 message Text_1A6211 waitmessage - compare_var_to_value VAR_0x4078, 4 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4 goto_if_eq EventScript_167728 - compare_var_to_value VAR_0x4078, 3 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3 goto_if_eq EventScript_167708 - compare_var_to_value VAR_0x4078, 2 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2 goto_if_eq EventScript_1676EC goto EventScript_1676D3 end -- cgit v1.2.3 From 2ff8af13d5a259fa0ca07afe3ecf4792b6871a80 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sat, 19 Oct 2019 20:30:38 -0400 Subject: Hide/show flags through 07F --- data/maps/TwoIsland/scripts.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index 9ccc7f1f5..5e7753ea9 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -54,17 +54,17 @@ EventScript_1675EE:: @ 81675EE EventScript_1675F4:: @ 81675F4 setvar VAR_MAP_SCENE_TWO_ISLAND, 2 - clearflag FLAG_0x07B + clearflag FLAG_HIDE_TWO_ISLAND_WOMAN return EventScript_1675FD:: @ 81675FD setvar VAR_MAP_SCENE_TWO_ISLAND, 3 - clearflag FLAG_0x07C + clearflag FLAG_HIDE_TWO_ISLAND_BEAUTY return EventScript_167606:: @ 8167606 setvar VAR_MAP_SCENE_TWO_ISLAND, 4 - clearflag FLAG_0x07D + clearflag FLAG_HIDE_TWO_ISLAND_SUPER_NERD return TwoIsland_EventScript_16760F:: @ 816760F -- cgit v1.2.3 From 9d8c5b22506ee867785012db89a9ab1c3006179a Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sat, 19 Oct 2019 22:37:08 -0400 Subject: Two additional script macros --- data/maps/TwoIsland/scripts.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index 5e7753ea9..dffb46302 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -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 -- cgit v1.2.3 From 6b503e306d73c749794cf7b61126287e3941f12f Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 20 Oct 2019 20:38:23 -0400 Subject: script switch/case; name script conditionals --- data/maps/TwoIsland/scripts.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index dffb46302..b09f1b0c0 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -20,27 +20,27 @@ EventScript_167576:: @ 8167576 EventScript_167597:: @ 8167597 checkflag FLAG_0x29D - goto_if 0, EventScript_1675EE + goto_if lt, EventScript_1675EE checkflag FLAG_0x29E - goto_if 0, EventScript_1675F4 + goto_if lt, EventScript_1675F4 checkflag FLAG_0x29F - goto_if 0, EventScript_1675FD + goto_if lt, EventScript_1675FD goto EventScript_167606 end EventScript_1675B8:: @ 81675B8 checkflag FLAG_0x29D - goto_if 0, EventScript_1675EE + goto_if lt, EventScript_1675EE checkflag FLAG_0x2A3 - goto_if 0, EventScript_1675EE + goto_if lt, EventScript_1675EE checkflag FLAG_0x29E - goto_if 0, EventScript_1675F4 + goto_if lt, EventScript_1675F4 goto EventScript_1675FD end EventScript_1675D9:: @ 81675D9 checkflag FLAG_0x29D - goto_if 0, EventScript_1675EE + goto_if lt, EventScript_1675EE goto EventScript_1675F4 end -- cgit v1.2.3 From 9aa5709329f4cbd497d0f21af10218f8a7547151 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 20 Oct 2019 21:24:16 -0400 Subject: use TRUE and FALSE for flag conditionals; more story flags --- data/maps/TwoIsland/scripts.inc | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index b09f1b0c0..409f477d6 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -10,37 +10,37 @@ TwoIsland_MapScript1_16756A:: @ 816756A EventScript_167576:: @ 8167576 checkflag FLAG_0x844 - goto_if_eq EventScript_167597 + goto_if TRUE, EventScript_167597 checkflag FLAG_SYS_GAME_CLEAR - goto_if_eq EventScript_1675B8 + goto_if TRUE, EventScript_1675B8 checkflag FLAG_0x2A3 - goto_if_eq EventScript_1675D9 + goto_if TRUE, EventScript_1675D9 goto EventScript_1675E8 end EventScript_167597:: @ 8167597 checkflag FLAG_0x29D - goto_if lt, EventScript_1675EE + goto_if FALSE, EventScript_1675EE checkflag FLAG_0x29E - goto_if lt, EventScript_1675F4 + goto_if FALSE, EventScript_1675F4 checkflag FLAG_0x29F - goto_if lt, EventScript_1675FD + goto_if FALSE, EventScript_1675FD goto EventScript_167606 end EventScript_1675B8:: @ 81675B8 checkflag FLAG_0x29D - goto_if lt, EventScript_1675EE + goto_if FALSE, EventScript_1675EE checkflag FLAG_0x2A3 - goto_if lt, EventScript_1675EE + goto_if FALSE, EventScript_1675EE checkflag FLAG_0x29E - goto_if lt, EventScript_1675F4 + goto_if FALSE, EventScript_1675F4 goto EventScript_1675FD end EventScript_1675D9:: @ 81675D9 checkflag FLAG_0x29D - goto_if lt, EventScript_1675EE + goto_if FALSE, EventScript_1675EE goto EventScript_1675F4 end @@ -70,21 +70,21 @@ EventScript_167606:: @ 8167606 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_MAP_SCENE_TWO_ISLAND, 4 - goto_if_eq EventScript_167646 + goto_if eq, EventScript_167646 compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3 - goto_if_eq EventScript_16765E + goto_if eq, EventScript_16765E compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2 - goto_if_eq EventScript_167676 + goto_if eq, EventScript_167676 goto EventScript_16768E end EventScript_167646:: @ 8167646 checkflag FLAG_0x2A0 - goto_if_eq EventScript_1676A6 + goto_if TRUE, EventScript_1676A6 setflag FLAG_0x2A0 message Text_181CAE waitmessage @@ -93,7 +93,7 @@ EventScript_167646:: @ 8167646 EventScript_16765E:: @ 816765E checkflag FLAG_0x29F - goto_if_eq EventScript_1676A6 + goto_if TRUE, EventScript_1676A6 setflag FLAG_0x29F message Text_181C77 waitmessage @@ -102,7 +102,7 @@ EventScript_16765E:: @ 816765E EventScript_167676:: @ 8167676 checkflag FLAG_0x29E - goto_if_eq EventScript_1676A6 + goto_if TRUE, EventScript_1676A6 setflag FLAG_0x29E message Text_181B7C waitmessage @@ -111,7 +111,7 @@ EventScript_167676:: @ 8167676 EventScript_16768E:: @ 816768E checkflag FLAG_0x29D - goto_if_eq EventScript_1676A6 + goto_if TRUE, EventScript_1676A6 setflag FLAG_0x29D message Text_181AFE waitmessage @@ -122,11 +122,11 @@ EventScript_1676A6:: @ 81676A6 message Text_1A6211 waitmessage compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4 - goto_if_eq EventScript_167728 + goto_if eq, EventScript_167728 compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3 - goto_if_eq EventScript_167708 + goto_if eq, EventScript_167708 compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2 - goto_if_eq EventScript_1676EC + goto_if eq, EventScript_1676EC goto EventScript_1676D3 end -- cgit v1.2.3 From 3ab70c735e86369dc927beb5cddf7adc2e96afd9 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 20 Oct 2019 22:14:22 -0400 Subject: Story flags through mystic ticket --- data/maps/TwoIsland/scripts.inc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index 409f477d6..1b4f2383a 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -4,7 +4,7 @@ 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 @@ -13,33 +13,33 @@ EventScript_167576:: @ 8167576 goto_if TRUE, EventScript_167597 checkflag FLAG_SYS_GAME_CLEAR goto_if TRUE, EventScript_1675B8 - checkflag FLAG_0x2A3 + checkflag FLAG_RESCUED_LOSTELLE goto_if TRUE, EventScript_1675D9 goto EventScript_1675E8 end EventScript_167597:: @ 8167597 - checkflag FLAG_0x29D + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED goto_if FALSE, EventScript_1675EE - checkflag FLAG_0x29E + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 goto_if FALSE, EventScript_1675F4 - checkflag FLAG_0x29F + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2 goto_if FALSE, EventScript_1675FD goto EventScript_167606 end EventScript_1675B8:: @ 81675B8 - checkflag FLAG_0x29D + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED goto_if FALSE, EventScript_1675EE - checkflag FLAG_0x2A3 + checkflag FLAG_RESCUED_LOSTELLE goto_if FALSE, EventScript_1675EE - checkflag FLAG_0x29E + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 goto_if FALSE, EventScript_1675F4 goto EventScript_1675FD end EventScript_1675D9:: @ 81675D9 - checkflag FLAG_0x29D + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED goto_if FALSE, EventScript_1675EE goto EventScript_1675F4 end @@ -83,36 +83,36 @@ TwoIsland_EventScript_16760F:: @ 816760F end EventScript_167646:: @ 8167646 - checkflag FLAG_0x2A0 + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3 goto_if TRUE, EventScript_1676A6 - setflag FLAG_0x2A0 + setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3 message Text_181CAE waitmessage goto EventScript_167728 end EventScript_16765E:: @ 816765E - checkflag FLAG_0x29F + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2 goto_if TRUE, EventScript_1676A6 - setflag FLAG_0x29F + setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2 message Text_181C77 waitmessage goto EventScript_167708 end EventScript_167676:: @ 8167676 - checkflag FLAG_0x29E + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 goto_if TRUE, EventScript_1676A6 - setflag FLAG_0x29E + setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 message Text_181B7C waitmessage goto EventScript_1676EC end EventScript_16768E:: @ 816768E - checkflag FLAG_0x29D + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED goto_if TRUE, EventScript_1676A6 - setflag FLAG_0x29D + setflag FLAG_TWO_ISLAND_SHOP_INTRODUCED message Text_181AFE waitmessage goto EventScript_1676D3 -- cgit v1.2.3 From 221259d0d6127013c92c1fe7f8bcb794cf0b9149 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 21 Oct 2019 10:42:24 -0400 Subject: sys flags --- data/maps/TwoIsland/scripts.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/maps/TwoIsland/scripts.inc') diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index 1b4f2383a..3d35a89c1 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -9,7 +9,7 @@ TwoIsland_MapScript1_16756A:: @ 816756A end EventScript_167576:: @ 8167576 - checkflag FLAG_0x844 + checkflag FLAG_SYS_CAN_LINK_WITH_RS goto_if TRUE, EventScript_167597 checkflag FLAG_SYS_GAME_CLEAR goto_if TRUE, EventScript_1675B8 -- cgit v1.2.3