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

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