goto_if_eq and switch/case in scripts

This commit is contained in:
PikalaxALT
2019-05-16 13:30:03 -04:00
parent 006881415d
commit a2d1b854d6
150 changed files with 999 additions and 1231 deletions
+2 -2
View File
@@ -1402,8 +1402,8 @@
@ Supplementary @ Supplementary
.macro goto_if_eq dest .macrogoto_if_eq dest
goto_if 1, \dest goto_if_eq \dest
.endm .endm
.macro switch var .macro switch var
+5 -5
View File
@@ -7324,15 +7324,15 @@ EventScript_1A6697:: @ 81A6697
EventScript_1A66BC:: @ 81A66BC EventScript_1A66BC:: @ 81A66BC
copyvar VAR_0x8000, VAR_RESULT copyvar VAR_0x8000, VAR_RESULT
compare_var_to_value VAR_0x8000, 1 compare_var_to_value VAR_0x8000, 1
goto_if 1, EventScript_1A66F9 goto_if_eq EventScript_1A66F9
compare_var_to_value VAR_0x8000, 2 compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_1A6709 goto_if_eq EventScript_1A6709
compare_var_to_value VAR_0x8000, 3 compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_1A6719 goto_if_eq EventScript_1A6719
compare_var_to_value VAR_0x8000, 4 compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_1A6729 goto_if_eq EventScript_1A6729
compare_var_to_value VAR_0x8000, 5 compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_1A6739 goto_if_eq EventScript_1A6739
end end
EventScript_1A66F9:: @ 81A66F9 EventScript_1A66F9:: @ 81A66F9
+10 -14
View File
@@ -26,7 +26,7 @@ EventScript_16523C:: @ 816523C
EventScript_165243:: @ 8165243 EventScript_165243:: @ 8165243
checkflag FLAG_0x2F7 checkflag FLAG_0x2F7
goto_if 1, EventScript_1A77A9 goto_if_eq EventScript_1A77A9
clearflag FLAG_0x09A clearflag FLAG_0x09A
clearflag FLAG_0x848 clearflag FLAG_0x848
return return
@@ -48,19 +48,15 @@ BirthIsland_Exterior_EventScript_165271:: @ 8165271
faceplayer faceplayer
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
special sub_80CCDFC special sub_80CCDFC
waitstate waitstate
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_1652BA
goto_if 1, EventScript_1652BA case 1, EventScript_1652BC
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_1652C0
goto_if 1, EventScript_1652BC case 3, EventScript_1652BE
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_1652C0
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_1652BE
end end
EventScript_1652BA:: @ 81652BA EventScript_1652BA:: @ 81652BA
@@ -101,11 +97,11 @@ EventScript_1652C0:: @ 81652C0
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16533A goto_if_eq EventScript_16533A
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_165348 goto_if_eq EventScript_165348
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_165348 goto_if_eq EventScript_165348
setflag FLAG_0x2E4 setflag FLAG_0x2E4
release release
end end
+8 -14
View File
@@ -8,13 +8,10 @@ BirthIsland_Harbor_EventScript_1653E7:: @ 81653E7
waitmessage waitmessage
setvar VAR_0x8004, 10 setvar VAR_0x8004, 10
multichoice 20, 8, 61, 0 multichoice 20, 8, 61, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_1A91D5
goto_if 1, EventScript_1A91D5 case 1, EventScript_1A90F6
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_1A90F6
goto_if 1, EventScript_1A90F6
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_1A90F6
end end
NavelRock_Harbor_MapScripts:: @ 8165420 NavelRock_Harbor_MapScripts:: @ 8165420
@@ -27,11 +24,8 @@ NavelRock_Harbor_EventScript_165421:: @ 8165421
waitmessage waitmessage
setvar VAR_0x8004, 9 setvar VAR_0x8004, 9
multichoice 20, 8, 61, 0 multichoice 20, 8, 61, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_1A91D5
goto_if 1, EventScript_1A91D5 case 1, EventScript_1A90F6
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_1A90F6
goto_if 1, EventScript_1A90F6
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_1A90F6
end end
@@ -5,16 +5,16 @@ CeladonCity_Condominiums_1F_EventScript_16C321:: @ 816C321
lock lock
faceplayer faceplayer
checkflag FLAG_0x2F8 checkflag FLAG_0x2F8
goto_if 1, EventScript_16C36A goto_if_eq EventScript_16C36A
checkflag FLAG_0x82C checkflag FLAG_0x82C
goto_if 1, EventScript_16C374 goto_if_eq EventScript_16C374
checkflag FLAG_0x2A6 checkflag FLAG_0x2A6
goto_if 1, EventScript_16C36A goto_if_eq EventScript_16C36A
msgbox gUnknown_81960C9 msgbox gUnknown_81960C9
setflag FLAG_0x2A6 setflag FLAG_0x2A6
giveitem ITEM_TEA giveitem ITEM_TEA
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A6BF9 goto_if_eq EventScript_1A6BF9
msgbox gUnknown_8196109 msgbox gUnknown_8196109
release release
end end
@@ -18,7 +18,7 @@ CeladonCity_Condominiums_3F_EventScript_16C3F6:: @ 816C3F6
faceplayer faceplayer
specialvar VAR_RESULT, sub_8088F58 specialvar VAR_RESULT, sub_8088F58
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16C412 goto_if_eq EventScript_16C412
msgbox gUnknown_8196356 msgbox gUnknown_8196356
release release
end end
@@ -33,7 +33,7 @@ EventScript_16C418:: @ 816C418
delay 60 delay 60
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_80CA618 special sub_80CA618
waitstate waitstate
release release
@@ -11,11 +11,11 @@ CeladonCity_Condominiums_RoofRoom_EventScript_16C46D:: @ 816C46D
setvar VAR_0x4001, SPECIES_EEVEE setvar VAR_0x4001, SPECIES_EEVEE
givemon SPECIES_EEVEE, 25, ITEM_NONE, 0, 0, 0 givemon SPECIES_EEVEE, 25, ITEM_NONE, 0, 0, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C4A6 goto_if_eq EventScript_16C4A6
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16C4DA goto_if_eq EventScript_16C4DA
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A927C goto_if_eq EventScript_1A927C
release release
end end
@@ -28,7 +28,7 @@ EventScript_16C4A6:: @ 816C4A6
getspeciesname 0, SPECIES_EEVEE getspeciesname 0, SPECIES_EEVEE
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C514 goto_if_eq EventScript_16C514
call EventScript_1A8C27 call EventScript_1A8C27
call EventScript_1A74EB call EventScript_1A74EB
goto EventScript_16C514 goto EventScript_16C514
@@ -43,7 +43,7 @@ EventScript_16C4DA:: @ 816C4DA
getspeciesname 0, SPECIES_EEVEE getspeciesname 0, SPECIES_EEVEE
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C509 goto_if_eq EventScript_16C509
call EventScript_1A8C33 call EventScript_1A8C33
goto EventScript_16C509 goto EventScript_16C509
end end
@@ -69,34 +69,24 @@ CeladonCity_Condominiums_RoofRoom_EventScript_16C522:: @ 816C522
waitmessage waitmessage
setvar VAR_0x8004, 4 setvar VAR_0x8004, 4
multichoice 0, 0, 43, 0 multichoice 0, 0, 43, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16C5C0
goto_if 1, EventScript_16C5C0 case 1, EventScript_16C5CE
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C5DC
goto_if 1, EventScript_16C5CE case 3, EventScript_16C5EA
compare_var_to_value VAR_0x8000, 2 case 127, EventScript_16C5EA
goto_if 1, EventScript_16C5DC
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_16C5EA
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C5EA
end end
EventScript_16C578:: @ 816C578 EventScript_16C578:: @ 816C578
message Text_1965F4 message Text_1965F4
waitmessage waitmessage
multichoice 0, 0, 43, 0 multichoice 0, 0, 43, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16C5C0
goto_if 1, EventScript_16C5C0 case 1, EventScript_16C5CE
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C5DC
goto_if 1, EventScript_16C5CE case 3, EventScript_16C5EA
compare_var_to_value VAR_0x8000, 2 case 127, EventScript_16C5EA
goto_if 1, EventScript_16C5DC
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_16C5EA
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C5EA
end end
EventScript_16C5C0:: @ 816C5C0 EventScript_16C5C0:: @ 816C5C0
@@ -16,7 +16,7 @@ CeladonCity_DepartmentStore_2F_EventScript_16BB07:: @ 816BB07
CeladonCity_DepartmentStore_2F_EventScript_16BB10:: @ 816BB10 CeladonCity_DepartmentStore_2F_EventScript_16BB10:: @ 816BB10
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -44,7 +44,7 @@ Items_16BB38:: @ 816BB38
CeladonCity_DepartmentStore_2F_EventScript_16BB4E:: @ 816BB4E CeladonCity_DepartmentStore_2F_EventScript_16BB4E:: @ 816BB4E
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -16,7 +16,7 @@ CeladonCity_DepartmentStore_4F_EventScript_16BC01:: @ 816BC01
CeladonCity_DepartmentStore_4F_EventScript_16BC0A:: @ 816BC0A CeladonCity_DepartmentStore_4F_EventScript_16BC0A:: @ 816BC0A
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -16,7 +16,7 @@ CeladonCity_DepartmentStore_5F_EventScript_16BC53:: @ 816BC53
CeladonCity_DepartmentStore_5F_EventScript_16BC5C:: @ 816BC5C CeladonCity_DepartmentStore_5F_EventScript_16BC5C:: @ 816BC5C
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -42,7 +42,7 @@ Items_16BC84:: @ 816BC84
CeladonCity_DepartmentStore_5F_EventScript_16BC96:: @ 816BC96 CeladonCity_DepartmentStore_5F_EventScript_16BC96:: @ 816BC96
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -12,17 +12,12 @@ CeladonCity_DepartmentStore_Elevator_EventScript_16C153:: @ 816C153
waitmessage waitmessage
setvar VAR_0x8004, 3 setvar VAR_0x8004, 3
specialvar VAR_RESULT, sub_80CB328 specialvar VAR_RESULT, sub_80CB328
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16C1B7
goto_if 1, EventScript_16C1B7 case 1, EventScript_16C1C3
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C1CF
goto_if 1, EventScript_16C1C3 case 3, EventScript_16C1DB
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16C1E7
goto_if 1, EventScript_16C1CF
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_16C1DB
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_16C1E7
end end
EventScript_16C1B7:: @ 816C1B7 EventScript_16C1B7:: @ 816C1B7
@@ -53,28 +48,21 @@ EventScript_16C1E7:: @ 816C1E7
end end
EventScript_16C1F3:: @ 816C1F3 EventScript_16C1F3:: @ 816C1F3
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16C2E6
goto_if 1, EventScript_16C2E6 case 1, EventScript_16C2BE
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C296
goto_if 1, EventScript_16C2BE case 3, EventScript_16C26E
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16C246
goto_if 1, EventScript_16C296 case 5, EventScript_16C30E
compare_var_to_value VAR_0x8000, 3 case 127, EventScript_16C30E
goto_if 1, EventScript_16C26E
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_16C246
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16C30E
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C30E
end end
EventScript_16C246:: @ 816C246 EventScript_16C246:: @ 816C246
setvar VAR_0x8006, 4 setvar VAR_0x8006, 4
setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_1F, 255, 6, 1 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_1F, 255, 6, 1
compare_var_to_value VAR_0x403A, 4 compare_var_to_value VAR_0x403A, 4
goto_if 1, EventScript_16C30E goto_if_eq EventScript_16C30E
call EventScript_16C313 call EventScript_16C313
setvar VAR_0x403A, 4 setvar VAR_0x403A, 4
goto EventScript_16C30E goto EventScript_16C30E
@@ -84,7 +72,7 @@ EventScript_16C26E:: @ 816C26E
setvar VAR_0x8006, 5 setvar VAR_0x8006, 5
setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_2F, 255, 6, 1 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_2F, 255, 6, 1
compare_var_to_value VAR_0x403A, 5 compare_var_to_value VAR_0x403A, 5
goto_if 1, EventScript_16C30E goto_if_eq EventScript_16C30E
call EventScript_16C313 call EventScript_16C313
setvar VAR_0x403A, 5 setvar VAR_0x403A, 5
goto EventScript_16C30E goto EventScript_16C30E
@@ -94,7 +82,7 @@ EventScript_16C296:: @ 816C296
setvar VAR_0x8006, 6 setvar VAR_0x8006, 6
setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_3F, 255, 6, 1 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_3F, 255, 6, 1
compare_var_to_value VAR_0x403A, 6 compare_var_to_value VAR_0x403A, 6
goto_if 1, EventScript_16C30E goto_if_eq EventScript_16C30E
call EventScript_16C313 call EventScript_16C313
setvar VAR_0x403A, 6 setvar VAR_0x403A, 6
goto EventScript_16C30E goto EventScript_16C30E
@@ -104,7 +92,7 @@ EventScript_16C2BE:: @ 816C2BE
setvar VAR_0x8006, 7 setvar VAR_0x8006, 7
setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_4F, 255, 6, 1 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_4F, 255, 6, 1
compare_var_to_value VAR_0x403A, 7 compare_var_to_value VAR_0x403A, 7
goto_if 1, EventScript_16C30E goto_if_eq EventScript_16C30E
call EventScript_16C313 call EventScript_16C313
setvar VAR_0x403A, 7 setvar VAR_0x403A, 7
goto EventScript_16C30E goto EventScript_16C30E
@@ -114,7 +102,7 @@ EventScript_16C2E6:: @ 816C2E6
setvar VAR_0x8006, 8 setvar VAR_0x8006, 8
setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_5F, 255, 6, 1 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_5F, 255, 6, 1
compare_var_to_value VAR_0x403A, 8 compare_var_to_value VAR_0x403A, 8
goto_if 1, EventScript_16C30E goto_if_eq EventScript_16C30E
call EventScript_16C313 call EventScript_16C313
setvar VAR_0x403A, 8 setvar VAR_0x403A, 8
goto EventScript_16C30E goto EventScript_16C30E
@@ -4,13 +4,13 @@ CeladonCity_DepartmentStore_Roof_MapScripts:: @ 816BCCC
CeladonCity_DepartmentStore_Roof_EventScript_16BCCD:: @ 816BCCD CeladonCity_DepartmentStore_Roof_EventScript_16BCCD:: @ 816BCCD
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
call EventScript_16BCF6 call EventScript_16BCF6
compare_var_to_value VAR_0x4001, 0 compare_var_to_value VAR_0x4001, 0
goto_if 1, EventScript_16C00E goto_if_eq EventScript_16C00E
goto EventScript_16BD3E goto EventScript_16BD3E
end end
@@ -42,120 +42,87 @@ EventScript_16BD38:: @ 816BD38
EventScript_16BD3E:: @ 816BD3E EventScript_16BD3E:: @ 816BD3E
msgbox gUnknown_8195D22, MSGBOX_YESNO msgbox gUnknown_8195D22, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C00C goto_if_eq EventScript_16C00C
textcolor 3 textcolor 3
message Text_195D5F message Text_195D5F
waitmessage waitmessage
textcolor 1 textcolor 1
copyvar VAR_0x8000, VAR_0x4001 switch VAR_0x4001
compare_var_to_value VAR_0x8000, 1 case 1, EventScript_16BDAE
goto_if 1, EventScript_16BDAE case 2, EventScript_16BDDA
compare_var_to_value VAR_0x8000, 2 case 3, EventScript_16BE06
goto_if 1, EventScript_16BDDA case 4, EventScript_16BE3D
compare_var_to_value VAR_0x8000, 3 case 5, EventScript_16BE69
goto_if 1, EventScript_16BE06 case 6, EventScript_16BEA0
compare_var_to_value VAR_0x8000, 4 case 7, EventScript_16BED7
goto_if 1, EventScript_16BE3D
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16BE69
compare_var_to_value VAR_0x8000, 6
goto_if 1, EventScript_16BEA0
compare_var_to_value VAR_0x8000, 7
goto_if 1, EventScript_16BED7
end end
EventScript_16BDAE:: @ 816BDAE EventScript_16BDAE:: @ 816BDAE
multichoice 0, 0, 32, 0 multichoice 0, 0, 32, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF19
goto_if 1, EventScript_16BF19 case 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16C00C
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BDDA:: @ 816BDDA EventScript_16BDDA:: @ 816BDDA
multichoice 0, 0, 33, 0 multichoice 0, 0, 33, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF3A
goto_if 1, EventScript_16BF3A case 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16C00C
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BE06:: @ 816BE06 EventScript_16BE06:: @ 816BE06
multichoice 0, 0, 34, 0 multichoice 0, 0, 34, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF19
goto_if 1, EventScript_16BF19 case 1, EventScript_16BF3A
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C00C
goto_if 1, EventScript_16BF3A case 127, EventScript_16C00C
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BE3D:: @ 816BE3D EventScript_16BE3D:: @ 816BE3D
multichoice 0, 0, 35, 0 multichoice 0, 0, 35, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF5B
goto_if 1, EventScript_16BF5B case 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16C00C
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BE69:: @ 816BE69 EventScript_16BE69:: @ 816BE69
multichoice 0, 0, 36, 0 multichoice 0, 0, 36, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF19
goto_if 1, EventScript_16BF19 case 1, EventScript_16BF5B
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C00C
goto_if 1, EventScript_16BF5B case 127, EventScript_16C00C
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BEA0:: @ 816BEA0 EventScript_16BEA0:: @ 816BEA0
multichoice 0, 0, 37, 0 multichoice 0, 0, 37, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF3A
goto_if 1, EventScript_16BF3A case 1, EventScript_16BF5B
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C00C
goto_if 1, EventScript_16BF5B case 127, EventScript_16C00C
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BED7:: @ 816BED7 EventScript_16BED7:: @ 816BED7
multichoice 0, 0, 38, 0 multichoice 0, 0, 38, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16BF19
goto_if 1, EventScript_16BF19 case 1, EventScript_16BF3A
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16BF5B
goto_if 1, EventScript_16BF3A case 3, EventScript_16C00C
compare_var_to_value VAR_0x8000, 2 case 127, EventScript_16C00C
goto_if 1, EventScript_16BF5B
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_16C00C
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C00C
end end
EventScript_16BF19:: @ 816BF19 EventScript_16BF19:: @ 816BF19
setvar VAR_0x8008, ITEM_FRESH_WATER setvar VAR_0x8008, ITEM_FRESH_WATER
setvar VAR_0x8009, ITEM_TM16 setvar VAR_0x8009, ITEM_TM16
checkflag FLAG_0x296 checkflag FLAG_0x296
goto_if 1, EventScript_16C018 goto_if_eq EventScript_16C018
msgbox gUnknown_8195D75 msgbox gUnknown_8195D75
goto EventScript_16BF7C goto EventScript_16BF7C
end end
@@ -164,7 +131,7 @@ EventScript_16BF3A:: @ 816BF3A
setvar VAR_0x8008, ITEM_SODA_POP setvar VAR_0x8008, ITEM_SODA_POP
setvar VAR_0x8009, ITEM_TM20 setvar VAR_0x8009, ITEM_TM20
checkflag FLAG_0x295 checkflag FLAG_0x295
goto_if 1, EventScript_16C018 goto_if_eq EventScript_16C018
msgbox gUnknown_8195E33 msgbox gUnknown_8195E33
goto EventScript_16BF7C goto EventScript_16BF7C
end end
@@ -173,7 +140,7 @@ EventScript_16BF5B:: @ 816BF5B
setvar VAR_0x8008, ITEM_LEMONADE setvar VAR_0x8008, ITEM_LEMONADE
setvar VAR_0x8009, ITEM_TM33 setvar VAR_0x8009, ITEM_TM33
checkflag FLAG_0x294 checkflag FLAG_0x294
goto_if 1, EventScript_16C018 goto_if_eq EventScript_16C018
msgbox gUnknown_8195EBF msgbox gUnknown_8195EBF
goto EventScript_16BF7C goto EventScript_16BF7C
end end
@@ -184,7 +151,7 @@ EventScript_16BF7C:: @ 816BF7C
removeitem VAR_0x8008, 1 removeitem VAR_0x8008, 1
checkitemspace VAR_0x8009, 1 checkitemspace VAR_0x8009, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C002 goto_if_eq EventScript_16C002
additem VAR_0x8009, 1 additem VAR_0x8009, 1
textcolor 3 textcolor 3
playfanfare MUS_FANFA1 playfanfare MUS_FANFA1
@@ -255,13 +222,10 @@ CeladonCity_DepartmentStore_Roof_EventScript_16C034:: @ 816C034
EventScript_16C045:: @ 816C045 EventScript_16C045:: @ 816C045
multichoice 12, 0, 26, 0 multichoice 12, 0, 26, 0
copyvar VAR_0x4001, VAR_RESULT copyvar VAR_0x4001, VAR_RESULT
copyvar VAR_0x8000, VAR_0x4001 switch VAR_0x4001
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16C083
goto_if 1, EventScript_16C083 case 1, EventScript_16C094
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C0A5
goto_if 1, EventScript_16C094
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16C0A5
msgbox gUnknown_81960AE msgbox gUnknown_81960AE
goto EventScript_16C14D goto EventScript_16C14D
end end
@@ -298,10 +262,10 @@ EventScript_16C0C4:: @ 816C0C4
EventScript_16C0CB:: @ 816C0CB EventScript_16C0CB:: @ 816C0CB
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C131 goto_if_eq EventScript_16C131
checkitemspace VAR_0x4000, 1 checkitemspace VAR_0x4000, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C13F goto_if_eq EventScript_16C13F
compare_var_to_value VAR_0x4001, 0 compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16C0B6 call_if 1, EventScript_16C0B6
compare_var_to_value VAR_0x4001, 1 compare_var_to_value VAR_0x4001, 1
+15 -19
View File
@@ -22,7 +22,7 @@ CeladonCity_GameCorner_EventScript_16C684:: @ 816C684
CeladonCity_GameCorner_EventScript_16C68D:: @ 816C68D CeladonCity_GameCorner_EventScript_16C68D:: @ 816C68D
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
showmoneybox 0, 0, 0 showmoneybox 0, 0, 0
@@ -31,24 +31,20 @@ CeladonCity_GameCorner_EventScript_16C68D:: @ 816C68D
waitmessage waitmessage
multichoice 13, 0, 27, 0 multichoice 13, 0, 27, 0
copyvar VAR_0x8009, VAR_RESULT copyvar VAR_0x8009, VAR_RESULT
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16C6E6
goto_if 1, EventScript_16C6E6 case 1, EventScript_16C6E6
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16C782
goto_if 1, EventScript_16C6E6 case 127, EventScript_16C782
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16C782
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16C782
end end
EventScript_16C6E6:: @ 816C6E6 EventScript_16C6E6:: @ 816C6E6
checkflag FLAG_0x243 checkflag FLAG_0x243
goto_if 0, EventScript_16C790 goto_if 0, EventScript_16C790
compare_var_to_value VAR_0x8009, 0 compare_var_to_value VAR_0x8009, 0
goto_if 1, EventScript_16C734 goto_if_eq EventScript_16C734
compare_var_to_value VAR_0x8009, 1 compare_var_to_value VAR_0x8009, 1
goto_if 1, EventScript_16C706 goto_if_eq EventScript_16C706
end end
EventScript_16C706:: @ 816C706 EventScript_16C706:: @ 816C706
@@ -57,7 +53,7 @@ EventScript_16C706:: @ 816C706
goto_if 4, EventScript_16C79E goto_if 4, EventScript_16C79E
checkmoney 10000, 0 checkmoney 10000, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C7AC goto_if_eq EventScript_16C7AC
givecoins 500 givecoins 500
takemoney 10000, 0 takemoney 10000, 0
goto EventScript_16C762 goto EventScript_16C762
@@ -69,7 +65,7 @@ EventScript_16C734:: @ 816C734
goto_if 4, EventScript_16C79E goto_if 4, EventScript_16C79E
checkmoney 1000, 0 checkmoney 1000, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C7AC goto_if_eq EventScript_16C7AC
givecoins 50 givecoins 50
takemoney 1000, 0 takemoney 1000, 0
goto EventScript_16C762 goto EventScript_16C762
@@ -136,7 +132,7 @@ CeladonCity_GameCorner_EventScript_16C7E7:: @ 816C7E7
lock lock
faceplayer faceplayer
checkflag FLAG_0x26E checkflag FLAG_0x26E
goto_if 1, EventScript_16C849 goto_if_eq EventScript_16C849
msgbox gUnknown_8196AF3 msgbox gUnknown_8196AF3
checkflag FLAG_0x243 checkflag FLAG_0x243
goto_if 0, EventScript_16C839 goto_if 0, EventScript_16C839
@@ -172,7 +168,7 @@ CeladonCity_GameCorner_EventScript_16C857:: @ 816C857
lock lock
faceplayer faceplayer
checkflag FLAG_0x4B3 checkflag FLAG_0x4B3
goto_if 1, EventScript_16C870 goto_if_eq EventScript_16C870
msgbox gUnknown_8196BAD msgbox gUnknown_8196BAD
goto EventScript_16C7CA goto EventScript_16C7CA
end end
@@ -200,7 +196,7 @@ CeladonCity_GameCorner_EventScript_16C89E:: @ 816C89E
lock lock
faceplayer faceplayer
checkflag FLAG_0x26F checkflag FLAG_0x26F
goto_if 1, EventScript_16C8F0 goto_if_eq EventScript_16C8F0
msgbox gUnknown_8196D2B msgbox gUnknown_8196D2B
checkflag FLAG_0x243 checkflag FLAG_0x243
goto_if 0, EventScript_16C839 goto_if 0, EventScript_16C839
@@ -230,7 +226,7 @@ CeladonCity_GameCorner_EventScript_16C8FE:: @ 816C8FE
lock lock
faceplayer faceplayer
checkflag FLAG_0x270 checkflag FLAG_0x270
goto_if 1, EventScript_16C950 goto_if_eq EventScript_16C950
msgbox gUnknown_8196DB7 msgbox gUnknown_8196DB7
checkflag FLAG_0x243 checkflag FLAG_0x243
goto_if 0, EventScript_16C839 goto_if 0, EventScript_16C839
@@ -271,7 +267,7 @@ EventScript_16C96C:: @ 816C96C
goto_if 0, EventScript_16CAA0 goto_if 0, EventScript_16CAA0
msgbox gUnknown_8196F46, MSGBOX_YESNO msgbox gUnknown_8196F46, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16C96A goto_if_eq EventScript_16C96A
setfieldeffectarg 0, 255 setfieldeffectarg 0, 255
setfieldeffectarg 1, 10 setfieldeffectarg 1, 10
setfieldeffectarg 2, 14 setfieldeffectarg 2, 14
@@ -16,7 +16,7 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CB88:: @ 816CB88
goto_if 0, EventScript_16CD99 goto_if 0, EventScript_16CD99
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
showcoinsbox 0, 0 showcoinsbox 0, 0
msgbox gUnknown_8197057 msgbox gUnknown_8197057
goto EventScript_16CBB2 goto EventScript_16CBB2
@@ -26,21 +26,14 @@ EventScript_16CBB2:: @ 816CBB2
message Text_19707A message Text_19707A
waitmessage waitmessage
multichoice 11, 0, 14, 0 multichoice 11, 0, 14, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16CC15
goto_if 1, EventScript_16CC15 case 1, EventScript_16CC25
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16CC35
goto_if 1, EventScript_16CC25 case 3, EventScript_16CC45
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16CC55
goto_if 1, EventScript_16CC35 case 5, EventScript_16CC10
compare_var_to_value VAR_0x8000, 3 case 127, EventScript_16CC10
goto_if 1, EventScript_16CC45
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_16CC55
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16CC10
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16CC10
end end
EventScript_16CC10:: @ 816CC10 EventScript_16CC10:: @ 816CC10
@@ -82,24 +75,18 @@ EventScript_16CC65:: @ 816CC65
getspeciesname 0, VAR_0x4001 getspeciesname 0, VAR_0x4001
msgbox gUnknown_819709D, MSGBOX_YESNO msgbox gUnknown_819709D, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16CC10 goto_if_eq EventScript_16CC10
checkcoins VAR_RESULT checkcoins VAR_RESULT
compare_var_to_var VAR_RESULT, VAR_0x4002 compare_var_to_var VAR_RESULT, VAR_0x4002
goto_if 0, EventScript_16CDA5 goto_if 0, EventScript_16CDA5
textcolor 3 textcolor 3
copyvar VAR_0x8000, VAR_0x4001 switch VAR_0x4001
compare_var_to_value VAR_0x8000, SPECIES_ABRA case SPECIES_ABRA, EventScript_16CCD4
goto_if 1, EventScript_16CCD4 case SPECIES_CLEFAIRY, EventScript_16CCE9
compare_var_to_value VAR_0x8000, SPECIES_CLEFAIRY case SPECIES_DRATINI, EventScript_16CCFE
goto_if 1, EventScript_16CCE9 case SPECIES_SCYTHER, EventScript_16CD13
compare_var_to_value VAR_0x8000, SPECIES_DRATINI case SPECIES_PORYGON, EventScript_16CD28
goto_if 1, EventScript_16CCFE case SPECIES_PINSIR, EventScript_16CD3D
compare_var_to_value VAR_0x8000, SPECIES_SCYTHER
goto_if 1, EventScript_16CD13
compare_var_to_value VAR_0x8000, SPECIES_PORYGON
goto_if 1, EventScript_16CD28
compare_var_to_value VAR_0x8000, SPECIES_PINSIR
goto_if 1, EventScript_16CD3D
end end
EventScript_16CCD4:: @ 816CCD4 EventScript_16CCD4:: @ 816CCD4
@@ -134,11 +121,11 @@ EventScript_16CD3D:: @ 816CD3D
EventScript_16CD52:: @ 816CD52 EventScript_16CD52:: @ 816CD52
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16CDB3 goto_if_eq EventScript_16CDB3
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16CDE0 goto_if_eq EventScript_16CDE0
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_16CD74 goto_if_eq EventScript_16CD74
end end
EventScript_16CD74:: @ 816CD74 EventScript_16CD74:: @ 816CD74
@@ -177,7 +164,7 @@ EventScript_16CDB3:: @ 816CDB3
waitfanfare waitfanfare
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16CD83 goto_if_eq EventScript_16CD83
goto EventScript_16CC10 goto EventScript_16CC10
end end
@@ -191,7 +178,7 @@ EventScript_16CDE0:: @ 816CDE0
waitfanfare waitfanfare
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16CE12 goto_if_eq EventScript_16CE12
call EventScript_1A8C33 call EventScript_1A8C33
goto EventScript_16CE12 goto EventScript_16CE12
end end
@@ -208,7 +195,7 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CE1D:: @ 816CE1D
goto_if 0, EventScript_16CD99 goto_if 0, EventScript_16CD99
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
showcoinsbox 0, 0 showcoinsbox 0, 0
msgbox gUnknown_8197057 msgbox gUnknown_8197057
goto EventScript_16CE47 goto EventScript_16CE47
@@ -218,21 +205,14 @@ EventScript_16CE47:: @ 816CE47
message Text_19707A message Text_19707A
waitmessage waitmessage
multichoice 11, 0, 30, 0 multichoice 11, 0, 30, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16CEA5
goto_if 1, EventScript_16CEA5 case 1, EventScript_16CEB9
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16CECD
goto_if 1, EventScript_16CEB9 case 3, EventScript_16CEE1
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16CEF5
goto_if 1, EventScript_16CECD case 5, EventScript_16CC10
compare_var_to_value VAR_0x8000, 3 case 127, EventScript_16CC10
goto_if 1, EventScript_16CEE1
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_16CEF5
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16CC10
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16CC10
end end
EventScript_16CEA5:: @ 816CEA5 EventScript_16CEA5:: @ 816CEA5
@@ -273,7 +253,7 @@ EventScript_16CEF5:: @ 816CEF5
EventScript_16CF09:: @ 816CF09 EventScript_16CF09:: @ 816CF09
msgbox gUnknown_81970B2, MSGBOX_YESNO msgbox gUnknown_81970B2, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16CC10 goto_if_eq EventScript_16CC10
goto EventScript_16CF3F goto EventScript_16CF3F
end end
@@ -281,7 +261,7 @@ EventScript_16CF22:: @ 816CF22
getitemname 0, VAR_0x4001 getitemname 0, VAR_0x4001
msgbox gUnknown_819709D, MSGBOX_YESNO msgbox gUnknown_819709D, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16CC10 goto_if_eq EventScript_16CC10
goto EventScript_16CF3F goto EventScript_16CF3F
end end
@@ -292,7 +272,7 @@ EventScript_16CF3F:: @ 816CF3F
goto_if 0, EventScript_16CDA5 goto_if 0, EventScript_16CDA5
checkitemspace VAR_0x4001, 1 checkitemspace VAR_0x4001, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16CF79 goto_if_eq EventScript_16CF79
takecoins VAR_0x4002 takecoins VAR_0x4002
updatecoinsbox 0, 5 updatecoinsbox 0, 5
giveitem VAR_0x4001 giveitem VAR_0x4001
@@ -313,7 +293,7 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CF88:: @ 816CF88
goto_if 0, EventScript_16CD99 goto_if 0, EventScript_16CD99
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
showcoinsbox 0, 0 showcoinsbox 0, 0
msgbox gUnknown_8197057 msgbox gUnknown_8197057
goto EventScript_16CFB2 goto EventScript_16CFB2
@@ -323,21 +303,14 @@ EventScript_16CFB2:: @ 816CFB2
message Text_19707A message Text_19707A
waitmessage waitmessage
multichoice 10, 0, 41, 0 multichoice 10, 0, 41, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16D010
goto_if 1, EventScript_16D010 case 1, EventScript_16D020
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16D030
goto_if 1, EventScript_16D020 case 3, EventScript_16D040
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16D050
goto_if 1, EventScript_16D030 case 5, EventScript_16CC10
compare_var_to_value VAR_0x8000, 3 case 127, EventScript_16CC10
goto_if 1, EventScript_16D040
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_16D050
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16CC10
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16CC10
end end
EventScript_16D010:: @ 816D010 EventScript_16D010:: @ 816D010
+2 -2
View File
@@ -31,7 +31,7 @@ EventScript_16D0C6:: @ 816D0C6
msgbox gUnknown_8197327 msgbox gUnknown_8197327
checkitemspace ITEM_TM19, 1 checkitemspace ITEM_TM19, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D107 goto_if_eq EventScript_16D107
additem ITEM_TM19, 1 additem ITEM_TM19, 1
loadword 0, gUnknown_81973BA loadword 0, gUnknown_81973BA
setorcopyvar VAR_0x8000, ITEM_TM19 setorcopyvar VAR_0x8000, ITEM_TM19
@@ -92,7 +92,7 @@ CeladonCity_Gym_EventScript_16D1B5:: @ 816D1B5
CeladonCity_Gym_EventScript_16D1CC:: @ 816D1CC CeladonCity_Gym_EventScript_16D1CC:: @ 816D1CC
lockall lockall
checkflag FLAG_0x823 checkflag FLAG_0x823
goto_if 1, EventScript_16D1E0 goto_if_eq EventScript_16D1E0
msgbox gUnknown_8197874 msgbox gUnknown_8197874
releaseall releaseall
end end
+2 -2
View File
@@ -13,11 +13,11 @@ CeladonCity_Restaurant_EventScript_16D1FD:: @ 816D1FD
lock lock
faceplayer faceplayer
checkflag FLAG_0x243 checkflag FLAG_0x243
goto_if 1, EventScript_16D24B goto_if_eq EventScript_16D24B
msgbox gUnknown_81979C1 msgbox gUnknown_81979C1
checkitemspace ITEM_COIN_CASE, 1 checkitemspace ITEM_COIN_CASE, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D241 goto_if_eq EventScript_16D241
additem ITEM_COIN_CASE, 1 additem ITEM_COIN_CASE, 1
giveitemfanfaremsg gUnknown_8197A38, ITEM_COIN_CASE giveitemfanfaremsg gUnknown_8197A38, ITEM_COIN_CASE
setflag FLAG_0x243 setflag FLAG_0x243
+4 -4
View File
@@ -27,7 +27,7 @@ EventScript_1624F1:: @ 81624F1
CeruleanCave_B1F_EventScript_1624F5:: @ 81624F5 CeruleanCave_B1F_EventScript_1624F5:: @ 81624F5
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
@@ -46,11 +46,11 @@ CeruleanCave_B1F_EventScript_1624F5:: @ 81624F5
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_162558 goto_if_eq EventScript_162558
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_162561 goto_if_eq EventScript_162561
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_162561 goto_if_eq EventScript_162561
setflag FLAG_0x2BC setflag FLAG_0x2BC
release release
end end
+3 -3
View File
@@ -174,7 +174,7 @@ CeruleanCity_EventScript_166603:: @ 8166603
lock lock
faceplayer faceplayer
checktrainerflag FLAG_0x163 checktrainerflag FLAG_0x163
goto_if 1, EventScript_16662E goto_if_eq EventScript_16662E
message Text_17EE0E message Text_17EE0E
waitmessage waitmessage
playbgm BGM_FRLG_SUSPICIOUS_EYE, 0 playbgm BGM_FRLG_SUSPICIOUS_EYE, 0
@@ -188,7 +188,7 @@ EventScript_16662E:: @ 816662E
msgbox gUnknown_817EE9C msgbox gUnknown_817EE9C
checkitemspace ITEM_TM28, 1 checkitemspace ITEM_TM28, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_166677 goto_if_eq EventScript_166677
additem ITEM_TM28, 1 additem ITEM_TM28, 1
giveitemfanfaremsg gUnknown_817EEBF, ITEM_TM28 giveitemfanfaremsg gUnknown_817EEBF, ITEM_TM28
msgbox gUnknown_817EEED msgbox gUnknown_817EEED
@@ -249,7 +249,7 @@ CeruleanCity_EventScript_1666FE:: @ 81666FE
lock lock
faceplayer faceplayer
checkflag FLAG_0x234 checkflag FLAG_0x234
goto_if 1, EventScript_166713 goto_if_eq EventScript_166713
msgbox gUnknown_817F01D msgbox gUnknown_817F01D
release release
end end
+7 -10
View File
@@ -5,20 +5,17 @@ CeruleanCity_BikeShop_EventScript_16ABBD:: @ 816ABBD
lock lock
faceplayer faceplayer
checkflag FLAG_0x271 checkflag FLAG_0x271
goto_if 1, EventScript_16AC58 goto_if_eq EventScript_16AC58
checkflag FLAG_0x241 checkflag FLAG_0x241
goto_if 1, EventScript_16AC22 goto_if_eq EventScript_16AC22
showmoneybox 0, 0, 0 showmoneybox 0, 0, 0
message Text_192755 message Text_192755
waitmessage waitmessage
multichoice 11, 0, 13, 0 multichoice 11, 0, 13, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16AC07
goto_if 1, EventScript_16AC07 case 1, EventScript_16AC15
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16AC15
goto_if 1, EventScript_16AC15
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16AC15
end end
EventScript_16AC07:: @ 816AC07 EventScript_16AC07:: @ 816AC07
@@ -62,7 +59,7 @@ CeruleanCity_BikeShop_EventScript_16AC75:: @ 816AC75
lock lock
faceplayer faceplayer
checkflag FLAG_0x271 checkflag FLAG_0x271
goto_if 1, EventScript_16AC8A goto_if_eq EventScript_16AC8A
msgbox gUnknown_8192937 msgbox gUnknown_8192937
release release
end end
+3 -3
View File
@@ -28,7 +28,7 @@ EventScript_16AAF9:: @ 816AAF9
msgbox gUnknown_81922F7 msgbox gUnknown_81922F7
checkitemspace ITEM_TM03, 1 checkitemspace ITEM_TM03, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AB3A goto_if_eq EventScript_16AB3A
additem ITEM_TM03, 1 additem ITEM_TM03, 1
giveitemfanfaremsg gUnknown_81923F1, ITEM_TM03 giveitemfanfaremsg gUnknown_81923F1, ITEM_TM03
setflag FLAG_0x297 setflag FLAG_0x297
@@ -58,7 +58,7 @@ CeruleanCity_Gym_EventScript_16AB7F:: @ 816AB7F
lock lock
faceplayer faceplayer
checkflag FLAG_0x4B1 checkflag FLAG_0x4B1
goto_if 1, EventScript_16AB94 goto_if_eq EventScript_16AB94
msgbox gUnknown_81925AC msgbox gUnknown_81925AC
release release
end end
@@ -71,7 +71,7 @@ EventScript_16AB94:: @ 816AB94
CeruleanCity_Gym_EventScript_16AB9E:: @ 816AB9E CeruleanCity_Gym_EventScript_16AB9E:: @ 816AB9E
lockall lockall
checkflag FLAG_0x821 checkflag FLAG_0x821
goto_if 1, EventScript_16ABB2 goto_if_eq EventScript_16ABB2
msgbox gUnknown_81926E1 msgbox gUnknown_81926E1
releaseall releaseall
end end
+22 -42
View File
@@ -10,27 +10,17 @@ CeruleanCity_House1_EventScript_16A7F0:: @ 816A7F0
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
special sub_80CB7C4 special sub_80CB7C4
waitstate waitstate
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16A8FB
goto_if 1, EventScript_16A8FB case 1, EventScript_16A909
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16A917
goto_if 1, EventScript_16A909 case 3, EventScript_16A925
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16A933
goto_if 1, EventScript_16A917 case 5, EventScript_16A941
compare_var_to_value VAR_0x8000, 3 case 6, EventScript_16A94F
goto_if 1, EventScript_16A925 case 7, EventScript_16A95D
compare_var_to_value VAR_0x8000, 4 case 8, EventScript_16A96B
goto_if 1, EventScript_16A933 case 127, EventScript_16A96B
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16A941
compare_var_to_value VAR_0x8000, 6
goto_if 1, EventScript_16A94F
compare_var_to_value VAR_0x8000, 7
goto_if 1, EventScript_16A95D
compare_var_to_value VAR_0x8000, 8
goto_if 1, EventScript_16A96B
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16A96B
end end
EventScript_16A87D:: @ 816A87D EventScript_16A87D:: @ 816A87D
@@ -38,27 +28,17 @@ EventScript_16A87D:: @ 816A87D
waitmessage waitmessage
special sub_80CBC5C special sub_80CBC5C
waitstate waitstate
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16A8FB
goto_if 1, EventScript_16A8FB case 1, EventScript_16A909
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16A917
goto_if 1, EventScript_16A909 case 3, EventScript_16A925
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16A933
goto_if 1, EventScript_16A917 case 5, EventScript_16A941
compare_var_to_value VAR_0x8000, 3 case 6, EventScript_16A94F
goto_if 1, EventScript_16A925 case 7, EventScript_16A95D
compare_var_to_value VAR_0x8000, 4 case 8, EventScript_16A96B
goto_if 1, EventScript_16A933 case 127, EventScript_16A96B
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_16A941
compare_var_to_value VAR_0x8000, 6
goto_if 1, EventScript_16A94F
compare_var_to_value VAR_0x8000, 7
goto_if 1, EventScript_16A95D
compare_var_to_value VAR_0x8000, 8
goto_if 1, EventScript_16A96B
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16A96B
end end
EventScript_16A8FB:: @ 816A8FB EventScript_16A8FB:: @ 816A8FB
+1 -1
View File
@@ -5,7 +5,7 @@ CeruleanCity_House2_EventScript_16A976:: @ 816A976
lock lock
faceplayer faceplayer
checkflag FLAG_0x23F checkflag FLAG_0x23F
goto_if 1, EventScript_16A98B goto_if_eq EventScript_16A98B
msgbox gUnknown_8191E13 msgbox gUnknown_8191E13
release release
end end
+2 -2
View File
@@ -11,10 +11,10 @@ CeruleanCity_House3_EventScript_16A9B1:: @ 816A9B1
setvar VAR_0x8008, 1 setvar VAR_0x8008, 1
call EventScript_1A8CAD call EventScript_1A8CAD
checkflag FLAG_0x24A checkflag FLAG_0x24A
goto_if 1, EventScript_16AA23 goto_if_eq EventScript_16AA23
msgbox gUnknown_81A59FE, MSGBOX_YESNO msgbox gUnknown_81A59FE, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AA0B goto_if_eq EventScript_16AA0B
call EventScript_1A8CBD call EventScript_1A8CBD
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 4, EventScript_16AA0B goto_if 4, EventScript_16AA0B
+12 -12
View File
@@ -4,25 +4,25 @@ CeruleanCity_House4_MapScripts:: @ 816ACEE
CeruleanCity_House4_EventScript_16ACEF:: @ 816ACEF CeruleanCity_House4_EventScript_16ACEF:: @ 816ACEF
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
specialvar VAR_0x8004, sub_8146CE8 specialvar VAR_0x8004, sub_8146CE8
copyvar VAR_0x8008, VAR_RESULT copyvar VAR_0x8008, VAR_RESULT
compare_var_to_value VAR_0x8004, 0 compare_var_to_value VAR_0x8004, 0
goto_if 1, EventScript_16AD59 goto_if_eq EventScript_16AD59
compare_var_to_value VAR_0x8004, 1 compare_var_to_value VAR_0x8004, 1
goto_if 1, EventScript_16AD63 goto_if_eq EventScript_16AD63
compare_var_to_value VAR_0x8004, 2 compare_var_to_value VAR_0x8004, 2
goto_if 1, EventScript_16AD89 goto_if_eq EventScript_16AD89
compare_var_to_value VAR_0x8004, 3 compare_var_to_value VAR_0x8004, 3
goto_if 1, EventScript_16ADAF goto_if_eq EventScript_16ADAF
compare_var_to_value VAR_0x8004, 4 compare_var_to_value VAR_0x8004, 4
goto_if 1, EventScript_16ADC3 goto_if_eq EventScript_16ADC3
compare_var_to_value VAR_0x8004, 5 compare_var_to_value VAR_0x8004, 5
goto_if 1, EventScript_16ADE9 goto_if_eq EventScript_16ADE9
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 1, EventScript_16AE0F goto_if_eq EventScript_16AE0F
end end
EventScript_16AD59:: @ 816AD59 EventScript_16AD59:: @ 816AD59
@@ -35,7 +35,7 @@ EventScript_16AD63:: @ 816AD63
msgbox gUnknown_8192B43 msgbox gUnknown_8192B43
giveitem VAR_0x8008 giveitem VAR_0x8008
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AE45 goto_if_eq EventScript_16AE45
release release
end end
@@ -44,7 +44,7 @@ EventScript_16AD89:: @ 816AD89
msgbox gUnknown_8192C07 msgbox gUnknown_8192C07
giveitem VAR_0x8008, 4 giveitem VAR_0x8008, 4
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AE45 goto_if_eq EventScript_16AE45
release release
end end
@@ -60,7 +60,7 @@ EventScript_16ADC3:: @ 816ADC3
msgbox gUnknown_8192D4B msgbox gUnknown_8192D4B
giveitem VAR_0x8008 giveitem VAR_0x8008
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AE45 goto_if_eq EventScript_16AE45
release release
end end
@@ -69,7 +69,7 @@ EventScript_16ADE9:: @ 816ADE9
msgbox gUnknown_8192DE3 msgbox gUnknown_8192DE3
giveitem VAR_0x8008, 4 giveitem VAR_0x8008, 4
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AE45 goto_if_eq EventScript_16AE45
release release
end end
+22 -35
View File
@@ -5,17 +5,17 @@ CeruleanCity_House5_EventScript_16AE50:: @ 816AE50
lock lock
faceplayer faceplayer
checkflag FLAG_0x2BB checkflag FLAG_0x2BB
goto_if 1, EventScript_16AEB7 goto_if_eq EventScript_16AEB7
msgbox gUnknown_8192F67, MSGBOX_YESNO msgbox gUnknown_8192F67, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AEAD goto_if_eq EventScript_16AEAD
checkflag FLAG_0x847 checkflag FLAG_0x847
goto_if 0, EventScript_16AEA3 goto_if 0, EventScript_16AEA3
msgbox gUnknown_8193003 msgbox gUnknown_8193003
setflag FLAG_0x2BB setflag FLAG_0x2BB
giveitem ITEM_POWDER_JAR giveitem ITEM_POWDER_JAR
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A6BF9 goto_if_eq EventScript_1A6BF9
msgbox gUnknown_8193033 msgbox gUnknown_8193033
release release
end end
@@ -42,33 +42,20 @@ EventScript_16AEC8:: @ 816AEC8
setvar VAR_0x8004, 5 setvar VAR_0x8004, 5
special sub_80CB7C4 special sub_80CB7C4
waitstate waitstate
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16AF6C
goto_if 1, EventScript_16AF6C case 1, EventScript_16AF80
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16AF94
goto_if 1, EventScript_16AF80 case 3, EventScript_16AFA8
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_16AFBC
goto_if 1, EventScript_16AF94 case 5, EventScript_16AFD0
compare_var_to_value VAR_0x8000, 3 case 6, EventScript_16AFE4
goto_if 1, EventScript_16AFA8 case 7, EventScript_16AFF8
compare_var_to_value VAR_0x8000, 4 case 8, EventScript_16B00C
goto_if 1, EventScript_16AFBC case 9, EventScript_16B020
compare_var_to_value VAR_0x8000, 5 case 10, EventScript_16B034
goto_if 1, EventScript_16AFD0 case 11, EventScript_16B048
compare_var_to_value VAR_0x8000, 6 case 127, EventScript_16B048
goto_if 1, EventScript_16AFE4
compare_var_to_value VAR_0x8000, 7
goto_if 1, EventScript_16AFF8
compare_var_to_value VAR_0x8000, 8
goto_if 1, EventScript_16B00C
compare_var_to_value VAR_0x8000, 9
goto_if 1, EventScript_16B020
compare_var_to_value VAR_0x8000, 10
goto_if 1, EventScript_16B034
compare_var_to_value VAR_0x8000, 11
goto_if 1, EventScript_16B048
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16B048
end end
EventScript_16AF6C:: @ 816AF6C EventScript_16AF6C:: @ 816AF6C
@@ -157,20 +144,20 @@ EventScript_16B048:: @ 816B048
EventScript_16B055:: @ 816B055 EventScript_16B055:: @ 816B055
msgbox gUnknown_819331E, MSGBOX_YESNO msgbox gUnknown_819331E, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16AEC8 goto_if_eq EventScript_16AEC8
copyvar VAR_0x8004, VAR_0x8009 copyvar VAR_0x8004, VAR_0x8009
specialvar VAR_RESULT, sub_815EEB0 specialvar VAR_RESULT, sub_815EEB0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16B0CC goto_if_eq EventScript_16B0CC
giveitem VAR_0x8008 giveitem VAR_0x8008
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16B0BF goto_if_eq EventScript_16B0BF
copyvar VAR_0x8004, VAR_0x8009 copyvar VAR_0x8004, VAR_0x8009
special sub_815EF5C special sub_815EF5C
special sub_815F070 special sub_815F070
msgbox gUnknown_819337A, MSGBOX_YESNO msgbox gUnknown_819337A, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16AEC8 goto_if_eq EventScript_16AEC8
msgbox gUnknown_81933FB msgbox gUnknown_81933FB
special sub_815F114 special sub_815F114
release release
@@ -191,7 +178,7 @@ CeruleanCity_House5_EventScript_16B0DA:: @ 816B0DA
lockall lockall
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_814EA7C special sub_814EA7C
waitstate waitstate
releaseall releaseall
+1 -1
View File
@@ -12,7 +12,7 @@ CeruleanCity_Mart_EventScript_16ACA7:: @ 816ACA7
CeruleanCity_Mart_EventScript_16ACB0:: @ 816ACB0 CeruleanCity_Mart_EventScript_16ACB0:: @ 816ACB0
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
+3 -3
View File
@@ -43,7 +43,7 @@ EventScript_166F52:: @ 8166F52
EventScript_166F5E:: @ 8166F5E EventScript_166F5E:: @ 8166F5E
checkflag FLAG_0x1A8 checkflag FLAG_0x1A8
goto_if 1, EventScript_166F68 goto_if_eq EventScript_166F68
return return
EventScript_166F68:: @ 8166F68 EventScript_166F68:: @ 8166F68
@@ -109,9 +109,9 @@ EventScript_166FCD:: @ 8166FCD
msgbox gUnknown_8180C90 msgbox gUnknown_8180C90
msgbox gUnknown_8180CAA, MSGBOX_YESNO msgbox gUnknown_8180CAA, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_167068 goto_if_eq EventScript_167068
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_167078 goto_if_eq EventScript_167078
end end
EventScript_167032:: @ 8167032 EventScript_167032:: @ 8167032
+28 -28
View File
@@ -4,7 +4,7 @@ CinnabarIsland_Gym_MapScripts:: @ 816D94B
CinnabarIsland_Gym_MapScript1_16D951:: @ 816D951 CinnabarIsland_Gym_MapScript1_16D951:: @ 816D951
checkflag FLAG_0x4B6 checkflag FLAG_0x4B6
goto_if 1, EventScript_16D991 goto_if_eq EventScript_16D991
checkflag FLAG_0x265 checkflag FLAG_0x265
call_if 1, EventScript_16D9B0 call_if 1, EventScript_16D9B0
checkflag FLAG_0x267 checkflag FLAG_0x267
@@ -81,7 +81,7 @@ EventScript_16DA34:: @ 816DA34
msgbox gUnknown_819969E msgbox gUnknown_819969E
checkitemspace ITEM_TM38, 1 checkitemspace ITEM_TM38, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16DA75 goto_if_eq EventScript_16DA75
additem ITEM_TM38, 1 additem ITEM_TM38, 1
giveitemfanfaremsg gUnknown_81996FF, ITEM_TM38 giveitemfanfaremsg gUnknown_81996FF, ITEM_TM38
setflag FLAG_0x24E setflag FLAG_0x24E
@@ -196,7 +196,7 @@ CinnabarIsland_Gym_EventScript_16DBAB:: @ 816DBAB
lock lock
faceplayer faceplayer
checkflag FLAG_0x4B6 checkflag FLAG_0x4B6
goto_if 1, EventScript_16DBC0 goto_if_eq EventScript_16DBC0
msgbox gUnknown_8199B81 msgbox gUnknown_8199B81
release release
end end
@@ -209,7 +209,7 @@ EventScript_16DBC0:: @ 816DBC0
CinnabarIsland_Gym_EventScript_16DBCA:: @ 816DBCA CinnabarIsland_Gym_EventScript_16DBCA:: @ 816DBCA
lockall lockall
checkflag FLAG_UNK826 checkflag FLAG_UNK826
goto_if 1, EventScript_16DBDE goto_if_eq EventScript_16DBDE
msgbox gUnknown_8199C29 msgbox gUnknown_8199C29
releaseall releaseall
end end
@@ -235,9 +235,9 @@ EventScript_16DC00:: @ 816DC00
msgbox gUnknown_8199C9F msgbox gUnknown_8199C9F
msgbox gUnknown_8199D5A, MSGBOX_YESNO msgbox gUnknown_8199D5A, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16DC43 goto_if_eq EventScript_16DC43
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16DC6A goto_if_eq EventScript_16DC6A
end end
EventScript_16DC27:: @ 816DC27 EventScript_16DC27:: @ 816DC27
@@ -257,7 +257,7 @@ EventScript_16DC34:: @ 816DC34
EventScript_16DC43:: @ 816DC43 EventScript_16DC43:: @ 816DC43
call EventScript_16DC27 call EventScript_16DC27
checkflag FLAG_0x265 checkflag FLAG_0x265
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DC58 call EventScript_16DC58
releaseall releaseall
end end
@@ -290,7 +290,7 @@ EventScript_16DC7A:: @ 816DC7A
msgbox gUnknown_819983F msgbox gUnknown_819983F
trainerbattle 3, 213, 0, Text_199870 trainerbattle 3, 213, 0, Text_199870
checkflag FLAG_0x265 checkflag FLAG_0x265
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DC58 call EventScript_16DC58
releaseall releaseall
end end
@@ -332,15 +332,15 @@ EventScript_16DCF5:: @ 816DCF5
msgbox gUnknown_8199C9F msgbox gUnknown_8199C9F
msgbox gUnknown_8199D79, MSGBOX_YESNO msgbox gUnknown_8199D79, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16DD41 goto_if_eq EventScript_16DD41
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16DD1C goto_if_eq EventScript_16DD1C
end end
EventScript_16DD1C:: @ 816DD1C EventScript_16DD1C:: @ 816DD1C
call EventScript_16DC27 call EventScript_16DC27
checkflag FLAG_0x267 checkflag FLAG_0x267
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DD31 call EventScript_16DD31
releaseall releaseall
end end
@@ -369,7 +369,7 @@ EventScript_16DD51:: @ 816DD51
msgbox gUnknown_81998BD msgbox gUnknown_81998BD
trainerbattle 3, 178, 0, Text_1998ED trainerbattle 3, 178, 0, Text_1998ED
checkflag FLAG_0x267 checkflag FLAG_0x267
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DD31 call EventScript_16DD31
releaseall releaseall
end end
@@ -420,15 +420,15 @@ EventScript_16DDD3:: @ 816DDD3
msgbox gUnknown_8199C9F msgbox gUnknown_8199C9F
msgbox gUnknown_8199DA9, MSGBOX_YESNO msgbox gUnknown_8199DA9, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16DE1F goto_if_eq EventScript_16DE1F
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16DDFA goto_if_eq EventScript_16DDFA
end end
EventScript_16DDFA:: @ 816DDFA EventScript_16DDFA:: @ 816DDFA
call EventScript_16DC27 call EventScript_16DC27
checkflag FLAG_0x268 checkflag FLAG_0x268
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DE0F call EventScript_16DE0F
releaseall releaseall
end end
@@ -457,7 +457,7 @@ EventScript_16DE2F:: @ 816DE2F
msgbox gUnknown_8199948 msgbox gUnknown_8199948
trainerbattle 3, 214, 0, Text_199973 trainerbattle 3, 214, 0, Text_199973
checkflag FLAG_0x268 checkflag FLAG_0x268
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DE0F call EventScript_16DE0F
releaseall releaseall
end end
@@ -499,15 +499,15 @@ EventScript_16DEAA:: @ 816DEAA
msgbox gUnknown_8199C9F msgbox gUnknown_8199C9F
msgbox gUnknown_8199DC6, MSGBOX_YESNO msgbox gUnknown_8199DC6, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16DEF6 goto_if_eq EventScript_16DEF6
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16DED1 goto_if_eq EventScript_16DED1
end end
EventScript_16DED1:: @ 816DED1 EventScript_16DED1:: @ 816DED1
call EventScript_16DC27 call EventScript_16DC27
checkflag FLAG_0x269 checkflag FLAG_0x269
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DEE6 call EventScript_16DEE6
releaseall releaseall
end end
@@ -536,7 +536,7 @@ EventScript_16DF06:: @ 816DF06
msgbox gUnknown_81999B7 msgbox gUnknown_81999B7
trainerbattle 3, 179, 0, Text_1999DB trainerbattle 3, 179, 0, Text_1999DB
checkflag FLAG_0x269 checkflag FLAG_0x269
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DEE6 call EventScript_16DEE6
releaseall releaseall
end end
@@ -578,15 +578,15 @@ EventScript_16DF81:: @ 816DF81
msgbox gUnknown_8199C9F msgbox gUnknown_8199C9F
msgbox gUnknown_8199E00, MSGBOX_YESNO msgbox gUnknown_8199E00, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16DFA8 goto_if_eq EventScript_16DFA8
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16DFCD goto_if_eq EventScript_16DFCD
end end
EventScript_16DFA8:: @ 816DFA8 EventScript_16DFA8:: @ 816DFA8
call EventScript_16DC27 call EventScript_16DC27
checkflag FLAG_0x26A checkflag FLAG_0x26A
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DFBD call EventScript_16DFBD
releaseall releaseall
end end
@@ -615,7 +615,7 @@ EventScript_16DFDD:: @ 816DFDD
msgbox gUnknown_8199A7F msgbox gUnknown_8199A7F
trainerbattle 3, 215, 0, Text_199AB9 trainerbattle 3, 215, 0, Text_199AB9
checkflag FLAG_0x26A checkflag FLAG_0x26A
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16DFBD call EventScript_16DFBD
releaseall releaseall
end end
@@ -657,15 +657,15 @@ EventScript_16E058:: @ 816E058
msgbox gUnknown_8199C9F msgbox gUnknown_8199C9F
msgbox gUnknown_8199E36, MSGBOX_YESNO msgbox gUnknown_8199E36, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E0A4 goto_if_eq EventScript_16E0A4
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E07F goto_if_eq EventScript_16E07F
end end
EventScript_16E07F:: @ 816E07F EventScript_16E07F:: @ 816E07F
call EventScript_16DC27 call EventScript_16DC27
checkflag FLAG_0x26B checkflag FLAG_0x26B
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16E094 call EventScript_16E094
releaseall releaseall
end end
@@ -694,7 +694,7 @@ EventScript_16E0B4:: @ 816E0B4
msgbox gUnknown_8199AFC msgbox gUnknown_8199AFC
trainerbattle 3, 180, 0, Text_199B16 trainerbattle 3, 180, 0, Text_199B16
checkflag FLAG_0x26B checkflag FLAG_0x26B
goto_if 1, EventScript_16DC68 goto_if_eq EventScript_16DC68
call EventScript_16E094 call EventScript_16E094
releaseall releaseall
end end
+1 -1
View File
@@ -12,7 +12,7 @@ CinnabarIsland_Mart_EventScript_16EA19:: @ 816EA19
CinnabarIsland_Mart_EventScript_16EA22:: @ 816EA22 CinnabarIsland_Mart_EventScript_16EA22:: @ 816EA22
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -31,7 +31,7 @@ CinnabarIsland_PokemonCenter_1F_EventScript_16E90A:: @ 816E90A
faceplayer faceplayer
msgbox gUnknown_819A725, MSGBOX_YESNO msgbox gUnknown_819A725, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E9A5 goto_if_eq EventScript_16E9A5
msgbox gUnknown_819A785 msgbox gUnknown_819A785
closemessage closemessage
playbgm BGM_FRLG_FOLLOW_ME, 1 playbgm BGM_FRLG_FOLLOW_ME, 1
@@ -7,10 +7,10 @@ CinnabarIsland_PokemonLab_ExperimentRoom_EventScript_16E401:: @ 816E401
setvar VAR_0x8008, 8 setvar VAR_0x8008, 8
call EventScript_1A8CAD call EventScript_1A8CAD
checkflag FLAG_0x276 checkflag FLAG_0x276
goto_if 1, EventScript_16E473 goto_if_eq EventScript_16E473
msgbox gUnknown_81A597B, MSGBOX_YESNO msgbox gUnknown_81A597B, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E45B goto_if_eq EventScript_16E45B
call EventScript_1A8CBD call EventScript_1A8CBD
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 4, EventScript_16E45B goto_if 4, EventScript_16E45B
@@ -46,20 +46,20 @@ CinnabarIsland_PokemonLab_ExperimentRoom_EventScript_16E47D:: @ 816E47D
checkflag FLAG_0x2EE checkflag FLAG_0x2EE
call_if 1, EventScript_16E8A1 call_if 1, EventScript_16E8A1
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E897 goto_if_eq EventScript_16E897
compare_var_to_value VAR_0x406A, 2 compare_var_to_value VAR_0x406A, 2
goto_if 1, EventScript_16E736 goto_if_eq EventScript_16E736
compare_var_to_value VAR_0x406A, 1 compare_var_to_value VAR_0x406A, 1
goto_if 1, EventScript_16E72C goto_if_eq EventScript_16E72C
call EventScript_16E4EC call EventScript_16E4EC
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E544 goto_if_eq EventScript_16E544
call EventScript_16E504 call EventScript_16E504
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E586 goto_if_eq EventScript_16E586
call EventScript_16E51C call EventScript_16E51C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E5C8 goto_if_eq EventScript_16E5C8
msgbox gUnknown_819A282 msgbox gUnknown_819A282
goto EventScript_16E53A goto EventScript_16E53A
end end
@@ -68,7 +68,7 @@ EventScript_16E4EC:: @ 816E4EC
checkflag FLAG_0x273 checkflag FLAG_0x273
goto_if 0, EventScript_16E534 goto_if 0, EventScript_16E534
checkflag FLAG_0x2ED checkflag FLAG_0x2ED
goto_if 1, EventScript_16E534 goto_if_eq EventScript_16E534
setvar VAR_RESULT, 1 setvar VAR_RESULT, 1
return return
@@ -76,7 +76,7 @@ EventScript_16E504:: @ 816E504
checkflag FLAG_0x272 checkflag FLAG_0x272
goto_if 0, EventScript_16E534 goto_if 0, EventScript_16E534
checkflag FLAG_0x2EC checkflag FLAG_0x2EC
goto_if 1, EventScript_16E534 goto_if_eq EventScript_16E534
setvar VAR_RESULT, 1 setvar VAR_RESULT, 1
return return
@@ -84,7 +84,7 @@ EventScript_16E51C:: @ 816E51C
checkflag FLAG_0x25E checkflag FLAG_0x25E
goto_if 0, EventScript_16E534 goto_if 0, EventScript_16E534
checkflag FLAG_0x2EE checkflag FLAG_0x2EE
goto_if 1, EventScript_16E534 goto_if_eq EventScript_16E534
setvar VAR_RESULT, 1 setvar VAR_RESULT, 1
return return
@@ -102,15 +102,12 @@ EventScript_16E544:: @ 816E544
waitmessage waitmessage
call EventScript_16E51C call EventScript_16E51C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E5FA goto_if_eq EventScript_16E5FA
multichoice 0, 0, 21, 0 multichoice 0, 0, 21, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16E668
goto_if 1, EventScript_16E668 case 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16E53A
goto_if 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16E53A
end end
EventScript_16E586:: @ 816E586 EventScript_16E586:: @ 816E586
@@ -118,54 +115,40 @@ EventScript_16E586:: @ 816E586
waitmessage waitmessage
call EventScript_16E51C call EventScript_16E51C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E631 goto_if_eq EventScript_16E631
multichoice 0, 0, 22, 0 multichoice 0, 0, 22, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16E6A6
goto_if 1, EventScript_16E6A6 case 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16E53A
goto_if 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16E53A
end end
EventScript_16E5C8:: @ 816E5C8 EventScript_16E5C8:: @ 816E5C8
message Text_19A282 message Text_19A282
waitmessage waitmessage
multichoice 0, 0, 23, 0 multichoice 0, 0, 23, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16E6E4
goto_if 1, EventScript_16E6E4 case 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 1 case 127, EventScript_16E53A
goto_if 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16E53A
end end
EventScript_16E5FA:: @ 816E5FA EventScript_16E5FA:: @ 816E5FA
multichoice 0, 0, 24, 0 multichoice 0, 0, 24, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16E668
goto_if 1, EventScript_16E668 case 1, EventScript_16E6E4
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16E53A
goto_if 1, EventScript_16E6E4 case 127, EventScript_16E53A
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16E53A
end end
EventScript_16E631:: @ 816E631 EventScript_16E631:: @ 816E631
multichoice 0, 0, 25, 0 multichoice 0, 0, 25, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_16E6A6
goto_if 1, EventScript_16E6A6 case 1, EventScript_16E6E4
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_16E53A
goto_if 1, EventScript_16E6E4 case 127, EventScript_16E53A
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_16E53A
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_16E53A
end end
EventScript_16E668:: @ 816E668 EventScript_16E668:: @ 816E668
@@ -173,7 +156,7 @@ EventScript_16E668:: @ 816E668
getitemname 1, ITEM_HELIX_FOSSIL getitemname 1, ITEM_HELIX_FOSSIL
msgbox gUnknown_819A3D4, MSGBOX_YESNO msgbox gUnknown_819A3D4, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E722 goto_if_eq EventScript_16E722
msgbox gUnknown_819A45D msgbox gUnknown_819A45D
textcolor 0 textcolor 0
removeitem ITEM_HELIX_FOSSIL, 1 removeitem ITEM_HELIX_FOSSIL, 1
@@ -188,7 +171,7 @@ EventScript_16E6A6:: @ 816E6A6
getitemname 1, ITEM_DOME_FOSSIL getitemname 1, ITEM_DOME_FOSSIL
msgbox gUnknown_819A3D4, MSGBOX_YESNO msgbox gUnknown_819A3D4, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E722 goto_if_eq EventScript_16E722
msgbox gUnknown_819A45D msgbox gUnknown_819A45D
textcolor 0 textcolor 0
removeitem ITEM_DOME_FOSSIL, 1 removeitem ITEM_DOME_FOSSIL, 1
@@ -203,7 +186,7 @@ EventScript_16E6E4:: @ 816E6E4
getitemname 1, ITEM_OLD_AMBER getitemname 1, ITEM_OLD_AMBER
msgbox gUnknown_819A3D4, MSGBOX_YESNO msgbox gUnknown_819A3D4, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E722 goto_if_eq EventScript_16E722
msgbox gUnknown_819A45D msgbox gUnknown_819A45D
textcolor 0 textcolor 0
removeitem ITEM_OLD_AMBER, 1 removeitem ITEM_OLD_AMBER, 1
@@ -225,11 +208,11 @@ EventScript_16E72C:: @ 816E72C
EventScript_16E736:: @ 816E736 EventScript_16E736:: @ 816E736
compare_var_to_value VAR_0x4069, 1 compare_var_to_value VAR_0x4069, 1
goto_if 1, EventScript_16E758 goto_if_eq EventScript_16E758
compare_var_to_value VAR_0x4069, 2 compare_var_to_value VAR_0x4069, 2
goto_if 1, EventScript_16E79D goto_if_eq EventScript_16E79D
compare_var_to_value VAR_0x4069, 3 compare_var_to_value VAR_0x4069, 3
goto_if 1, EventScript_16E7E2 goto_if_eq EventScript_16E7E2
end end
EventScript_16E758:: @ 816E758 EventScript_16E758:: @ 816E758
@@ -238,12 +221,12 @@ EventScript_16E758:: @ 816E758
msgbox gUnknown_819A34F msgbox gUnknown_819A34F
givemon SPECIES_OMANYTE, 5, ITEM_NONE, 0, 0, 0 givemon SPECIES_OMANYTE, 5, ITEM_NONE, 0, 0, 0
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A927C goto_if_eq EventScript_1A927C
setflag FLAG_0x2ED setflag FLAG_0x2ED
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E827 goto_if_eq EventScript_16E827
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E85B goto_if_eq EventScript_16E85B
end end
EventScript_16E79D:: @ 816E79D EventScript_16E79D:: @ 816E79D
@@ -252,12 +235,12 @@ EventScript_16E79D:: @ 816E79D
msgbox gUnknown_819A34F msgbox gUnknown_819A34F
givemon SPECIES_KABUTO, 5, ITEM_NONE, 0, 0, 0 givemon SPECIES_KABUTO, 5, ITEM_NONE, 0, 0, 0
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A927C goto_if_eq EventScript_1A927C
setflag FLAG_0x2EC setflag FLAG_0x2EC
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E827 goto_if_eq EventScript_16E827
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E85B goto_if_eq EventScript_16E85B
end end
EventScript_16E7E2:: @ 816E7E2 EventScript_16E7E2:: @ 816E7E2
@@ -266,12 +249,12 @@ EventScript_16E7E2:: @ 816E7E2
msgbox gUnknown_819A34F msgbox gUnknown_819A34F
givemon SPECIES_AERODACTYL, 5, ITEM_NONE, 0, 0, 0 givemon SPECIES_AERODACTYL, 5, ITEM_NONE, 0, 0, 0
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A927C goto_if_eq EventScript_1A927C
setflag FLAG_0x2EE setflag FLAG_0x2EE
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E827 goto_if_eq EventScript_16E827
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16E85B goto_if_eq EventScript_16E85B
end end
EventScript_16E827:: @ 816E827 EventScript_16E827:: @ 816E827
@@ -283,7 +266,7 @@ EventScript_16E827:: @ 816E827
setvar VAR_0x406A, 0 setvar VAR_0x406A, 0
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E895 goto_if_eq EventScript_16E895
call EventScript_1A8C27 call EventScript_1A8C27
call EventScript_1A74EB call EventScript_1A74EB
goto EventScript_16E895 goto EventScript_16E895
@@ -298,7 +281,7 @@ EventScript_16E85B:: @ 816E85B
setvar VAR_0x406A, 0 setvar VAR_0x406A, 0
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E88A goto_if_eq EventScript_16E88A
call EventScript_1A8C33 call EventScript_1A8C33
goto EventScript_16E88A goto EventScript_16E88A
end end
@@ -319,9 +302,9 @@ EventScript_16E897:: @ 816E897
EventScript_16E8A1:: @ 816E8A1 EventScript_16E8A1:: @ 816E8A1
checkflag FLAG_0x273 checkflag FLAG_0x273
goto_if 1, EventScript_16E8B9 goto_if_eq EventScript_16E8B9
checkflag FLAG_0x272 checkflag FLAG_0x272
goto_if 1, EventScript_16E8C8 goto_if_eq EventScript_16E8C8
goto EventScript_16E534 goto EventScript_16E534
end end
@@ -11,10 +11,10 @@ CinnabarIsland_PokemonLab_Lounge_EventScript_16E2C2:: @ 816E2C2
setvar VAR_0x8008, 6 setvar VAR_0x8008, 6
call EventScript_1A8CAD call EventScript_1A8CAD
checkflag FLAG_0x274 checkflag FLAG_0x274
goto_if 1, EventScript_16E334 goto_if_eq EventScript_16E334
msgbox gUnknown_81A59FE, MSGBOX_YESNO msgbox gUnknown_81A59FE, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E31C goto_if_eq EventScript_16E31C
call EventScript_1A8CBD call EventScript_1A8CBD
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 4, EventScript_16E31C goto_if 4, EventScript_16E31C
@@ -51,10 +51,10 @@ CinnabarIsland_PokemonLab_Lounge_EventScript_16E33E:: @ 816E33E
specialvar VAR_RESULT, sub_8053A9C specialvar VAR_RESULT, sub_8053A9C
copyvar VAR_0x8009, VAR_RESULT copyvar VAR_0x8009, VAR_RESULT
checkflag FLAG_0x275 checkflag FLAG_0x275
goto_if 1, EventScript_16E3D4 goto_if_eq EventScript_16E3D4
msgbox gUnknown_81A5AD6, MSGBOX_YESNO msgbox gUnknown_81A5AD6, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16E3BC goto_if_eq EventScript_16E3BC
special sub_80BF8FC special sub_80BF8FC
waitstate waitstate
copyvar VAR_0x800A, VAR_0x8004 copyvar VAR_0x800A, VAR_0x8004
@@ -27,7 +27,7 @@ EventScript_164C52:: @ 8164C52
msgbox gUnknown_817D062 msgbox gUnknown_817D062
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_164CB6 goto_if_eq EventScript_164CB6
trainerbattle 3, 606, 0, Text_17D086 trainerbattle 3, 606, 0, Text_17D086
msgbox gUnknown_817D0B2 msgbox gUnknown_817D0B2
closemessage closemessage
+2 -2
View File
@@ -10,9 +10,9 @@ FiveIsland_Meadow_MapScript1_168938:: @ 8168938
FiveIsland_Meadow_EventScript_168942:: @ 8168942 FiveIsland_Meadow_EventScript_168942:: @ 8168942
lockall lockall
checkflag FLAG_0x2D6 checkflag FLAG_0x2D6
goto_if 1, EventScript_168979 goto_if_eq EventScript_168979
checkflag FLAG_0x2D8 checkflag FLAG_0x2D8
goto_if 1, EventScript_16895F goto_if_eq EventScript_16895F
msgbox gUnknown_818AB8E msgbox gUnknown_818AB8E
releaseall releaseall
end end
@@ -4,9 +4,9 @@ FiveIsland_MemorialPillar_MapScripts:: @ 81689D2
FiveIsland_MemorialPillar_EventScript_1689D3:: @ 81689D3 FiveIsland_MemorialPillar_EventScript_1689D3:: @ 81689D3
lock lock
checkflag FLAG_0x236 checkflag FLAG_0x236
goto_if 1, EventScript_168A18 goto_if_eq EventScript_168A18
checkflag FLAG_0x2D7 checkflag FLAG_0x2D7
goto_if 1, EventScript_168A22 goto_if_eq EventScript_168A22
msgbox gUnknown_818B02E msgbox gUnknown_818B02E
closemessage closemessage
applymovement 1, Movement_1A75E1 applymovement 1, Movement_1A75E1
@@ -28,7 +28,7 @@ EventScript_168A22:: @ 8168A22
msgbox gUnknown_818B282 msgbox gUnknown_818B282
giveitem ITEM_TM42 giveitem ITEM_TM42
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_168AFE goto_if_eq EventScript_168AFE
call EventScript_168AE8 call EventScript_168AE8
release release
end end
@@ -36,24 +36,24 @@ EventScript_168A22:: @ 8168A22
FiveIsland_MemorialPillar_EventScript_168A48:: @ 8168A48 FiveIsland_MemorialPillar_EventScript_168A48:: @ 8168A48
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lockall lockall
checkflag FLAG_0x236 checkflag FLAG_0x236
goto_if 1, EventScript_168B0B goto_if_eq EventScript_168B0B
checkflag FLAG_0x2D7 checkflag FLAG_0x2D7
goto_if 1, EventScript_168B0B goto_if_eq EventScript_168B0B
msgbox gUnknown_818B095 msgbox gUnknown_818B095
checkitem ITEM_LEMONADE, 1 checkitem ITEM_LEMONADE, 1
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168A86 goto_if_eq EventScript_168A86
releaseall releaseall
end end
EventScript_168A86:: @ 8168A86 EventScript_168A86:: @ 8168A86
msgbox gUnknown_818B105, MSGBOX_YESNO msgbox gUnknown_818B105, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168A9B goto_if_eq EventScript_168A9B
releaseall releaseall
end end
@@ -70,7 +70,7 @@ EventScript_168A9B:: @ 8168A9B
msgbox gUnknown_818B171 msgbox gUnknown_818B171
giveitem ITEM_TM42 giveitem ITEM_TM42
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_168AFE goto_if_eq EventScript_168AFE
call EventScript_168AE8 call EventScript_168AE8
releaseall releaseall
end end
@@ -4,14 +4,14 @@ FiveIsland_ResortGorgeous_House_MapScripts:: @ 8171EBD
FiveIsland_ResortGorgeous_House_EventScript_171EBE:: @ 8171EBE FiveIsland_ResortGorgeous_House_EventScript_171EBE:: @ 8171EBE
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
checkflag FLAG_0x002 checkflag FLAG_0x002
goto_if 1, EventScript_172043 goto_if_eq EventScript_172043
compare_var_to_value VAR_STORAGE_UNKNOWN, 65535 compare_var_to_value VAR_STORAGE_UNKNOWN, 65535
goto_if 1, EventScript_171F0B goto_if_eq EventScript_171F0B
compare_var_to_value VAR_STORAGE_UNKNOWN, 0 compare_var_to_value VAR_STORAGE_UNKNOWN, 0
goto_if 5, EventScript_171F19 goto_if 5, EventScript_171F19
msgbox gUnknown_81A42A0 msgbox gUnknown_81A42A0
@@ -33,7 +33,7 @@ EventScript_171F19:: @ 8171F19
copyvar VAR_0x8004, VAR_STORAGE_UNKNOWN copyvar VAR_0x8004, VAR_STORAGE_UNKNOWN
specialvar VAR_RESULT, sub_80CC48C specialvar VAR_RESULT, sub_80CC48C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171F34 goto_if_eq EventScript_171F34
goto EventScript_171EFE goto EventScript_171EFE
end end
@@ -64,7 +64,7 @@ EventScript_171F34:: @ 8171F34
msgbox gUnknown_81A458E msgbox gUnknown_81A458E
giveitem VAR_0x403B giveitem VAR_0x403B
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_172025 goto_if_eq EventScript_172025
setflag FLAG_0x002 setflag FLAG_0x002
setvar VAR_STORAGE_UNKNOWN, 0 setvar VAR_STORAGE_UNKNOWN, 0
release release
@@ -20,7 +20,7 @@ EventScript_163F47:: @ 8163F47
FiveIsland_RocketWarehouse_EventScript_163F5A:: @ 8163F5A FiveIsland_RocketWarehouse_EventScript_163F5A:: @ 8163F5A
lockall lockall
checkflag FLAG_0x2D5 checkflag FLAG_0x2D5
goto_if 1, EventScript_163F6E goto_if_eq EventScript_163F6E
msgbox gUnknown_817B4E3 msgbox gUnknown_817B4E3
releaseall releaseall
end end
@@ -45,7 +45,7 @@ FiveIsland_RocketWarehouse_EventScript_163F81:: @ 8163F81
FiveIsland_RocketWarehouse_EventScript_163F93:: @ 8163F93 FiveIsland_RocketWarehouse_EventScript_163F93:: @ 8163F93
trainerbattle 2, 545, 0, Text_17BBAF, Text_17BC55, EventScript_163FCD trainerbattle 2, 545, 0, Text_17BBAF, Text_17BC55, EventScript_163FCD
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_163FB7 goto_if_eq EventScript_163FB7
msgbox gUnknown_817BCA3, 6 msgbox gUnknown_817BCA3, 6
end end
@@ -144,7 +144,7 @@ EventScript_1640A2:: @ 81640A2
EventScript_16412E:: @ 816412E EventScript_16412E:: @ 816412E
compare_var_to_value VAR_0x8004, 27 compare_var_to_value VAR_0x8004, 27
goto_if 1, EventScript_1A77A9 goto_if_eq EventScript_1A77A9
applymovement 255, Movement_1A75EB applymovement 255, Movement_1A75EB
waitmovement 0 waitmovement 0
return return
@@ -4,18 +4,18 @@ FiveIsland_WaterLabyrinth_MapScripts:: @ 816884D
FiveIsland_WaterLabyrinth_EventScript_16884E:: @ 816884E FiveIsland_WaterLabyrinth_EventScript_16884E:: @ 816884E
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
checkflag FLAG_0x2DA checkflag FLAG_0x2DA
goto_if 1, EventScript_1688E3 goto_if_eq EventScript_1688E3
checkflag FLAG_0x2DB checkflag FLAG_0x2DB
goto_if 1, EventScript_16892C goto_if_eq EventScript_16892C
msgbox gUnknown_818A80D msgbox gUnknown_818A80D
specialvar VAR_RESULT, sub_80CA76C specialvar VAR_RESULT, sub_80CA76C
compare_var_to_value VAR_RESULT, 6 compare_var_to_value VAR_RESULT, 6
goto_if 1, EventScript_1688AC goto_if_eq EventScript_1688AC
msgbox gUnknown_818A88F msgbox gUnknown_818A88F
release release
end end
@@ -36,7 +36,7 @@ EventScript_1688AC:: @ 81688AC
EventScript_1688BA:: @ 81688BA EventScript_1688BA:: @ 81688BA
countpokemon countpokemon
compare_var_to_value VAR_RESULT, 6 compare_var_to_value VAR_RESULT, 6
goto_if 1, EventScript_16891F goto_if_eq EventScript_16891F
setflag FLAG_0x2DA setflag FLAG_0x2DA
giveegg SPECIES_TOGEPI giveegg SPECIES_TOGEPI
textcolor 3 textcolor 3
@@ -53,12 +53,12 @@ EventScript_1688E3:: @ 81688E3
setvar VAR_0x8004, 175 setvar VAR_0x8004, 175
specialvar VAR_RESULT, sub_80CD0F4 specialvar VAR_RESULT, sub_80CD0F4
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168895 goto_if_eq EventScript_168895
getspeciesname 1, SPECIES_TOGETIC getspeciesname 1, SPECIES_TOGETIC
setvar VAR_0x8004, 176 setvar VAR_0x8004, 176
specialvar VAR_RESULT, sub_80CD0F4 specialvar VAR_RESULT, sub_80CD0F4
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168895 goto_if_eq EventScript_168895
msgbox gUnknown_818A9C0 msgbox gUnknown_818A9C0
release release
end end
+7 -7
View File
@@ -73,18 +73,18 @@ Movement_167D52:: @ 8167D52
FourIsland_EventScript_167D55:: @ 8167D55 FourIsland_EventScript_167D55:: @ 8167D55
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
special GetDaycareMonNicknames special GetDaycareMonNicknames
specialvar VAR_RESULT, GetDaycareState specialvar VAR_RESULT, GetDaycareState
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_167D9B goto_if_eq EventScript_167D9B
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_167E0C goto_if_eq EventScript_167E0C
compare_var_to_value VAR_RESULT, 3 compare_var_to_value VAR_RESULT, 3
goto_if 1, EventScript_167E19 goto_if_eq EventScript_167E19
msgbox gUnknown_81BF555 msgbox gUnknown_81BF555
release release
end end
@@ -92,10 +92,10 @@ FourIsland_EventScript_167D55:: @ 8167D55
EventScript_167D9B:: @ 8167D9B EventScript_167D9B:: @ 8167D9B
msgbox gUnknown_81BF5E3, MSGBOX_YESNO msgbox gUnknown_81BF5E3, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_167DD1 goto_if_eq EventScript_167DD1
msgbox gUnknown_81BF7B6, MSGBOX_YESNO msgbox gUnknown_81BF7B6, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_167DD1 goto_if_eq EventScript_167DD1
msgbox gUnknown_81BF6CF msgbox gUnknown_81BF6CF
clearflag FLAG_PENDING_DAYCARE_EGG clearflag FLAG_PENDING_DAYCARE_EGG
special RejectEggFromDayCare special RejectEggFromDayCare
@@ -143,7 +143,7 @@ FourIsland_EventScript_167E2E:: @ 8167E2E
lock lock
faceplayer faceplayer
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_167E43 goto_if_eq EventScript_167E43
msgbox gUnknown_8182A2B msgbox gUnknown_8182A2B
release release
end end
@@ -10,9 +10,9 @@ FourIsland_LoreleisHouse_EventScript_171C58:: @ 8171C58
lock lock
faceplayer faceplayer
checkflag FLAG_0x2D4 checkflag FLAG_0x2D4
goto_if 1, EventScript_171C83 goto_if_eq EventScript_171C83
checkflag FLAG_0x2D5 checkflag FLAG_0x2D5
goto_if 1, EventScript_171C76 goto_if_eq EventScript_171C76
msgbox gUnknown_81A3826 msgbox gUnknown_81A3826
release release
end end
+1 -1
View File
@@ -4,7 +4,7 @@ FourIsland_Mart_MapScripts:: @ 8171CAD
FourIsland_Mart_EventScript_171CAE:: @ 8171CAE FourIsland_Mart_EventScript_171CAE:: @ 8171CAE
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
+20 -20
View File
@@ -4,19 +4,19 @@ FourIsland_PokemonDayCare_MapScripts:: @ 817193F
FourIsland_PokemonDayCare_EventScript_171940:: @ 8171940 FourIsland_PokemonDayCare_EventScript_171940:: @ 8171940
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
specialvar VAR_RESULT, GetDaycareState specialvar VAR_RESULT, GetDaycareState
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171A2E goto_if_eq EventScript_171A2E
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_171A52 goto_if_eq EventScript_171A52
compare_var_to_value VAR_RESULT, 3 compare_var_to_value VAR_RESULT, 3
goto_if 1, EventScript_171B86 goto_if_eq EventScript_171B86
msgbox gUnknown_81BF7E4, MSGBOX_YESNO msgbox gUnknown_81BF7E4, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171993 goto_if_eq EventScript_171993
msgbox gUnknown_81BF916 msgbox gUnknown_81BF916
release release
end end
@@ -24,7 +24,7 @@ FourIsland_PokemonDayCare_EventScript_171940:: @ 8171940
EventScript_171993:: @ 8171993 EventScript_171993:: @ 8171993
specialvar VAR_RESULT, CountPartyNonEggMons specialvar VAR_RESULT, CountPartyNonEggMons
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171A1A goto_if_eq EventScript_171A1A
msgbox gUnknown_81BF839 msgbox gUnknown_81BF839
fadescreen 1 fadescreen 1
special ChooseSendDaycareMon special ChooseSendDaycareMon
@@ -33,7 +33,7 @@ EventScript_171993:: @ 8171993
goto_if 4, EventScript_1719F7 goto_if 4, EventScript_1719F7
specialvar VAR_RESULT, CountPartyAliveNonEggMons_IgnoreVar0x8004Slot specialvar VAR_RESULT, CountPartyAliveNonEggMons_IgnoreVar0x8004Slot
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_171A24 goto_if_eq EventScript_171A24
specialvar VAR_0x8005, GetSelectedMonNickAndSpecies specialvar VAR_0x8005, GetSelectedMonNickAndSpecies
waitse waitse
playmoncry VAR_0x8005, 0 playmoncry VAR_0x8005, 0
@@ -43,7 +43,7 @@ EventScript_171993:: @ 8171993
incrementgamestat 47 incrementgamestat 47
specialvar VAR_RESULT, GetDaycareState specialvar VAR_RESULT, GetDaycareState
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_171A01 goto_if_eq EventScript_171A01
release release
end end
@@ -55,7 +55,7 @@ EventScript_1719F7:: @ 81719F7
EventScript_171A01:: @ 8171A01 EventScript_171A01:: @ 8171A01
msgbox gUnknown_81BF89F, MSGBOX_YESNO msgbox gUnknown_81BF89F, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171993 goto_if_eq EventScript_171993
goto EventScript_1719F7 goto EventScript_1719F7
end end
@@ -90,26 +90,26 @@ EventScript_171A52:: @ 8171A52
call EventScript_171A41 call EventScript_171A41
msgbox gUnknown_81BF89F, MSGBOX_YESNO msgbox gUnknown_81BF89F, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171993 goto_if_eq EventScript_171993
msgbox gUnknown_81BFAE8, MSGBOX_YESNO msgbox gUnknown_81BFAE8, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171A90 goto_if_eq EventScript_171A90
goto EventScript_1719F7 goto EventScript_1719F7
end end
EventScript_171A90:: @ 8171A90 EventScript_171A90:: @ 8171A90
specialvar VAR_RESULT, CalculatePlayerPartyCount specialvar VAR_RESULT, CalculatePlayerPartyCount
compare_var_to_value VAR_RESULT, 6 compare_var_to_value VAR_RESULT, 6
goto_if 1, EventScript_171B67 goto_if_eq EventScript_171B67
specialvar VAR_RESULT, GetDaycareState specialvar VAR_RESULT, GetDaycareState
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_171ACF goto_if_eq EventScript_171ACF
special ShowDaycareLevelMenu special ShowDaycareLevelMenu
waitstate waitstate
copyvar VAR_0x8004, VAR_RESULT copyvar VAR_0x8004, VAR_RESULT
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1719F7 goto_if_eq EventScript_1719F7
goto EventScript_171ACF goto EventScript_171ACF
end end
@@ -117,14 +117,14 @@ EventScript_171ACF:: @ 8171ACF
special GetDaycareCost special GetDaycareCost
msgbox gUnknown_81BFA3B, MSGBOX_YESNO msgbox gUnknown_81BFA3B, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171AEB goto_if_eq EventScript_171AEB
goto EventScript_1719F7 goto EventScript_1719F7
end end
EventScript_171AEB:: @ 8171AEB EventScript_171AEB:: @ 8171AEB
specialvar VAR_RESULT, IsEnoughForCostInVar0x8005 specialvar VAR_RESULT, IsEnoughForCostInVar0x8005
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171B05 goto_if_eq EventScript_171B05
msgbox gUnknown_81BF932 msgbox gUnknown_81BF932
release release
end end
@@ -144,14 +144,14 @@ EventScript_171B05:: @ 8171B05
waitmoncry waitmoncry
specialvar VAR_RESULT, GetDaycareState specialvar VAR_RESULT, GetDaycareState
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_171B4E goto_if_eq EventScript_171B4E
goto EventScript_1719F7 goto EventScript_1719F7
end end
EventScript_171B4E:: @ 8171B4E EventScript_171B4E:: @ 8171B4E
msgbox gUnknown_81BF94F, MSGBOX_YESNO msgbox gUnknown_81BF94F, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171A90 goto_if_eq EventScript_171A90
goto EventScript_1719F7 goto EventScript_1719F7
end end
@@ -193,7 +193,7 @@ EventScript_171B86:: @ 8171B86
call EventScript_171A41 call EventScript_171A41
msgbox gUnknown_81BFAE8, MSGBOX_YESNO msgbox gUnknown_81BFAE8, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171A90 goto_if_eq EventScript_171A90
msgbox gUnknown_81BF976 msgbox gUnknown_81BF976
release release
end end
@@ -202,7 +202,7 @@ EventScript_171BBF:: @ 8171BBF
special ShowDaycareLevelMenu special ShowDaycareLevelMenu
waitstate waitstate
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1719F7 goto_if_eq EventScript_1719F7
copyvar VAR_0x8004, VAR_RESULT copyvar VAR_0x8004, VAR_RESULT
specialvar VAR_RESULT, TakePokemonFromDaycare specialvar VAR_RESULT, TakePokemonFromDaycare
msgbox gUnknown_81BFA67 msgbox gUnknown_81BFA67
+1 -1
View File
@@ -126,7 +126,7 @@ FuchsiaCity_EventScript_166E83:: @ 8166E83
FuchsiaCity_EventScript_166E9C:: @ 8166E9C FuchsiaCity_EventScript_166E9C:: @ 8166E9C
lockall lockall
checkflag FLAG_0x272 checkflag FLAG_0x272
goto_if 1, EventScript_166EBE goto_if_eq EventScript_166EBE
setvar VAR_0x8004, SPECIES_KABUTO setvar VAR_0x8004, SPECIES_KABUTO
special sub_80CBDCC special sub_80CBDCC
drawmonpic SPECIES_KABUTO, 10, 3 drawmonpic SPECIES_KABUTO, 10, 3
+2 -2
View File
@@ -5,9 +5,9 @@ FuchsiaCity_Building1_EventScript_16D74C:: @ 816D74C
lock lock
faceplayer faceplayer
checkflag FLAG_0x23A checkflag FLAG_0x23A
goto_if 1, EventScript_16D7FA goto_if_eq EventScript_16D7FA
checkflag FLAG_0x189 checkflag FLAG_0x189
goto_if 1, EventScript_16D780 goto_if_eq EventScript_16D780
msgbox gUnknown_8198DF9, MSGBOX_YESNO msgbox gUnknown_8198DF9, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
call_if 1, EventScript_16D7E8 call_if 1, EventScript_16D7E8
+3 -3
View File
@@ -28,7 +28,7 @@ EventScript_16D5A6:: @ 816D5A6
msgbox gUnknown_819850E msgbox gUnknown_819850E
checkitemspace ITEM_TM06, 1 checkitemspace ITEM_TM06, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D5E7 goto_if_eq EventScript_16D5E7
additem ITEM_TM06, 1 additem ITEM_TM06, 1
giveitemfanfaremsg gUnknown_819858F, ITEM_TM06 giveitemfanfaremsg gUnknown_819858F, ITEM_TM06
setflag FLAG_0x259 setflag FLAG_0x259
@@ -78,7 +78,7 @@ FuchsiaCity_Gym_EventScript_16D688:: @ 816D688
lock lock
faceplayer faceplayer
checkflag FLAG_0x4B4 checkflag FLAG_0x4B4
goto_if 1, EventScript_16D69D goto_if_eq EventScript_16D69D
msgbox gUnknown_8198A5E msgbox gUnknown_8198A5E
release release
end end
@@ -91,7 +91,7 @@ EventScript_16D69D:: @ 816D69D
FuchsiaCity_Gym_EventScript_16D6A7:: @ 816D6A7 FuchsiaCity_Gym_EventScript_16D6A7:: @ 816D6A7
lockall lockall
checkflag FLAG_UNK824 checkflag FLAG_UNK824
goto_if 1, EventScript_16D6BB goto_if_eq EventScript_16D6BB
msgbox gUnknown_8198B4B msgbox gUnknown_8198B4B
releaseall releaseall
end end
+3 -3
View File
@@ -5,10 +5,10 @@ FuchsiaCity_House2_EventScript_16D817:: @ 816D817
lock lock
faceplayer faceplayer
checkflag FLAG_0x244 checkflag FLAG_0x244
goto_if 1, EventScript_16D83F goto_if_eq EventScript_16D83F
msgbox gUnknown_819918E, MSGBOX_YESNO msgbox gUnknown_819918E, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D849 goto_if_eq EventScript_16D849
msgbox gUnknown_8199337 msgbox gUnknown_8199337
release release
end end
@@ -22,7 +22,7 @@ EventScript_16D849:: @ 816D849
msgbox gUnknown_8199207 msgbox gUnknown_8199207
checkitemspace ITEM_GOOD_ROD, 1 checkitemspace ITEM_GOOD_ROD, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D88A goto_if_eq EventScript_16D88A
additem ITEM_GOOD_ROD, 1 additem ITEM_GOOD_ROD, 1
giveitemfanfaremsg gUnknown_819925E, ITEM_GOOD_ROD giveitemfanfaremsg gUnknown_819925E, ITEM_GOOD_ROD
msgbox gUnknown_8199296 msgbox gUnknown_8199296
+5 -5
View File
@@ -6,7 +6,7 @@ FuchsiaCity_House3_EventScript_16D895:: @ 816D895
faceplayer faceplayer
msgbox gUnknown_81993B9, MSGBOX_YESNO msgbox gUnknown_81993B9, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D8B0 goto_if_eq EventScript_16D8B0
goto EventScript_16D941 goto EventScript_16D941
end end
@@ -18,20 +18,20 @@ EventScript_16D8B0:: @ 816D8B0
goto_if 4, EventScript_16D941 goto_if 4, EventScript_16D941
special sub_80BFC14 special sub_80BFC14
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D937 goto_if_eq EventScript_16D937
special ScrSpecial_CountPokemonMoves special ScrSpecial_CountPokemonMoves
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D92A goto_if_eq EventScript_16D92A
msgbox gUnknown_8199445 msgbox gUnknown_8199445
fadescreen 1 fadescreen 1
special sub_80BF9BC special sub_80BF9BC
fadescreen 0 fadescreen 0
compare_var_to_value VAR_0x8005, 4 compare_var_to_value VAR_0x8005, 4
goto_if 1, EventScript_16D8B0 goto_if_eq EventScript_16D8B0
special ScrSpecial_GetPokemonNicknameAndMoveName special ScrSpecial_GetPokemonNicknameAndMoveName
msgbox gUnknown_8199485, MSGBOX_YESNO msgbox gUnknown_8199485, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D919 goto_if_eq EventScript_16D919
goto EventScript_16D941 goto EventScript_16D941
end end
+1 -1
View File
@@ -12,7 +12,7 @@ FuchsiaCity_Mart_EventScript_16D4EA:: @ 816D4EA
FuchsiaCity_Mart_EventScript_16D4F3:: @ 816D4F3 FuchsiaCity_Mart_EventScript_16D4F3:: @ 816D4F3
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -39,7 +39,7 @@ EventScript_16D312:: @ 816D312
textcolor 0 textcolor 0
msgbox gUnknown_8197E1A, MSGBOX_YESNO msgbox gUnknown_8197E1A, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D345 goto_if_eq EventScript_16D345
msgbox gUnknown_8197E48 msgbox gUnknown_8197E48
closemessage closemessage
applymovement 255, Movement_16D362 applymovement 255, Movement_16D362
@@ -103,7 +103,7 @@ EventScript_16D391:: @ 816D391
showmoneybox 0, 0, 0 showmoneybox 0, 0, 0
msgbox gUnknown_8197C87, MSGBOX_YESNO msgbox gUnknown_8197C87, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D3CA goto_if_eq EventScript_16D3CA
msgbox gUnknown_8197DE9 msgbox gUnknown_8197DE9
goto EventScript_16D49A goto EventScript_16D49A
end end
@@ -112,7 +112,7 @@ EventScript_16D3CA:: @ 816D3CA
call EventScript_16D462 call EventScript_16D462
checkmoney 500, 0 checkmoney 500, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D48C goto_if_eq EventScript_16D48C
takemoney 500, 0 takemoney 500, 0
updatemoneybox 0, 0, 0 updatemoneybox 0, 0, 0
msgbox gUnknown_8197D07 msgbox gUnknown_8197D07
@@ -159,7 +159,7 @@ EventScript_16D462:: @ 816D462
goto_if 5, EventScript_1A77A9 goto_if 5, EventScript_1A77A9
specialvar VAR_RESULT, sub_80CABD0 specialvar VAR_RESULT, sub_80CABD0
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_1A77A9 goto_if_eq EventScript_1A77A9
msgbox gUnknown_81BFEAC msgbox gUnknown_81BFEAC
goto EventScript_16D49A goto EventScript_16D49A
end end
@@ -205,7 +205,7 @@ FuchsiaCity_SafariZone_Entrance_EventScript_16D4B7:: @ 816D4B7
faceplayer faceplayer
msgbox gUnknown_8197EB0, MSGBOX_YESNO msgbox gUnknown_8197EB0, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D4D6 goto_if_eq EventScript_16D4D6
msgbox gUnknown_819809E msgbox gUnknown_819809E
release release
end end
@@ -12,7 +12,7 @@ IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65:: @ 816EA65
EventScript_16EA79:: @ 816EA79 EventScript_16EA79:: @ 816EA79
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_1A77A9 goto_if_eq EventScript_1A77A9
setobjectxyperm 4, 4, 2 setobjectxyperm 4, 4, 2
return return
@@ -21,14 +21,14 @@ IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A:: @ 816EA8A
faceplayer faceplayer
specialvar VAR_RESULT, sub_806E25C specialvar VAR_RESULT, sub_806E25C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16EAA6 goto_if_eq EventScript_16EAA6
msgbox gUnknown_819A8D8 msgbox gUnknown_819A8D8
release release
end end
EventScript_16EAA6:: @ 816EAA6 EventScript_16EAA6:: @ 816EAA6
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_16EAB9 goto_if_eq EventScript_16EAB9
msgbox gUnknown_819A943 msgbox gUnknown_819A943
release release
end end
@@ -45,7 +45,7 @@ IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3:: @ 816EAC3
IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
+1 -1
View File
@@ -13,7 +13,7 @@ LavenderTown_EventScript_16687D:: @ 816687D
faceplayer faceplayer
msgbox gUnknown_817F52E, MSGBOX_YESNO msgbox gUnknown_817F52E, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16689C goto_if_eq EventScript_16689C
msgbox gUnknown_817F568 msgbox gUnknown_817F568
release release
end end
+1 -1
View File
@@ -5,7 +5,7 @@ LavenderTown_House1_EventScript_16B233:: @ 816B233
lock lock
faceplayer faceplayer
checkflag FLAG_0x23C checkflag FLAG_0x23C
goto_if 1, EventScript_16B248 goto_if_eq EventScript_16B248
msgbox gUnknown_819397D msgbox gUnknown_819397D
release release
end end
+8 -8
View File
@@ -6,9 +6,9 @@ LavenderTown_House2_EventScript_16B266:: @ 816B266
faceplayer faceplayer
msgbox gUnknown_8193A4B, MSGBOX_YESNO msgbox gUnknown_8193A4B, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16B287 goto_if_eq EventScript_16B287
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16B2AA goto_if_eq EventScript_16B2AA
end end
EventScript_16B287:: @ 816B287 EventScript_16B287:: @ 816B287
@@ -29,20 +29,20 @@ EventScript_16B2AA:: @ 816B2AA
EventScript_16B2B4:: @ 816B2B4 EventScript_16B2B4:: @ 816B2B4
specialvar VAR_RESULT, sub_80CAD54 specialvar VAR_RESULT, sub_80CAD54
compare_var_to_value VAR_RESULT, SPECIES_EGG compare_var_to_value VAR_RESULT, SPECIES_EGG
goto_if 1, EventScript_16B307 goto_if_eq EventScript_16B307
special TV_CopyNicknameToStringVar1AndEnsureTerminated special TV_CopyNicknameToStringVar1AndEnsureTerminated
special TV_CheckMonOTIDEqualsPlayerID special TV_CheckMonOTIDEqualsPlayerID
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16B311 goto_if_eq EventScript_16B311
specialvar VAR_RESULT, sub_80CAD7C specialvar VAR_RESULT, sub_80CAD7C
special TV_CopyNicknameToStringVar1AndEnsureTerminated special TV_CopyNicknameToStringVar1AndEnsureTerminated
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16B311 goto_if_eq EventScript_16B311
msgbox gUnknown_8193AD2, MSGBOX_YESNO msgbox gUnknown_8193AD2, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16B31B goto_if_eq EventScript_16B31B
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16B2AA goto_if_eq EventScript_16B2AA
end end
EventScript_16B307:: @ 816B307 EventScript_16B307:: @ 816B307
@@ -61,7 +61,7 @@ EventScript_16B31B:: @ 816B31B
specialvar VAR_RESULT, sub_80CBFA0 specialvar VAR_RESULT, sub_80CBFA0
special TV_CopyNicknameToStringVar1AndEnsureTerminated special TV_CopyNicknameToStringVar1AndEnsureTerminated
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16B345 goto_if_eq EventScript_16B345
msgbox gUnknown_8193BF0 msgbox gUnknown_8193BF0
release release
end end
+1 -1
View File
@@ -16,7 +16,7 @@ LavenderTown_Mart_EventScript_16B362:: @ 816B362
LavenderTown_Mart_EventScript_16B36B:: @ 816B36B LavenderTown_Mart_EventScript_16B36B:: @ 816B36B
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
@@ -5,11 +5,11 @@ LavenderTown_VolunteerPokemonHouse_EventScript_16B14A:: @ 816B14A
lock lock
faceplayer faceplayer
checkflag FLAG_0x23D checkflag FLAG_0x23D
goto_if 1, EventScript_16B196 goto_if_eq EventScript_16B196
msgbox gUnknown_81936FF msgbox gUnknown_81936FF
checkitemspace ITEM_POKE_FLUTE, 1 checkitemspace ITEM_POKE_FLUTE, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16B1A0 goto_if_eq EventScript_16B1A0
setflag FLAG_0x23D setflag FLAG_0x23D
additem ITEM_POKE_FLUTE, 1 additem ITEM_POKE_FLUTE, 1
giveitemfanfaremsg gUnknown_81937BD, ITEM_POKE_FLUTE, 1, BGM_FRLG_ME_KEYITEM giveitemfanfaremsg gUnknown_81937BD, ITEM_POKE_FLUTE, 1, BGM_FRLG_ME_KEYITEM
@@ -45,7 +45,7 @@ LavenderTown_VolunteerPokemonHouse_EventScript_16B1CC:: @ 816B1CC
lock lock
faceplayer faceplayer
checkflag FLAG_0x23C checkflag FLAG_0x23C
goto_if 1, EventScript_16B1E1 goto_if_eq EventScript_16B1E1
msgbox gUnknown_81935ED msgbox gUnknown_81935ED
release release
end end
+6 -6
View File
@@ -26,9 +26,9 @@ EventScript_163975:: @ 8163975
MtEmber_Exterior_EventScript_16397F:: @ 816397F MtEmber_Exterior_EventScript_16397F:: @ 816397F
lock lock
checktrainerflag FLAG_0x219 checktrainerflag FLAG_0x219
goto_if 1, EventScript_16399E goto_if_eq EventScript_16399E
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4
goto_if 1, EventScript_1639A8 goto_if_eq EventScript_1639A8
msgbox gUnknown_817A82A msgbox gUnknown_817A82A
release release
end end
@@ -46,7 +46,7 @@ EventScript_1639A8:: @ 81639A8
trainerbattle 3, 537, 0, Text_17AA34 trainerbattle 3, 537, 0, Text_17AA34
msgbox gUnknown_817AA3F msgbox gUnknown_817AA3F
checktrainerflag FLAG_0x21A checktrainerflag FLAG_0x21A
goto_if 1, EventScript_1639DB goto_if_eq EventScript_1639DB
release release
end end
@@ -64,9 +64,9 @@ MtEmber_Exterior_EventScript_1639F0:: @ 81639F0
lock lock
faceplayer faceplayer
checktrainerflag FLAG_0x21A checktrainerflag FLAG_0x21A
goto_if 1, EventScript_163A1B goto_if_eq EventScript_163A1B
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4
goto_if 1, EventScript_163A25 goto_if_eq EventScript_163A25
msgbox gUnknown_817A88C msgbox gUnknown_817A88C
closemessage closemessage
applymovement 3, Movement_1A75E5 applymovement 3, Movement_1A75E5
@@ -85,7 +85,7 @@ EventScript_163A25:: @ 8163A25
trainerbattle 3, 538, 0, Text_17AA8A trainerbattle 3, 538, 0, Text_17AA8A
msgbox gUnknown_817AA99 msgbox gUnknown_817AA99
checktrainerflag FLAG_0x219 checktrainerflag FLAG_0x219
goto_if 1, EventScript_1639DB goto_if_eq EventScript_1639DB
release release
end end
+4 -4
View File
@@ -27,7 +27,7 @@ EventScript_163B2F:: @ 8163B2F
MtEmber_Summit_EventScript_163B33:: @ 8163B33 MtEmber_Summit_EventScript_163B33:: @ 8163B33
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
@@ -46,11 +46,11 @@ MtEmber_Summit_EventScript_163B33:: @ 8163B33
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_163B96 goto_if_eq EventScript_163B96
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_163B9F goto_if_eq EventScript_163B9F
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_163B9F goto_if_eq EventScript_163B9F
setflag FLAG_0x2BD setflag FLAG_0x2BD
release release
end end
+4 -4
View File
@@ -24,9 +24,9 @@ MtMoon_B2F_EventScript_1606C2:: @ 81606C2
lock lock
faceplayer faceplayer
checkflag FLAG_0x232 checkflag FLAG_0x232
goto_if 1, EventScript_160707 goto_if_eq EventScript_160707
checktrainerflag FLAG_0x0AA checktrainerflag FLAG_0x0AA
goto_if 1, EventScript_160711 goto_if_eq EventScript_160711
call EventScript_1606DD call EventScript_1606DD
release release
end end
@@ -58,7 +58,7 @@ MtMoon_B2F_EventScript_16071B:: @ 816071B
faceplayer faceplayer
msgbox gUnknown_8172E77, MSGBOX_YESNO msgbox gUnknown_8172E77, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1607DE goto_if_eq EventScript_1607DE
removeobject 1 removeobject 1
additem ITEM_DOME_FOSSIL, 1 additem ITEM_DOME_FOSSIL, 1
giveitemfanfaremsg gUnknown_8172ECD, ITEM_DOME_FOSSIL, 1, BGM_FRLG_ME_KEYITEM giveitemfanfaremsg gUnknown_8172ECD, ITEM_DOME_FOSSIL, 1, BGM_FRLG_ME_KEYITEM
@@ -91,7 +91,7 @@ MtMoon_B2F_EventScript_16077F:: @ 816077F
faceplayer faceplayer
msgbox gUnknown_8172E94, MSGBOX_YESNO msgbox gUnknown_8172E94, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1607DE goto_if_eq EventScript_1607DE
removeobject 2 removeobject 2
additem ITEM_HELIX_FOSSIL, 1 additem ITEM_HELIX_FOSSIL, 1
giveitemfanfaremsg gUnknown_8172EB2, ITEM_HELIX_FOSSIL, 1, BGM_FRLG_ME_KEYITEM giveitemfanfaremsg gUnknown_8172EB2, ITEM_HELIX_FOSSIL, 1, BGM_FRLG_ME_KEYITEM
+5 -5
View File
@@ -16,7 +16,7 @@ EventScript_165105:: @ 8165105
EventScript_165109:: @ 8165109 EventScript_165109:: @ 8165109
checkflag FLAG_0x2F5 checkflag FLAG_0x2F5
goto_if 1, EventScript_1A77A9 goto_if_eq EventScript_1A77A9
clearflag FLAG_0x09B clearflag FLAG_0x09B
return return
@@ -35,7 +35,7 @@ EventScript_165120:: @ 8165120
NavelRock_Base_EventScript_165134:: @ 8165134 NavelRock_Base_EventScript_165134:: @ 8165134
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
@@ -70,11 +70,11 @@ NavelRock_Base_EventScript_165134:: @ 8165134
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_1651D9 goto_if_eq EventScript_1651D9
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_1651E7 goto_if_eq EventScript_1651E7
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_1651E7 goto_if_eq EventScript_1651E7
setflag FLAG_0x2F2 setflag FLAG_0x2F2
release release
end end
+5 -5
View File
@@ -18,7 +18,7 @@ EventScript_164FBD:: @ 8164FBD
EventScript_164FC6:: @ 8164FC6 EventScript_164FC6:: @ 8164FC6
setvar VAR_0x4001, 1 setvar VAR_0x4001, 1
checkflag FLAG_0x2F6 checkflag FLAG_0x2F6
goto_if 1, EventScript_1A77A9 goto_if_eq EventScript_1A77A9
setvar VAR_0x4001, 0 setvar VAR_0x4001, 0
clearflag FLAG_0x09C clearflag FLAG_0x09C
return return
@@ -38,7 +38,7 @@ EventScript_164FE7:: @ 8164FE7
NavelRock_Summit_EventScript_164FFB:: @ 8164FFB NavelRock_Summit_EventScript_164FFB:: @ 8164FFB
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lockall lockall
setvar VAR_0x4001, 1 setvar VAR_0x4001, 1
@@ -75,11 +75,11 @@ NavelRock_Summit_EventScript_164FFB:: @ 8164FFB
setvar VAR_LAST_TALKED, 1 setvar VAR_LAST_TALKED, 1
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_1650B4 goto_if_eq EventScript_1650B4
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_1650C2 goto_if_eq EventScript_1650C2
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_1650C2 goto_if_eq EventScript_1650C2
setflag FLAG_0x2F3 setflag FLAG_0x2F3
releaseall releaseall
end end
+2 -2
View File
@@ -84,9 +84,9 @@ OneIsland_EventScript_167517:: @ 8167517
lock lock
faceplayer faceplayer
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_16753F goto_if_eq EventScript_16753F
checkflag FLAG_0x2A1 checkflag FLAG_0x2A1
goto_if 1, EventScript_167535 goto_if_eq EventScript_167535
msgbox gUnknown_818174E msgbox gUnknown_818174E
release release
end end
@@ -31,7 +31,7 @@ OneIsland_KindleRoad_EmberSpa_EventScript_165399:: @ 8165399
lock lock
faceplayer faceplayer
checkflag FLAG_0x2EF checkflag FLAG_0x2EF
goto_if 1, EventScript_1653C5 goto_if_eq EventScript_1653C5
msgbox gUnknown_817D622 msgbox gUnknown_817D622
giveitem ITEM_HM06 giveitem ITEM_HM06
setflag FLAG_0x2EF setflag FLAG_0x2EF
@@ -193,7 +193,7 @@ OneIsland_PokemonCenter_1F_EventScript_170E94:: @ 8170E94
OneIsland_PokemonCenter_1F_EventScript_170E9D:: @ 8170E9D OneIsland_PokemonCenter_1F_EventScript_170E9D:: @ 8170E9D
lock lock
checkflag FLAG_0x2A1 checkflag FLAG_0x2A1
goto_if 1, EventScript_170EB1 goto_if_eq EventScript_170EB1
msgbox gUnknown_81A1266 msgbox gUnknown_81A1266
release release
end end
@@ -209,22 +209,22 @@ OneIsland_PokemonCenter_1F_EventScript_170EC5:: @ 8170EC5
lock lock
faceplayer faceplayer
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 7 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 7
goto_if 1, EventScript_170F35 goto_if_eq EventScript_170F35
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 6 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 6
goto_if 1, EventScript_170F9B goto_if_eq EventScript_170F9B
checkflag FLAG_0x2DC checkflag FLAG_0x2DC
goto_if 1, EventScript_170FA5 goto_if_eq EventScript_170FA5
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5
goto_if 1, EventScript_17103A goto_if_eq EventScript_17103A
checkflag FLAG_0x2DD checkflag FLAG_0x2DD
goto_if 1, EventScript_171044 goto_if_eq EventScript_171044
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4
goto_if 1, EventScript_1710F2 goto_if_eq EventScript_1710F2
specialvar VAR_RESULT, sub_806E25C specialvar VAR_RESULT, sub_806E25C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_1710FC goto_if_eq EventScript_1710FC
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 3 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 3
goto_if 1, EventScript_171134 goto_if_eq EventScript_171134
msgbox gUnknown_81A1321 msgbox gUnknown_81A1321
closemessage closemessage
applymovement 3, Movement_1A75E5 applymovement 3, Movement_1A75E5
@@ -236,9 +236,9 @@ EventScript_170F35:: @ 8170F35
msgbox gUnknown_81A1EBD msgbox gUnknown_81A1EBD
random 3 random 3
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_170F6D goto_if_eq EventScript_170F6D
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_170F84 goto_if_eq EventScript_170F84
setvar VAR_0x8004, 13 setvar VAR_0x8004, 13
setvar VAR_0x8005, 5 setvar VAR_0x8005, 5
special SetFlavorTextFlagFromSpecialVars special SetFlavorTextFlagFromSpecialVars
@@ -331,14 +331,14 @@ EventScript_171044:: @ 8171044
waitmovement 0 waitmovement 0
msgbox gUnknown_81A19AA, MSGBOX_YESNO msgbox gUnknown_81A19AA, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_171099 goto_if_eq EventScript_171099
goto EventScript_1710B2 goto EventScript_1710B2
end end
EventScript_171099:: @ 8171099 EventScript_171099:: @ 8171099
msgbox gUnknown_81A1A08, MSGBOX_YESNO msgbox gUnknown_81A1A08, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_171099 goto_if_eq EventScript_171099
goto EventScript_1710B2 goto EventScript_1710B2
end end
@@ -411,7 +411,7 @@ OneIsland_PokemonCenter_1F_EventScript_17115A:: @ 817115A
lock lock
faceplayer faceplayer
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_17116F goto_if_eq EventScript_17116F
msgbox gUnknown_81A218D msgbox gUnknown_81A218D
release release
end end
@@ -424,9 +424,9 @@ EventScript_17116F:: @ 817116F
OneIsland_PokemonCenter_1F_EventScript_171179:: @ 8171179 OneIsland_PokemonCenter_1F_EventScript_171179:: @ 8171179
lockall lockall
checkflag FLAG_0x844 checkflag FLAG_0x844
goto_if 1, EventScript_1711A0 goto_if_eq EventScript_1711A0
checkflag FLAG_0x2A1 checkflag FLAG_0x2A1
goto_if 1, EventScript_171196 goto_if_eq EventScript_171196
msgbox gUnknown_81A223F msgbox gUnknown_81A223F
releaseall releaseall
end end
+5 -5
View File
@@ -27,7 +27,7 @@ EventScript_1654A2:: @ 81654A2
EventScript_1654A8:: @ 81654A8 EventScript_1654A8:: @ 81654A8
checkflag FLAG_0x291 checkflag FLAG_0x291
goto_if 1, EventScript_1654BD goto_if_eq EventScript_1654BD
setobjectxyperm 1, 5, 15 setobjectxyperm 1, 5, 15
setobjectmovementtype 1, 7 setobjectmovementtype 1, 7
return return
@@ -377,13 +377,13 @@ Movement_165758:: @ 8165758
PalletTown_EventScript_16575C:: @ 816575C PalletTown_EventScript_16575C:: @ 816575C
lock lock
compare_var_to_value VAR_0x4070, 2 compare_var_to_value VAR_0x4070, 2
goto_if 1, EventScript_1657ED goto_if_eq EventScript_1657ED
compare_var_to_value VAR_0x4070, 1 compare_var_to_value VAR_0x4070, 1
goto_if 1, EventScript_165815 goto_if_eq EventScript_165815
compare_var_to_value VAR_0x4002, 1 compare_var_to_value VAR_0x4002, 1
goto_if 1, EventScript_1658C2 goto_if_eq EventScript_1658C2
checkflag FLAG_0x002 checkflag FLAG_0x002
goto_if 1, EventScript_165801 goto_if_eq EventScript_165801
msgbox gUnknown_81B1C8B msgbox gUnknown_81B1C8B
applymovement 1, Movement_1A75E1 applymovement 1, Movement_1A75E1
waitmovement 0 waitmovement 0
+16 -23
View File
@@ -25,13 +25,13 @@ PalletTown_GarysHouse_EventScript_168D56:: @ 8168D56
setvar VAR_0x8005, 2 setvar VAR_0x8005, 2
special UpdatePickStateFromSpecialVar8005 special UpdatePickStateFromSpecialVar8005
checkflag FLAG_0x82C checkflag FLAG_0x82C
goto_if 1, EventScript_168DB9 goto_if_eq EventScript_168DB9
compare_var_to_value VAR_0x4001, 1 compare_var_to_value VAR_0x4001, 1
goto_if 1, EventScript_168EEC goto_if_eq EventScript_168EEC
compare_var_to_value VAR_0x4058, 2 compare_var_to_value VAR_0x4058, 2
goto_if 1, EventScript_168F59 goto_if_eq EventScript_168F59
compare_var_to_value VAR_0x4058, 1 compare_var_to_value VAR_0x4058, 1
goto_if 1, EventScript_168EF6 goto_if_eq EventScript_168EF6
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 1 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 1
goto_if 4, EventScript_168DAF goto_if 4, EventScript_168DAF
msgbox gUnknown_818D58C msgbox gUnknown_818D58C
@@ -49,13 +49,13 @@ EventScript_168DAF:: @ 8168DAF
EventScript_168DB9:: @ 8168DB9 EventScript_168DB9:: @ 8168DB9
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
compare_var_to_value VAR_MIRAGE_RND_L, 500 compare_var_to_value VAR_MIRAGE_RND_L, 500
goto_if 0, EventScript_168E46 goto_if 0, EventScript_168E46
msgbox gUnknown_818D7D3, MSGBOX_YESNO msgbox gUnknown_818D7D3, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_168E3C goto_if_eq EventScript_168E3C
msgbox gUnknown_818D8B2 msgbox gUnknown_818D8B2
special sub_80BF8FC special sub_80BF8FC
waitstate waitstate
@@ -65,7 +65,7 @@ EventScript_168DB9:: @ 8168DB9
goto_if 4, EventScript_168E3C goto_if 4, EventScript_168E3C
specialvar VAR_RESULT, sub_80CAD54 specialvar VAR_RESULT, sub_80CAD54
compare_var_to_value VAR_RESULT, SPECIES_EGG compare_var_to_value VAR_RESULT, SPECIES_EGG
goto_if 1, EventScript_168E32 goto_if_eq EventScript_168E32
msgbox gUnknown_818D8CC msgbox gUnknown_818D8CC
closemessage closemessage
fadescreen 1 fadescreen 1
@@ -91,21 +91,14 @@ EventScript_168E3C:: @ 8168E3C
EventScript_168E46:: @ 8168E46 EventScript_168E46:: @ 8168E46
msgbox gUnknown_818D9A5 msgbox gUnknown_818D9A5
specialvar VAR_RESULT, sub_80CA76C specialvar VAR_RESULT, sub_80CA76C
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_168EA6
goto_if 1, EventScript_168EA6 case 1, EventScript_168EB0
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_168EBA
goto_if 1, EventScript_168EB0 case 3, EventScript_168EC4
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_168ECE
goto_if 1, EventScript_168EBA case 5, EventScript_168ED8
compare_var_to_value VAR_0x8000, 3 case 6, EventScript_168EE2
goto_if 1, EventScript_168EC4
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_168ECE
compare_var_to_value VAR_0x8000, 5
goto_if 1, EventScript_168ED8
compare_var_to_value VAR_0x8000, 6
goto_if 1, EventScript_168EE2
end end
EventScript_168EA6:: @ 8168EA6 EventScript_168EA6:: @ 8168EA6
@@ -153,7 +146,7 @@ EventScript_168EF6:: @ 8168EF6
closemessage closemessage
checkitemspace ITEM_TOWN_MAP, 1 checkitemspace ITEM_TOWN_MAP, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_168F4F goto_if_eq EventScript_168F4F
applymovement 1, Movement_1A75EB applymovement 1, Movement_1A75EB
waitmovement 0 waitmovement 0
removeobject 2 removeobject 2
@@ -5,7 +5,7 @@ PalletTown_PlayersHouse_1F_EventScript_168C09:: @ 8168C09
lock lock
faceplayer faceplayer
checkflag FLAG_0x258 checkflag FLAG_0x258
goto_if 1, EventScript_168C4A goto_if_eq EventScript_168C4A
checkplayergender checkplayergender
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
call_if 1, EventScript_168C38 call_if 1, EventScript_168C38
@@ -36,7 +36,7 @@ EventScript_168C4A:: @ 8168C4A
PalletTown_PlayersHouse_1F_EventScript_168C62:: @ 8168C62 PalletTown_PlayersHouse_1F_EventScript_168C62:: @ 8168C62
lockall lockall
compare_var_to_value VAR_FACING, 2 compare_var_to_value VAR_FACING, 2
goto_if 1, EventScript_168C78 goto_if_eq EventScript_168C78
msgbox gUnknown_818D4F9 msgbox gUnknown_818D4F9
releaseall releaseall
end end
@@ -33,7 +33,7 @@ gUnknown_8168CE4:: @ 8168CE4
PalletTown_PlayersHouse_2F_EventScript_168CE4:: @ 8168CE4 PalletTown_PlayersHouse_2F_EventScript_168CE4:: @ 8168CE4
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lockall lockall
setvar VAR_0x8004, 32 setvar VAR_0x8004, 32
special sub_812B220 special sub_812B220
@@ -312,20 +312,20 @@ EventScript_16930B:: @ 816930B
applymovement 4, Movement_1A75F1 applymovement 4, Movement_1A75F1
waitmovement 0 waitmovement 0
compare_var_to_value VAR_STARTER_MON, 0 compare_var_to_value VAR_STARTER_MON, 0
goto_if 1, EventScript_1693D2 goto_if_eq EventScript_1693D2
compare_var_to_value VAR_STARTER_MON, 1 compare_var_to_value VAR_STARTER_MON, 1
goto_if 1, EventScript_16944D goto_if_eq EventScript_16944D
compare_var_to_value VAR_STARTER_MON, 2 compare_var_to_value VAR_STARTER_MON, 2
goto_if 1, EventScript_16935A goto_if_eq EventScript_16935A
end end
EventScript_16935A:: @ 816935A EventScript_16935A:: @ 816935A
compare_var_to_value VAR_0x4002, 1 compare_var_to_value VAR_0x4002, 1
goto_if 1, EventScript_16937C goto_if_eq EventScript_16937C
compare_var_to_value VAR_0x4002, 2 compare_var_to_value VAR_0x4002, 2
goto_if 1, EventScript_16938C goto_if_eq EventScript_16938C
compare_var_to_value VAR_0x4002, 3 compare_var_to_value VAR_0x4002, 3
goto_if 1, EventScript_16939C goto_if_eq EventScript_16939C
end end
EventScript_16937C:: @ 816937C EventScript_16937C:: @ 816937C
@@ -377,11 +377,11 @@ Movement_1693CD:: @ 81693CD
EventScript_1693D2:: @ 81693D2 EventScript_1693D2:: @ 81693D2
compare_var_to_value VAR_0x4002, 1 compare_var_to_value VAR_0x4002, 1
goto_if 1, EventScript_1693F4 goto_if_eq EventScript_1693F4
compare_var_to_value VAR_0x4002, 2 compare_var_to_value VAR_0x4002, 2
goto_if 1, EventScript_169404 goto_if_eq EventScript_169404
compare_var_to_value VAR_0x4002, 3 compare_var_to_value VAR_0x4002, 3
goto_if 1, EventScript_169414 goto_if_eq EventScript_169414
end end
EventScript_1693F4:: @ 81693F4 EventScript_1693F4:: @ 81693F4
@@ -436,11 +436,11 @@ Movement_169447:: @ 8169447
EventScript_16944D:: @ 816944D EventScript_16944D:: @ 816944D
compare_var_to_value VAR_0x4002, 1 compare_var_to_value VAR_0x4002, 1
goto_if 1, EventScript_16946F goto_if_eq EventScript_16946F
compare_var_to_value VAR_0x4002, 2 compare_var_to_value VAR_0x4002, 2
goto_if 1, EventScript_16947F goto_if_eq EventScript_16947F
compare_var_to_value VAR_0x4002, 3 compare_var_to_value VAR_0x4002, 3
goto_if 1, EventScript_16948F goto_if_eq EventScript_16948F
end end
EventScript_16946F:: @ 816946F EventScript_16946F:: @ 816946F
@@ -575,9 +575,9 @@ PalletTown_ProfessorOaksLab_EventScript_16955F:: @ 816955F
lock lock
faceplayer faceplayer
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3
goto_if 1, EventScript_16958B goto_if_eq EventScript_16958B
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2
goto_if 1, EventScript_169581 goto_if_eq EventScript_169581
msgbox gUnknown_818DC67 msgbox gUnknown_818DC67
release release
end end
@@ -596,23 +596,23 @@ PalletTown_ProfessorOaksLab_EventScript_169595:: @ 8169595
lock lock
faceplayer faceplayer
checkflag FLAG_0x002 checkflag FLAG_0x002
goto_if 1, EventScript_169600 goto_if_eq EventScript_169600
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 9 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 9
goto_if 1, EventScript_169903 goto_if_eq EventScript_169903
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 8 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 8
goto_if 1, EventScript_169A6E goto_if_eq EventScript_169A6E
checkflag FLAG_0x82C checkflag FLAG_0x82C
goto_if 1, EventScript_1699CE goto_if_eq EventScript_1699CE
compare_var_to_value VAR_0x4052, 1 compare_var_to_value VAR_0x4052, 1
goto_if 1, EventScript_169903 goto_if_eq EventScript_169903
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 6 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 6
goto_if 1, EventScript_1698D6 goto_if_eq EventScript_1698D6
compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 1 compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 1
goto_if 4, EventScript_16961E goto_if 4, EventScript_16961E
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 4 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 4
goto_if 1, EventScript_169614 goto_if_eq EventScript_169614
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3
goto_if 1, EventScript_16960A goto_if_eq EventScript_16960A
msgbox gUnknown_818E116 msgbox gUnknown_818E116
release release
end end
@@ -842,14 +842,14 @@ EventScript_1698D6:: @ 81698D6
getnumberstring 0, VAR_0x8008 getnumberstring 0, VAR_0x8008
getnumberstring 1, VAR_0x8009 getnumberstring 1, VAR_0x8009
compare_var_to_value VAR_0x8009, 1 compare_var_to_value VAR_0x8009, 1
goto_if 1, EventScript_1699FB goto_if_eq EventScript_1699FB
goto EventScript_169903 goto EventScript_169903
end end
EventScript_169903:: @ 8169903 EventScript_169903:: @ 8169903
call EventScript_1A737B call EventScript_1A737B
checkflag FLAG_0x2F4 checkflag FLAG_0x2F4
goto_if 1, EventScript_169913 goto_if_eq EventScript_169913
release release
end end
@@ -988,15 +988,15 @@ EventScript_1699F9:: @ 81699F9
EventScript_1699FB:: @ 81699FB EventScript_1699FB:: @ 81699FB
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
checkflag FLAG_0x24F checkflag FLAG_0x24F
goto_if 1, EventScript_169A6E goto_if_eq EventScript_169A6E
checkflag FLAG_0x247 checkflag FLAG_0x247
goto_if 1, EventScript_169A78 goto_if_eq EventScript_169A78
checkitem ITEM_POKE_BALL, 1 checkitem ITEM_POKE_BALL, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_169A34 goto_if_eq EventScript_169A34
goto EventScript_169A6E goto EventScript_169A6E
end end
@@ -1153,7 +1153,7 @@ PalletTown_ProfessorOaksLab_EventScript_169BAB:: @ 8169BAB
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3
goto_if 4, EventScript_169DE4 goto_if 4, EventScript_169DE4
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2
goto_if 1, EventScript_169BE1 goto_if_eq EventScript_169BE1
msgbox gUnknown_818EA19 msgbox gUnknown_818EA19
release release
end end
@@ -1164,35 +1164,35 @@ EventScript_169BE1:: @ 8169BE1
drawmonpic VAR_0x4002, 10, 3 drawmonpic VAR_0x4002, 10, 3
textcolor 0 textcolor 0
compare_var_to_value VAR_0x4001, 0 compare_var_to_value VAR_0x4001, 0
goto_if 1, EventScript_169C14 goto_if_eq EventScript_169C14
compare_var_to_value VAR_0x4001, 1 compare_var_to_value VAR_0x4001, 1
goto_if 1, EventScript_169C33 goto_if_eq EventScript_169C33
compare_var_to_value VAR_0x4001, 2 compare_var_to_value VAR_0x4001, 2
goto_if 1, EventScript_169C52 goto_if_eq EventScript_169C52
end end
EventScript_169C14:: @ 8169C14 EventScript_169C14:: @ 8169C14
msgbox gUnknown_818E272, MSGBOX_YESNO msgbox gUnknown_818E272, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_169C74 goto_if_eq EventScript_169C74
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_169C71 goto_if_eq EventScript_169C71
end end
EventScript_169C33:: @ 8169C33 EventScript_169C33:: @ 8169C33
msgbox gUnknown_818E207, MSGBOX_YESNO msgbox gUnknown_818E207, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_169C74 goto_if_eq EventScript_169C74
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_169C71 goto_if_eq EventScript_169C71
end end
EventScript_169C52:: @ 8169C52 EventScript_169C52:: @ 8169C52
msgbox gUnknown_818E194, MSGBOX_YESNO msgbox gUnknown_818E194, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_169C74 goto_if_eq EventScript_169C74
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_169C71 goto_if_eq EventScript_169C71
end end
EventScript_169C71:: @ 8169C71 EventScript_169C71:: @ 8169C71
@@ -1216,9 +1216,9 @@ EventScript_169C74:: @ 8169C74
waitfanfare waitfanfare
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_169CCC goto_if_eq EventScript_169CCC
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_169CDC goto_if_eq EventScript_169CDC
end end
EventScript_169CCC:: @ 8169CCC EventScript_169CCC:: @ 8169CCC
@@ -1230,11 +1230,11 @@ EventScript_169CCC:: @ 8169CCC
EventScript_169CDC:: @ 8169CDC EventScript_169CDC:: @ 8169CDC
closemessage closemessage
compare_var_to_value VAR_0x4001, 0 compare_var_to_value VAR_0x4001, 0
goto_if 1, EventScript_169CFF goto_if_eq EventScript_169CFF
compare_var_to_value VAR_0x4001, 1 compare_var_to_value VAR_0x4001, 1
goto_if 1, EventScript_169D1F goto_if_eq EventScript_169D1F
compare_var_to_value VAR_0x4001, 2 compare_var_to_value VAR_0x4001, 2
goto_if 1, EventScript_169D0F goto_if_eq EventScript_169D0F
end end
EventScript_169CFF:: @ 8169CFF EventScript_169CFF:: @ 8169CFF
@@ -1313,7 +1313,7 @@ PalletTown_ProfessorOaksLab_EventScript_169D78:: @ 8169D78
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3
goto_if 4, EventScript_169DE4 goto_if 4, EventScript_169DE4
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2
goto_if 1, EventScript_169BE1 goto_if_eq EventScript_169BE1
msgbox gUnknown_818EA19 msgbox gUnknown_818EA19
release release
end end
@@ -1328,7 +1328,7 @@ PalletTown_ProfessorOaksLab_EventScript_169DAE:: @ 8169DAE
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3
goto_if 4, EventScript_169DE4 goto_if 4, EventScript_169DE4
compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2
goto_if 1, EventScript_169BE1 goto_if_eq EventScript_169BE1
msgbox gUnknown_818EA19 msgbox gUnknown_818EA19
release release
end end
@@ -1342,7 +1342,7 @@ PalletTown_ProfessorOaksLab_EventScript_169DEE:: @ 8169DEE
lock lock
faceplayer faceplayer
checkflag FLAG_0x82C checkflag FLAG_0x82C
goto_if 1, EventScript_169E03 goto_if_eq EventScript_169E03
msgbox gUnknown_818EBE6 msgbox gUnknown_818EBE6
release release
end end
@@ -1359,7 +1359,7 @@ PalletTown_ProfessorOaksLab_EventScript_169E1A:: @ 8169E1A
lock lock
faceplayer faceplayer
checkflag FLAG_0x82C checkflag FLAG_0x82C
goto_if 1, EventScript_169E2F goto_if_eq EventScript_169E2F
msgbox gUnknown_818EBE6 msgbox gUnknown_818EBE6
release release
end end
+2 -2
View File
@@ -1033,7 +1033,7 @@ PewterCity_EventScript_16607E:: @ 816607E
faceplayer faceplayer
msgbox gUnknown_817E53E, MSGBOX_YESNO msgbox gUnknown_817E53E, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_166136 goto_if_eq EventScript_166136
msgbox gUnknown_817E589 msgbox gUnknown_817E589
closemessage closemessage
delay 10 delay 10
@@ -1354,7 +1354,7 @@ PewterCity_EventScript_166244:: @ 8166244
faceplayer faceplayer
msgbox gUnknown_817E602, MSGBOX_YESNO msgbox gUnknown_817E602, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_166263 goto_if_eq EventScript_166263
msgbox gUnknown_817E644 msgbox gUnknown_817E644
release release
end end
+5 -5
View File
@@ -30,7 +30,7 @@ EventScript_16A5F3:: @ 816A5F3
msgbox gUnknown_8190FC1 msgbox gUnknown_8190FC1
checkitemspace ITEM_TM39, 1 checkitemspace ITEM_TM39, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16A634 goto_if_eq EventScript_16A634
additem ITEM_TM39, 1 additem ITEM_TM39, 1
giveitemfanfaremsg gUnknown_8190FDB, ITEM_TM39 giveitemfanfaremsg gUnknown_8190FDB, ITEM_TM39
setflag FLAG_0x254 setflag FLAG_0x254
@@ -52,12 +52,12 @@ PewterCity_Gym_EventScript_16A655:: @ 816A655
lock lock
faceplayer faceplayer
checkflag FLAG_0x4B0 checkflag FLAG_0x4B0
goto_if 1, EventScript_16A67F goto_if_eq EventScript_16A67F
msgbox gUnknown_8191298, MSGBOX_YESNO msgbox gUnknown_8191298, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16A689 goto_if_eq EventScript_16A689
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16A697 goto_if_eq EventScript_16A697
end end
EventScript_16A67F:: @ 816A67F EventScript_16A67F:: @ 816A67F
@@ -83,7 +83,7 @@ EventScript_16A6A5:: @ 816A6A5
PewterCity_Gym_EventScript_16A6AF:: @ 816A6AF PewterCity_Gym_EventScript_16A6AF:: @ 816A6AF
lockall lockall
checkflag FLAG_UNK820 checkflag FLAG_UNK820
goto_if 1, EventScript_16A6C3 goto_if_eq EventScript_16A6C3
msgbox gUnknown_819146E msgbox gUnknown_819146E
releaseall releaseall
end end
+1 -1
View File
@@ -12,7 +12,7 @@ PewterCity_Mart_EventScript_16A6D7:: @ 816A6D7
PewterCity_Mart_EventScript_16A6E0:: @ 816A6E0 PewterCity_Mart_EventScript_16A6E0:: @ 816A6E0
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
message Text_1A6211 message Text_1A6211
+9 -9
View File
@@ -5,11 +5,11 @@ PewterCity_Museum_1F_EventScript_16A31B:: @ 816A31B
lock lock
faceplayer faceplayer
compare_var_to_value VAR_FACING, 3 compare_var_to_value VAR_FACING, 3
goto_if 1, EventScript_16A348 goto_if_eq EventScript_16A348
compare_var_to_value VAR_FACING, 1 compare_var_to_value VAR_FACING, 1
goto_if 1, EventScript_16A348 goto_if_eq EventScript_16A348
compare_var_to_value VAR_FACING, 2 compare_var_to_value VAR_FACING, 2
goto_if 1, EventScript_16A348 goto_if_eq EventScript_16A348
msgbox gUnknown_8190539 msgbox gUnknown_8190539
release release
end end
@@ -17,9 +17,9 @@ PewterCity_Museum_1F_EventScript_16A31B:: @ 816A31B
EventScript_16A348:: @ 816A348 EventScript_16A348:: @ 816A348
msgbox gUnknown_8190550, MSGBOX_YESNO msgbox gUnknown_8190550, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16A367 goto_if_eq EventScript_16A367
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16A37B goto_if_eq EventScript_16A37B
end end
EventScript_16A367:: @ 816A367 EventScript_16A367:: @ 816A367
@@ -65,7 +65,7 @@ EventScript_16A3D1:: @ 816A3D1
showmoneybox 0, 0, 0 showmoneybox 0, 0, 0
msgbox gUnknown_81904B5, MSGBOX_YESNO msgbox gUnknown_81904B5, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16A402 goto_if_eq EventScript_16A402
msgbox gUnknown_81904F9 msgbox gUnknown_81904F9
closemessage closemessage
hidemoneybox hidemoneybox
@@ -79,7 +79,7 @@ EventScript_16A3D1:: @ 816A3D1
EventScript_16A402:: @ 816A402 EventScript_16A402:: @ 816A402
checkmoney 50, 0 checkmoney 50, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16A476 goto_if_eq EventScript_16A476
closemessage closemessage
compare_var_to_value VAR_0x4001, 0 compare_var_to_value VAR_0x4001, 0
call_if 1, EventScript_16A455 call_if 1, EventScript_16A455
@@ -159,11 +159,11 @@ PewterCity_Museum_1F_EventScript_16A4AE:: @ 816A4AE
lock lock
faceplayer faceplayer
checkflag FLAG_0x25E checkflag FLAG_0x25E
goto_if 1, EventScript_16A4FF goto_if_eq EventScript_16A4FF
msgbox gUnknown_8190717 msgbox gUnknown_8190717
checkitemspace ITEM_OLD_AMBER, 1 checkitemspace ITEM_OLD_AMBER, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16A4F5 goto_if_eq EventScript_16A4F5
setflag FLAG_0x25E setflag FLAG_0x25E
removeobject 4 removeobject 4
additem ITEM_OLD_AMBER, 1 additem ITEM_OLD_AMBER, 1
@@ -51,7 +51,7 @@ PokemonLeague_AgathasRoom_EventScript_162877:: @ 8162877
setvar VAR_0x8005, 2 setvar VAR_0x8005, 2
special UpdatePickStateFromSpecialVar8005 special UpdatePickStateFromSpecialVar8005
checkflag FLAG_0x4BA checkflag FLAG_0x4BA
goto_if 1, EventScript_162911 goto_if_eq EventScript_162911
setvar VAR_0x8004, 11 setvar VAR_0x8004, 11
setvar VAR_0x8005, 0 setvar VAR_0x8005, 0
special SetFlavorTextFlagFromSpecialVars special SetFlavorTextFlagFromSpecialVars
@@ -51,7 +51,7 @@ PokemonLeague_BrunosRoom_EventScript_1626EC:: @ 81626EC
setvar VAR_0x8005, 2 setvar VAR_0x8005, 2
special UpdatePickStateFromSpecialVar8005 special UpdatePickStateFromSpecialVar8005
checkflag FLAG_0x4B9 checkflag FLAG_0x4B9
goto_if 1, EventScript_162779 goto_if_eq EventScript_162779
setvar VAR_0x8004, 10 setvar VAR_0x8004, 10
setvar VAR_0x8005, 0 setvar VAR_0x8005, 0
special SetFlavorTextFlagFromSpecialVars special SetFlavorTextFlagFromSpecialVars
@@ -17,23 +17,23 @@ PokemonLeague_ChampionsRoom_MapScript2_162AF2:: @ 8162AF2
EventScript_162B1E:: @ 8162B1E EventScript_162B1E:: @ 8162B1E
checktrainerflag FLAG_0x1B6 checktrainerflag FLAG_0x1B6
goto_if 1, EventScript_162B57 goto_if_eq EventScript_162B57
checktrainerflag FLAG_0x2E3 checktrainerflag FLAG_0x2E3
goto_if 1, EventScript_162B57 goto_if_eq EventScript_162B57
return return
EventScript_162B31:: @ 8162B31 EventScript_162B31:: @ 8162B31
checktrainerflag FLAG_0x1B7 checktrainerflag FLAG_0x1B7
goto_if 1, EventScript_162B57 goto_if_eq EventScript_162B57
checktrainerflag FLAG_0x2E4 checktrainerflag FLAG_0x2E4
goto_if 1, EventScript_162B57 goto_if_eq EventScript_162B57
return return
EventScript_162B44:: @ 8162B44 EventScript_162B44:: @ 8162B44
checktrainerflag FLAG_0x1B8 checktrainerflag FLAG_0x1B8
goto_if 1, EventScript_162B57 goto_if_eq EventScript_162B57
checktrainerflag FLAG_0x2E5 checktrainerflag FLAG_0x2E5
goto_if 1, EventScript_162B57 goto_if_eq EventScript_162B57
return return
EventScript_162B57:: @ 8162B57 EventScript_162B57:: @ 8162B57
@@ -65,7 +65,7 @@ EventScript_162B76:: @ 8162B76
call_if 1, EventScript_162CBC call_if 1, EventScript_162CBC
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_162C68 goto_if_eq EventScript_162C68
setflag FLAG_0x003 setflag FLAG_0x003
setflag FLAG_0x005 setflag FLAG_0x005
savebgm BGM_FRLG_KACHI_LEADER savebgm BGM_FRLG_KACHI_LEADER
@@ -105,7 +105,7 @@ PokemonLeague_LancesRoom_EventScript_162A14:: @ 8162A14
setvar VAR_0x8005, 2 setvar VAR_0x8005, 2
special UpdatePickStateFromSpecialVar8005 special UpdatePickStateFromSpecialVar8005
checkflag FLAG_0x4BB checkflag FLAG_0x4BB
goto_if 1, EventScript_162AA1 goto_if_eq EventScript_162AA1
setvar VAR_0x8004, 12 setvar VAR_0x8004, 12
setvar VAR_0x8005, 0 setvar VAR_0x8005, 0
special SetFlavorTextFlagFromSpecialVars special SetFlavorTextFlagFromSpecialVars
@@ -56,7 +56,7 @@ PokemonLeague_LoreleisRoom_EventScript_1625DC:: @ 81625DC
setvar VAR_0x8005, 2 setvar VAR_0x8005, 2
special UpdatePickStateFromSpecialVar8005 special UpdatePickStateFromSpecialVar8005
checkflag FLAG_0x4B8 checkflag FLAG_0x4B8
goto_if 1, EventScript_162669 goto_if_eq EventScript_162669
setvar VAR_0x8004, 9 setvar VAR_0x8004, 9
setvar VAR_0x8005, 0 setvar VAR_0x8005, 0
special SetFlavorTextFlagFromSpecialVars special SetFlavorTextFlagFromSpecialVars
+1 -1
View File
@@ -23,7 +23,7 @@ PokemonTower_1F_EventScript_16325A:: @ 816325A
faceplayer faceplayer
checkplayergender checkplayergender
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_163272 goto_if_eq EventScript_163272
msgbox gUnknown_8179BFC msgbox gUnknown_8179BFC
release release
end end
+2 -2
View File
@@ -7,13 +7,13 @@ PokemonTower_6F_EventScript_1634B8:: @ 81634B8
msgbox gUnknown_817A2F8 msgbox gUnknown_817A2F8
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
setwildbattle SPECIES_MAROWAK, 30, ITEM_NONE setwildbattle SPECIES_MAROWAK, 30, ITEM_NONE
special sub_807F904 special sub_807F904
waitstate waitstate
special sub_8112364 special sub_8112364
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1634F5 goto_if_eq EventScript_1634F5
applymovement 255, Movement_163512 applymovement 255, Movement_163512
waitmovement 0 waitmovement 0
releaseall releaseall
+7 -7
View File
@@ -27,11 +27,11 @@ EventScript_1635A1:: @ 81635A1
closemessage closemessage
getplayerxy VAR_0x8004, VAR_0x8005 getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 10 compare_var_to_value VAR_0x8004, 10
goto_if 1, EventScript_1635E0 goto_if_eq EventScript_1635E0
compare_var_to_value VAR_0x8004, 11 compare_var_to_value VAR_0x8004, 11
goto_if 1, EventScript_1635F0 goto_if_eq EventScript_1635F0
compare_var_to_value VAR_0x8004, 9 compare_var_to_value VAR_0x8004, 9
goto_if 1, EventScript_163600 goto_if_eq EventScript_163600
applymovement 2, Movement_16362C applymovement 2, Movement_16362C
waitmovement 0 waitmovement 0
goto EventScript_163616 goto EventScript_163616
@@ -117,9 +117,9 @@ EventScript_163658:: @ 8163658
closemessage closemessage
getplayerxy VAR_0x8004, VAR_0x8005 getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 12 compare_var_to_value VAR_0x8004, 12
goto_if 1, EventScript_163699 goto_if_eq EventScript_163699
compare_var_to_value VAR_0x8004, 13 compare_var_to_value VAR_0x8004, 13
goto_if 1, EventScript_1636A9 goto_if_eq EventScript_1636A9
applymovement 3, Movement_1636C6 applymovement 3, Movement_1636C6
waitmovement 0 waitmovement 0
goto EventScript_1636B9 goto EventScript_1636B9
@@ -182,9 +182,9 @@ EventScript_1636F1:: @ 81636F1
closemessage closemessage
getplayerxy VAR_0x8004, VAR_0x8005 getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 10 compare_var_to_value VAR_0x8004, 10
goto_if 1, EventScript_163725 goto_if_eq EventScript_163725
compare_var_to_value VAR_0x8004, 9 compare_var_to_value VAR_0x8004, 9
goto_if 1, EventScript_163735 goto_if_eq EventScript_163735
applymovement 4, Movement_163754 applymovement 4, Movement_163754
waitmovement 0 waitmovement 0
goto EventScript_163745 goto EventScript_163745
+12 -12
View File
@@ -40,7 +40,7 @@ EventScript_1637B4:: @ 81637B4
PowerPlant_EventScript_1637B8:: @ 81637B8 PowerPlant_EventScript_1637B8:: @ 81637B8
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
lock lock
faceplayer faceplayer
@@ -59,11 +59,11 @@ PowerPlant_EventScript_1637B8:: @ 81637B8
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16381B goto_if_eq EventScript_16381B
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_163824 goto_if_eq EventScript_163824
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_163824 goto_if_eq EventScript_163824
setflag FLAG_0x2BF setflag FLAG_0x2BF
release release
end end
@@ -81,7 +81,7 @@ EventScript_163824:: @ 8163824
PowerPlant_EventScript_16382F:: @ 816382F PowerPlant_EventScript_16382F:: @ 816382F
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
setwildbattle SPECIES_ELECTRODE, 34, ITEM_NONE setwildbattle SPECIES_ELECTRODE, 34, ITEM_NONE
@@ -95,11 +95,11 @@ PowerPlant_EventScript_16382F:: @ 816382F
special sub_8112364 special sub_8112364
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_163884 goto_if_eq EventScript_163884
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_163884 goto_if_eq EventScript_163884
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_163884 goto_if_eq EventScript_163884
setflag FLAG_0x2D0 setflag FLAG_0x2D0
release release
end end
@@ -112,7 +112,7 @@ EventScript_163884:: @ 8163884
PowerPlant_EventScript_16388D:: @ 816388D PowerPlant_EventScript_16388D:: @ 816388D
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
lock lock
faceplayer faceplayer
setwildbattle SPECIES_ELECTRODE, 34, ITEM_NONE setwildbattle SPECIES_ELECTRODE, 34, ITEM_NONE
@@ -126,11 +126,11 @@ PowerPlant_EventScript_16388D:: @ 816388D
special sub_8112364 special sub_8112364
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_1638E2 goto_if_eq EventScript_1638E2
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_1638E2 goto_if_eq EventScript_1638E2
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_1638E2 goto_if_eq EventScript_1638E2
setflag FLAG_0x2D1 setflag FLAG_0x2D1
release release
end end
+2 -2
View File
@@ -47,7 +47,7 @@ RocketHideout_B4F_EventScript_161363:: @ 8161363
removeobject 2 removeobject 2
giveitem ITEM_SILPH_SCOPE giveitem ITEM_SILPH_SCOPE
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A6BF9 goto_if_eq EventScript_1A6BF9
release release
end end
@@ -71,7 +71,7 @@ RocketHideout_B4F_EventScript_1613AD:: @ 81613AD
removeobject 4 removeobject 4
giveitem ITEM_LIFT_KEY giveitem ITEM_LIFT_KEY
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A6BF9 goto_if_eq EventScript_1A6BF9
release release
end end
+13 -21
View File
@@ -14,13 +14,10 @@ RocketHideout_Elevator_EventScript_1614D9:: @ 81614D9
waitmessage waitmessage
setvar VAR_0x8004, 2 setvar VAR_0x8004, 2
specialvar VAR_RESULT, sub_80CB328 specialvar VAR_RESULT, sub_80CB328
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_161530
goto_if 1, EventScript_161530 case 1, EventScript_16153C
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_161548
goto_if 1, EventScript_16153C
compare_var_to_value VAR_0x8000, 2
goto_if 1, EventScript_161548
end end
EventScript_161530:: @ 8161530 EventScript_161530:: @ 8161530
@@ -45,24 +42,19 @@ EventScript_161553:: @ 8161553
end end
EventScript_161554:: @ 8161554 EventScript_161554:: @ 8161554
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_161591
goto_if 1, EventScript_161591 case 1, EventScript_1615B9
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_1615E1
goto_if 1, EventScript_1615B9 case 3, EventScript_161609
compare_var_to_value VAR_0x8000, 2 case 127, EventScript_161609
goto_if 1, EventScript_1615E1
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_161609
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_161609
end end
EventScript_161591:: @ 8161591 EventScript_161591:: @ 8161591
setvar VAR_0x8006, 3 setvar VAR_0x8006, 3
setdynamicwarp MAP_ROCKET_HIDEOUT_B1F, 255, 24, 25 setdynamicwarp MAP_ROCKET_HIDEOUT_B1F, 255, 24, 25
compare_var_to_value VAR_0x403A, 3 compare_var_to_value VAR_0x403A, 3
goto_if 1, EventScript_161609 goto_if_eq EventScript_161609
call EventScript_16160E call EventScript_16160E
setvar VAR_0x403A, 3 setvar VAR_0x403A, 3
goto EventScript_161609 goto EventScript_161609
@@ -74,7 +66,7 @@ EventScript_1615B9:: @ 81615B9
setvar VAR_0x8006, 2 setvar VAR_0x8006, 2
setdynamicwarp MAP_ROCKET_HIDEOUT_B2F, 255, 28, 16 setdynamicwarp MAP_ROCKET_HIDEOUT_B2F, 255, 28, 16
compare_var_to_value VAR_0x403A, 2 compare_var_to_value VAR_0x403A, 2
goto_if 1, EventScript_161609 goto_if_eq EventScript_161609
call EventScript_16160E call EventScript_16160E
setvar VAR_0x403A, 2 setvar VAR_0x403A, 2
goto EventScript_161609 goto EventScript_161609
@@ -86,7 +78,7 @@ EventScript_1615E1:: @ 81615E1
setvar VAR_0x8006, 0 setvar VAR_0x8006, 0
setdynamicwarp MAP_ROCKET_HIDEOUT_B4F, 255, 20, 23 setdynamicwarp MAP_ROCKET_HIDEOUT_B4F, 255, 20, 23
compare_var_to_value VAR_0x403A, 0 compare_var_to_value VAR_0x403A, 0
goto_if 1, EventScript_161609 goto_if_eq EventScript_161609
call EventScript_16160E call EventScript_16160E
setvar VAR_0x403A, 0 setvar VAR_0x403A, 0
goto EventScript_161609 goto EventScript_161609
+2 -2
View File
@@ -5,12 +5,12 @@ Route1_EventScript_167EFE:: @ 8167EFE
lock lock
faceplayer faceplayer
checkflag FLAG_0x230 checkflag FLAG_0x230
goto_if 1, EventScript_167F48 goto_if_eq EventScript_167F48
msgbox gUnknown_818329D msgbox gUnknown_818329D
textcolor 3 textcolor 3
checkitemspace ITEM_POTION, 1 checkitemspace ITEM_POTION, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A6BF9 goto_if_eq EventScript_1A6BF9
getitemname 1, ITEM_POTION getitemname 1, ITEM_POTION
playfanfare MUS_FANFA1 playfanfare MUS_FANFA1
message Text_1A51F6 message Text_1A51F6
@@ -32,10 +32,10 @@ Route10_PokemonCenter_1F_EventScript_16FC65:: @ 816FC65
faceplayer faceplayer
call EventScript_16FCF1 call EventScript_16FCF1
checkflag FLAG_0x2FA checkflag FLAG_0x2FA
goto_if 1, EventScript_16FCE7 goto_if_eq EventScript_16FCE7
msgbox gUnknown_819E5FB, MSGBOX_YESNO msgbox gUnknown_819E5FB, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AD1 goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8 specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006 getnumberstring 2, VAR_0x8006
@@ -45,7 +45,7 @@ Route10_PokemonCenter_1F_EventScript_16FC65:: @ 816FC65
msgbox gUnknown_819E733 msgbox gUnknown_819E733
checkitemspace ITEM_EVERSTONE, 1 checkitemspace ITEM_EVERSTONE, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AC7 goto_if_eq EventScript_1A7AC7
additem ITEM_EVERSTONE, 1 additem ITEM_EVERSTONE, 1
giveitemfanfaremsg gUnknown_819E786, ITEM_EVERSTONE giveitemfanfaremsg gUnknown_819E786, ITEM_EVERSTONE
setflag FLAG_0x2FA setflag FLAG_0x2FA
@@ -4,7 +4,7 @@ Route11_EastEntrance_2F_MapScripts:: @ 816FD34
Route11_EastEntrance_2F_EventScript_16FD35:: @ 816FD35 Route11_EastEntrance_2F_EventScript_16FD35:: @ 816FD35
lockall lockall
checkflag FLAG_0x253 checkflag FLAG_0x253
goto_if 1, EventScript_16FD49 goto_if_eq EventScript_16FD49
msgbox gUnknown_819EC8A msgbox gUnknown_819EC8A
releaseall releaseall
end end
@@ -24,10 +24,10 @@ Route11_EastEntrance_2F_EventScript_16FD5C:: @ 816FD5C
setvar VAR_0x8008, 4 setvar VAR_0x8008, 4
call EventScript_1A8CAD call EventScript_1A8CAD
checkflag FLAG_0x251 checkflag FLAG_0x251
goto_if 1, EventScript_16FDCE goto_if_eq EventScript_16FDCE
msgbox gUnknown_81A597B, MSGBOX_YESNO msgbox gUnknown_81A597B, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16FDB6 goto_if_eq EventScript_16FDB6
call EventScript_1A8CBD call EventScript_1A8CBD
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 4, EventScript_16FDB6 goto_if 4, EventScript_16FDB6
@@ -61,10 +61,10 @@ Route11_EastEntrance_2F_EventScript_16FDD8:: @ 816FDD8
faceplayer faceplayer
call EventScript_16FE64 call EventScript_16FE64
checkflag FLAG_0x252 checkflag FLAG_0x252
goto_if 1, EventScript_16FE5A goto_if_eq EventScript_16FE5A
msgbox gUnknown_819E9E5, MSGBOX_YESNO msgbox gUnknown_819E9E5, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AD1 goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8 specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006 getnumberstring 2, VAR_0x8006
@@ -74,7 +74,7 @@ Route11_EastEntrance_2F_EventScript_16FDD8:: @ 816FDD8
msgbox gUnknown_819EAE4 msgbox gUnknown_819EAE4
checkitemspace ITEM_ITEMFINDER, 1 checkitemspace ITEM_ITEMFINDER, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AC7 goto_if_eq EventScript_1A7AC7
additem ITEM_ITEMFINDER, 1 additem ITEM_ITEMFINDER, 1
giveitemfanfaremsg gUnknown_819EB37, ITEM_ITEMFINDER giveitemfanfaremsg gUnknown_819EB37, ITEM_ITEMFINDER
setflag FLAG_0x252 setflag FLAG_0x252
+5 -5
View File
@@ -18,11 +18,11 @@ Route12_EventScript_168014:: @ 8168014
goto_if 0, EventScript_168099 goto_if 0, EventScript_168099
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
msgbox gUnknown_81853CC, MSGBOX_YESNO msgbox gUnknown_81853CC, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16808D goto_if_eq EventScript_16808D
call EventScript_1A924B call EventScript_1A924B
setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE
waitse waitse
@@ -36,11 +36,11 @@ Route12_EventScript_168014:: @ 8168014
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16808F goto_if_eq EventScript_16808F
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_16808F goto_if_eq EventScript_16808F
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_16808F goto_if_eq EventScript_16808F
release release
end end
+11 -11
View File
@@ -5,10 +5,10 @@ Route12_FishingHouse_EventScript_16FF0C:: @ 816FF0C
lock lock
faceplayer faceplayer
checkflag FLAG_0x255 checkflag FLAG_0x255
goto_if 1, EventScript_16FF7F goto_if_eq EventScript_16FF7F
msgbox gUnknown_819EFE0, MSGBOX_YESNO msgbox gUnknown_819EFE0, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16FF34 goto_if_eq EventScript_16FF34
msgbox gUnknown_819F1FA msgbox gUnknown_819F1FA
release release
end end
@@ -16,7 +16,7 @@ Route12_FishingHouse_EventScript_16FF0C:: @ 816FF0C
EventScript_16FF34:: @ 816FF34 EventScript_16FF34:: @ 816FF34
checkitemspace ITEM_SUPER_ROD, 1 checkitemspace ITEM_SUPER_ROD, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16FF75 goto_if_eq EventScript_16FF75
additem ITEM_SUPER_ROD, 1 additem ITEM_SUPER_ROD, 1
msgbox gUnknown_819F05B msgbox gUnknown_819F05B
giveitemfanfaremsg gUnknown_819F0B2, ITEM_SUPER_ROD giveitemfanfaremsg gUnknown_819F0B2, ITEM_SUPER_ROD
@@ -33,12 +33,12 @@ EventScript_16FF75:: @ 816FF75
EventScript_16FF7F:: @ 816FF7F EventScript_16FF7F:: @ 816FF7F
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
setvar VAR_0x8004, SPECIES_MAGIKARP setvar VAR_0x8004, SPECIES_MAGIKARP
specialvar VAR_RESULT, sub_80CC48C specialvar VAR_RESULT, sub_80CC48C
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16FFF5 goto_if_eq EventScript_16FFF5
special sub_80A096C special sub_80A096C
msgbox gUnknown_819F2DB msgbox gUnknown_819F2DB
special sub_80BF8FC special sub_80BF8FC
@@ -48,13 +48,13 @@ EventScript_16FF7F:: @ 816FF7F
goto_if 4, EventScript_16FFFF goto_if 4, EventScript_16FFFF
special sub_80A0984 special sub_80A0984
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_170001 goto_if_eq EventScript_170001
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_17000B goto_if_eq EventScript_17000B
compare_var_to_value VAR_RESULT, 3 compare_var_to_value VAR_RESULT, 3
goto_if 1, EventScript_170031 goto_if_eq EventScript_170031
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_17001E goto_if_eq EventScript_17001E
release release
end end
@@ -91,7 +91,7 @@ EventScript_170031:: @ 8170031
msgbox gUnknown_819F31B msgbox gUnknown_819F31B
giveitem ITEM_NET_BALL giveitem ITEM_NET_BALL
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_17005D goto_if_eq EventScript_17005D
msgbox gUnknown_819F395 msgbox gUnknown_819F395
release release
end end
@@ -104,7 +104,7 @@ EventScript_17005D:: @ 817005D
Route12_FishingHouse_EventScript_170067:: @ 8170067 Route12_FishingHouse_EventScript_170067:: @ 8170067
lockall lockall
checkflag FLAG_0x29C checkflag FLAG_0x29C
goto_if 1, EventScript_17007B goto_if_eq EventScript_17007B
msgbox gUnknown_819F50C msgbox gUnknown_819F50C
releaseall releaseall
end end
@@ -13,7 +13,7 @@ Route12_NorthEntrance_2F_EventScript_16FE8A:: @ 816FE8A
lock lock
faceplayer faceplayer
checkflag FLAG_0x25B checkflag FLAG_0x25B
goto_if 1, EventScript_16FF01 goto_if_eq EventScript_16FF01
checkplayergender checkplayergender
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
call_if 1, EventScript_16FEE5 call_if 1, EventScript_16FEE5
@@ -21,7 +21,7 @@ Route12_NorthEntrance_2F_EventScript_16FE8A:: @ 816FE8A
call_if 1, EventScript_16FEEE call_if 1, EventScript_16FEEE
checkitemspace ITEM_TM27, 1 checkitemspace ITEM_TM27, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16FEF7 goto_if_eq EventScript_16FEF7
additem ITEM_TM27, 1 additem ITEM_TM27, 1
giveitemfanfaremsg gUnknown_819EE9F, ITEM_TM27 giveitemfanfaremsg gUnknown_819EE9F, ITEM_TM27
msgbox gUnknown_819EEC6 msgbox gUnknown_819EEC6
@@ -22,10 +22,10 @@ Route15_WestEntrance_2F_EventScript_1700B9:: @ 81700B9
faceplayer faceplayer
call EventScript_170145 call EventScript_170145
checkflag FLAG_0x256 checkflag FLAG_0x256
goto_if 1, EventScript_17013B goto_if_eq EventScript_17013B
msgbox gUnknown_819F5AB, MSGBOX_YESNO msgbox gUnknown_819F5AB, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AD1 goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8 specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006 getnumberstring 2, VAR_0x8006
@@ -35,7 +35,7 @@ Route15_WestEntrance_2F_EventScript_1700B9:: @ 81700B9
msgbox gUnknown_819F6AA msgbox gUnknown_819F6AA
checkitemspace ITEM_EXP_SHARE, 1 checkitemspace ITEM_EXP_SHARE, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AC7 goto_if_eq EventScript_1A7AC7
additem ITEM_EXP_SHARE, 1 additem ITEM_EXP_SHARE, 1
giveitemfanfaremsg gUnknown_819F6FD, ITEM_EXP_SHARE giveitemfanfaremsg gUnknown_819F6FD, ITEM_EXP_SHARE
setflag FLAG_0x256 setflag FLAG_0x256
+5 -5
View File
@@ -37,11 +37,11 @@ Route16_EventScript_168121:: @ 8168121
goto_if 0, EventScript_1681A3 goto_if 0, EventScript_1681A3
special sub_8110AB4 special sub_8110AB4
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0 goto_if_eq EventScript_1A7AE0
special sub_8112364 special sub_8112364
msgbox gUnknown_81853CC, MSGBOX_YESNO msgbox gUnknown_81853CC, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_168197 goto_if_eq EventScript_168197
call EventScript_1A924B call EventScript_1A924B
setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE
waitse waitse
@@ -54,11 +54,11 @@ Route16_EventScript_168121:: @ 8168121
clearflag FLAG_0x807 clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168199 goto_if_eq EventScript_168199
compare_var_to_value VAR_RESULT, 4 compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_168199 goto_if_eq EventScript_168199
compare_var_to_value VAR_RESULT, 5 compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_168199 goto_if_eq EventScript_168199
release release
end end
+2 -2
View File
@@ -5,11 +5,11 @@ Route16_House_EventScript_17014F:: @ 817014F
lock lock
faceplayer faceplayer
checkflag FLAG_0x238 checkflag FLAG_0x238
goto_if 1, EventScript_1701A5 goto_if_eq EventScript_1701A5
msgbox gUnknown_819F851 msgbox gUnknown_819F851
checkitemspace ITEM_HM02, 1 checkitemspace ITEM_HM02, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_17019B goto_if_eq EventScript_17019B
additem ITEM_HM02, 1 additem ITEM_HM02, 1
giveitemfanfaremsg gUnknown_819F8C0, ITEM_HM02 giveitemfanfaremsg gUnknown_819F8C0, ITEM_HM02
msgbox gUnknown_819F8E0 msgbox gUnknown_819F8E0
@@ -22,10 +22,10 @@ Route16_NorthEntrance_2F_EventScript_1702E3:: @ 81702E3
faceplayer faceplayer
call EventScript_17036F call EventScript_17036F
checkflag FLAG_0x2FD checkflag FLAG_0x2FD
goto_if 1, EventScript_170365 goto_if_eq EventScript_170365
msgbox gUnknown_819FB0E, MSGBOX_YESNO msgbox gUnknown_819FB0E, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AD1 goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8 specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006 getnumberstring 2, VAR_0x8006
@@ -35,7 +35,7 @@ Route16_NorthEntrance_2F_EventScript_1702E3:: @ 81702E3
msgbox gUnknown_819FC15 msgbox gUnknown_819FC15
checkitemspace ITEM_AMULET_COIN, 1 checkitemspace ITEM_AMULET_COIN, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AC7 goto_if_eq EventScript_1A7AC7
additem ITEM_AMULET_COIN, 1 additem ITEM_AMULET_COIN, 1
giveitemfanfaremsg gUnknown_819FC68, ITEM_AMULET_COIN giveitemfanfaremsg gUnknown_819FC68, ITEM_AMULET_COIN
setflag FLAG_0x2FD setflag FLAG_0x2FD
@@ -15,10 +15,10 @@ Route18_EastEntrance_2F_EventScript_17047E:: @ 817047E
setvar VAR_0x8008, 5 setvar VAR_0x8008, 5
call EventScript_1A8CAD call EventScript_1A8CAD
checkflag FLAG_0x257 checkflag FLAG_0x257
goto_if 1, EventScript_1704F0 goto_if_eq EventScript_1704F0
msgbox gUnknown_81A597B, MSGBOX_YESNO msgbox gUnknown_81A597B, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1704D8 goto_if_eq EventScript_1704D8
call EventScript_1A8CBD call EventScript_1A8CBD
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 4, EventScript_1704D8 goto_if 4, EventScript_1704D8
+3 -3
View File
@@ -5,11 +5,11 @@ Route24_EventScript_168620:: @ 8168620
lock lock
faceplayer faceplayer
compare_var_to_value VAR_0x406B, 1 compare_var_to_value VAR_0x406B, 1
goto_if 1, EventScript_168656 goto_if_eq EventScript_168656
msgbox gUnknown_8188C3C msgbox gUnknown_8188C3C
checkitemspace ITEM_NUGGET, 1 checkitemspace ITEM_NUGGET, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16864C goto_if_eq EventScript_16864C
call EventScript_1686B9 call EventScript_1686B9
release release
end end
@@ -47,7 +47,7 @@ EventScript_168678:: @ 8168678
msgbox gUnknown_8188C3C msgbox gUnknown_8188C3C
checkitemspace ITEM_NUGGET, 1 checkitemspace ITEM_NUGGET, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_168713 goto_if_eq EventScript_168713
call EventScript_1686B9 call EventScript_1686B9
releaseall releaseall
end end
+15 -21
View File
@@ -22,16 +22,16 @@ Route25_SeaCottage_EventScript_17054B:: @ 817054B
lock lock
faceplayer faceplayer
checkflag FLAG_0x003 checkflag FLAG_0x003
goto_if 1, EventScript_1706C8 goto_if_eq EventScript_1706C8
checkflag FLAG_0x234 checkflag FLAG_0x234
goto_if 1, EventScript_170640 goto_if_eq EventScript_170640
checkflag FLAG_0x233 checkflag FLAG_0x233
goto_if 1, EventScript_17064A goto_if_eq EventScript_17064A
checkplayergender checkplayergender
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_170580 goto_if_eq EventScript_170580
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_17058E goto_if_eq EventScript_17058E
end end
EventScript_170580:: @ 8170580 EventScript_170580:: @ 8170580
@@ -112,7 +112,7 @@ EventScript_17064A:: @ 817064A
call_if 1, EventScript_1706B5 call_if 1, EventScript_1706B5
checkitemspace ITEM_SS_TICKET, 1 checkitemspace ITEM_SS_TICKET, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1706BE goto_if_eq EventScript_1706BE
additem ITEM_SS_TICKET, 1 additem ITEM_SS_TICKET, 1
giveitemfanfaremsg gUnknown_81A028E, ITEM_SS_TICKET, 1, BGM_FRLG_ME_KEYITEM giveitemfanfaremsg gUnknown_81A028E, ITEM_SS_TICKET, 1, BGM_FRLG_ME_KEYITEM
setflag FLAG_0x235 setflag FLAG_0x235
@@ -160,9 +160,9 @@ Movement_1706DB:: @ 81706DB
Route25_SeaCottage_EventScript_1706DD:: @ 81706DD Route25_SeaCottage_EventScript_1706DD:: @ 81706DD
lockall lockall
checkflag FLAG_0x003 checkflag FLAG_0x003
goto_if 1, EventScript_1707CA goto_if_eq EventScript_1707CA
checkflag FLAG_0x002 checkflag FLAG_0x002
goto_if 1, EventScript_1706FA goto_if_eq EventScript_1706FA
msgbox gUnknown_81A0402 msgbox gUnknown_81A0402
releaseall releaseall
end end
@@ -251,19 +251,13 @@ EventScript_1707D8:: @ 81707D8
message Text_1A0479 message Text_1A0479
waitmessage waitmessage
multichoice 0, 0, 1, 0 multichoice 0, 0, 1, 0
copyvar VAR_0x8000, VAR_RESULT switch VAR_RESULT
compare_var_to_value VAR_0x8000, 0 case 0, EventScript_17082B
goto_if 1, EventScript_17082B case 1, EventScript_170840
compare_var_to_value VAR_0x8000, 1 case 2, EventScript_170855
goto_if 1, EventScript_170840 case 3, EventScript_17086A
compare_var_to_value VAR_0x8000, 2 case 4, EventScript_17087F
goto_if 1, EventScript_170855 case 127, EventScript_17087F
compare_var_to_value VAR_0x8000, 3
goto_if 1, EventScript_17086A
compare_var_to_value VAR_0x8000, 4
goto_if 1, EventScript_17087F
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_17087F
end end
EventScript_17082B:: @ 817082B EventScript_17082B:: @ 817082B
+3 -3
View File
@@ -6,10 +6,10 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F
faceplayer faceplayer
call EventScript_16F70B call EventScript_16F70B
checkflag FLAG_0x23B checkflag FLAG_0x23B
goto_if 1, EventScript_16F701 goto_if_eq EventScript_16F701
msgbox gUnknown_819D64F, MSGBOX_YESNO msgbox gUnknown_819D64F, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AD1 goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8 specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006 getnumberstring 2, VAR_0x8006
@@ -19,7 +19,7 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F
msgbox gUnknown_819D74E msgbox gUnknown_819D74E
checkitemspace ITEM_HM05, 1 checkitemspace ITEM_HM05, 1
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AC7 goto_if_eq EventScript_1A7AC7
additem ITEM_HM05, 1 additem ITEM_HM05, 1
giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05 giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05
setflag FLAG_0x23B setflag FLAG_0x23B
+2 -2
View File
@@ -11,10 +11,10 @@ Route2_House_EventScript_16F602:: @ 816F602
setvar VAR_0x8008, 0 setvar VAR_0x8008, 0
call EventScript_1A8CAD call EventScript_1A8CAD
checkflag FLAG_0x248 checkflag FLAG_0x248
goto_if 1, EventScript_16F674 goto_if_eq EventScript_16F674
msgbox gUnknown_81A597B, MSGBOX_YESNO msgbox gUnknown_81A597B, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F65C goto_if_eq EventScript_16F65C
call EventScript_1A8CBD call EventScript_1A8CBD
compare_var_to_value VAR_0x8004, 6 compare_var_to_value VAR_0x8004, 6
goto_if 4, EventScript_16F65C goto_if 4, EventScript_16F65C
+10 -10
View File
@@ -22,13 +22,13 @@ Route4_PokemonCenter_1F_EventScript_16F75F:: @ 816F75F
lock lock
faceplayer faceplayer
checkflag FLAG_0x249 checkflag FLAG_0x249
goto_if 1, EventScript_16F8A2 goto_if_eq EventScript_16F8A2
showmoneybox 0, 0, 0 showmoneybox 0, 0, 0
checkplayergender checkplayergender
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F786 goto_if_eq EventScript_16F786
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16F794 goto_if_eq EventScript_16F794
end end
EventScript_16F786:: @ 816F786 EventScript_16F786:: @ 816F786
@@ -43,26 +43,26 @@ EventScript_16F794:: @ 816F794
EventScript_16F7A2:: @ 816F7A2 EventScript_16F7A2:: @ 816F7A2
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F888 goto_if_eq EventScript_16F888
checkmoney 500, 0 checkmoney 500, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F895 goto_if_eq EventScript_16F895
textcolor 3 textcolor 3
setvar VAR_0x4001, 129 setvar VAR_0x4001, 129
givemon SPECIES_MAGIKARP, 5, ITEM_NONE, 0, 0, 0 givemon SPECIES_MAGIKARP, 5, ITEM_NONE, 0, 0, 0
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F7F6 goto_if_eq EventScript_16F7F6
compare_var_to_value VAR_RESULT, 1 compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16F822 goto_if_eq EventScript_16F822
compare_var_to_value VAR_RESULT, 2 compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_16F8AC goto_if_eq EventScript_16F8AC
end end
EventScript_16F7F6:: @ 816F7F6 EventScript_16F7F6:: @ 816F7F6
call EventScript_16F86F call EventScript_16F86F
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F861 goto_if_eq EventScript_16F861
call EventScript_1A8C27 call EventScript_1A8C27
fadescreen 1 fadescreen 1
hidemoneybox hidemoneybox
@@ -77,7 +77,7 @@ EventScript_16F822:: @ 816F822
call EventScript_16F86F call EventScript_16F86F
msgbox gUnknown_81A56A7, MSGBOX_YESNO msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0 compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16F84B goto_if_eq EventScript_16F84B
fadescreen 1 fadescreen 1
hidemoneybox hidemoneybox
.byte 0 .byte 0
+1 -1
View File
@@ -28,7 +28,7 @@ EventScript_16F92E:: @ 816F92E
applymovement 255, Movement_1A75E7 applymovement 255, Movement_1A75E7
waitmovement 0 waitmovement 0
checkflag FLAG_0x2A6 checkflag FLAG_0x2A6
goto_if 1, EventScript_16F958 goto_if_eq EventScript_16F958
msgbox gUnknown_819E04B msgbox gUnknown_819E04B
closemessage closemessage
applymovement 255, Movement_16F9C4 applymovement 255, Movement_16F9C4

Some files were not shown because too many files have changed in this diff Show More