script switch/case; name script conditionals

This commit is contained in:
PikalaxALT
2019-10-20 20:38:23 -04:00
parent 2aeefdc5de
commit 6b503e306d
132 changed files with 1559 additions and 1789 deletions
+31 -31
View File
@@ -6,17 +6,17 @@ CinnabarIsland_Gym_MapScript1_16D951:: @ 816D951
checkflag FLAG_DEFEATED_BLAINE
goto_if_eq EventScript_16D991
checkflag FLAG_0x265
call_if 1, EventScript_16D9B0
call_if eq, EventScript_16D9B0
checkflag FLAG_0x267
call_if 1, EventScript_16D9B6
call_if eq, EventScript_16D9B6
checkflag FLAG_0x268
call_if 1, EventScript_16D9BC
call_if eq, EventScript_16D9BC
checkflag FLAG_0x269
call_if 1, EventScript_16D9C2
call_if eq, EventScript_16D9C2
checkflag FLAG_0x26A
call_if 1, EventScript_16D9C8
call_if eq, EventScript_16D9C8
checkflag FLAG_0x26B
call_if 1, EventScript_16D9CE
call_if eq, EventScript_16D9CE
end
EventScript_16D991:: @ 816D991
@@ -56,7 +56,7 @@ CinnabarIsland_Gym_EventScript_16D9D4:: @ 816D9D4
famechecker FAMECHECKER_BLAINE, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
trainerbattle 1, TRAINER_LEADER_BLAINE, 0, Text_199543, Text_1995FA, EventScript_16DA06
checkflag FLAG_GOT_TM38_FROM_BLAINE
goto_if 0, EventScript_16DA34
goto_if lt, EventScript_16DA34
msgbox gUnknown_819971D
release
end
@@ -101,7 +101,7 @@ CinnabarIsland_Gym_EventScript_16DA96:: @ 816DA96
EventScript_16DAB1:: @ 816DAB1
checkflag FLAG_0x267
call_if 0, EventScript_16DABC
call_if lt, EventScript_16DABC
release
end
@@ -117,7 +117,7 @@ CinnabarIsland_Gym_EventScript_16DAC2:: @ 816DAC2
EventScript_16DAEA:: @ 816DAEA
checkflag FLAG_0x269
call_if 0, EventScript_16DAF5
call_if lt, EventScript_16DAF5
release
end
@@ -132,7 +132,7 @@ CinnabarIsland_Gym_EventScript_16DAFB:: @ 816DAFB
EventScript_16DB16:: @ 816DB16
checkflag FLAG_0x26B
call_if 0, EventScript_16DB21
call_if lt, EventScript_16DB21
release
end
@@ -147,7 +147,7 @@ CinnabarIsland_Gym_EventScript_16DB27:: @ 816DB27
EventScript_16DB42:: @ 816DB42
checkflag FLAG_0x265
call_if 0, EventScript_16DB4D
call_if lt, EventScript_16DB4D
release
end
@@ -162,7 +162,7 @@ CinnabarIsland_Gym_EventScript_16DB53:: @ 816DB53
EventScript_16DB6E:: @ 816DB6E
checkflag FLAG_0x268
call_if 0, EventScript_16DB79
call_if lt, EventScript_16DB79
release
end
@@ -177,7 +177,7 @@ CinnabarIsland_Gym_EventScript_16DB7F:: @ 816DB7F
EventScript_16DB9A:: @ 816DB9A
checkflag FLAG_0x26A
call_if 0, EventScript_16DBA5
call_if lt, EventScript_16DBA5
release
end
@@ -270,15 +270,15 @@ EventScript_16DC68:: @ 816DC68
EventScript_16DC6A:: @ 816DC6A
call EventScript_16DC34
checktrainerflag TRAINER_BURGLAR_QUINN
goto_if 0, EventScript_16DC7A
goto_if lt, EventScript_16DC7A
releaseall
end
EventScript_16DC7A:: @ 816DC7A
compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16DCB4
call_if eq, EventScript_16DCB4
compare_var_to_value VAR_0x4001, 1
call_if 1, EventScript_16DCC6
call_if eq, EventScript_16DCC6
textcolor 0
msgbox gUnknown_819983F
trainerbattle 3, TRAINER_BURGLAR_QUINN, 0, Text_199870
@@ -349,15 +349,15 @@ EventScript_16DD31:: @ 816DD31
EventScript_16DD41:: @ 816DD41
call EventScript_16DC34
checktrainerflag TRAINER_SUPER_NERD_AVERY
goto_if 0, EventScript_16DD51
goto_if lt, EventScript_16DD51
releaseall
end
EventScript_16DD51:: @ 816DD51
compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16DD8B
call_if eq, EventScript_16DD8B
compare_var_to_value VAR_0x4001, 1
call_if 1, EventScript_16DD9D
call_if eq, EventScript_16DD9D
textcolor 0
msgbox gUnknown_81998BD
trainerbattle 3, TRAINER_SUPER_NERD_AVERY, 0, Text_1998ED
@@ -437,15 +437,15 @@ EventScript_16DE0F:: @ 816DE0F
EventScript_16DE1F:: @ 816DE1F
call EventScript_16DC34
checktrainerflag TRAINER_BURGLAR_RAMON
goto_if 0, EventScript_16DE2F
goto_if lt, EventScript_16DE2F
releaseall
end
EventScript_16DE2F:: @ 816DE2F
compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16DE69
call_if eq, EventScript_16DE69
compare_var_to_value VAR_0x4001, 1
call_if 1, EventScript_16DE7B
call_if eq, EventScript_16DE7B
textcolor 0
msgbox gUnknown_8199948
trainerbattle 3, TRAINER_BURGLAR_RAMON, 0, Text_199973
@@ -516,15 +516,15 @@ EventScript_16DEE6:: @ 816DEE6
EventScript_16DEF6:: @ 816DEF6
call EventScript_16DC34
checktrainerflag TRAINER_SUPER_NERD_DEREK
goto_if 0, EventScript_16DF06
goto_if lt, EventScript_16DF06
releaseall
end
EventScript_16DF06:: @ 816DF06
compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16DF40
call_if eq, EventScript_16DF40
compare_var_to_value VAR_0x4001, 1
call_if 1, EventScript_16DF52
call_if eq, EventScript_16DF52
textcolor 0
msgbox gUnknown_81999B7
trainerbattle 3, TRAINER_SUPER_NERD_DEREK, 0, Text_1999DB
@@ -595,15 +595,15 @@ EventScript_16DFBD:: @ 816DFBD
EventScript_16DFCD:: @ 816DFCD
call EventScript_16DC34
checktrainerflag TRAINER_BURGLAR_DUSTY
goto_if 0, EventScript_16DFDD
goto_if lt, EventScript_16DFDD
releaseall
end
EventScript_16DFDD:: @ 816DFDD
compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16E017
call_if eq, EventScript_16E017
compare_var_to_value VAR_0x4001, 1
call_if 1, EventScript_16E029
call_if eq, EventScript_16E029
textcolor 0
msgbox gUnknown_8199A7F
trainerbattle 3, TRAINER_BURGLAR_DUSTY, 0, Text_199AB9
@@ -674,15 +674,15 @@ EventScript_16E094:: @ 816E094
EventScript_16E0A4:: @ 816E0A4
call EventScript_16DC34
checktrainerflag TRAINER_SUPER_NERD_ZAC
goto_if 0, EventScript_16E0B4
goto_if lt, EventScript_16E0B4
releaseall
end
EventScript_16E0B4:: @ 816E0B4
compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16E0EE
call_if eq, EventScript_16E0EE
compare_var_to_value VAR_0x4001, 1
call_if 1, EventScript_16E100
call_if eq, EventScript_16E100
textcolor 0
msgbox gUnknown_8199AFC
trainerbattle 3, TRAINER_SUPER_NERD_ZAC, 0, Text_199B16