pokeemerald/data/maps/UnknownMap_25_34/scripts.inc

459 lines
12 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
UnknownMap_25_34_MapScripts:: @ 823B781
map_script 4, LinkContestRoom1_MapScript2_23B81F
map_script 2, LinkContestRoom1_MapScript2_23B815
map_script 3, LinkContestRoom1_MapScript1_23B79F
map_script 5, LinkContestRoom1_MapScript1_23B803
map_script 7, LinkContestRoom1_MapScript1_23B79B
.byte 0
LinkContestRoom1_MapScript1_23B79B: @ 823B79B
special sub_80F8B94
end
LinkContestRoom1_MapScript1_23B79F: @ 823B79F
call LinkContestRoom1_EventScript_23B7AF
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
call LinkContestRoom1_EventScript_23B842
end
LinkContestRoom1_EventScript_23B7AF:: @ 823B7AF
call LinkContestRoom1_EventScript_27A133
special sub_80F8FA0
compare VAR_RESULT, 0
2017-11-10 02:21:31 +01:00
call_if 1, LinkContestRoom1_EventScript_23B7EF
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
call_if 1, LinkContestRoom1_EventScript_23B7F3
compare VAR_RESULT, 2
2017-11-10 02:21:31 +01:00
call_if 1, LinkContestRoom1_EventScript_23B7F7
compare VAR_RESULT, 3
2017-11-10 02:21:31 +01:00
call_if 1, LinkContestRoom1_EventScript_23B7FB
compare VAR_RESULT, 4
2017-11-10 02:21:31 +01:00
call_if 1, LinkContestRoom1_EventScript_23B7FF
return
LinkContestRoom1_EventScript_23B7EF:: @ 823B7EF
2017-12-22 08:46:19 +01:00
savebgm MUS_TEST1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B7F3:: @ 823B7F3
2017-12-22 08:46:19 +01:00
savebgm MUS_TEST2
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B7F7:: @ 823B7F7
2017-12-22 08:46:19 +01:00
savebgm MUS_TEST3
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B7FB:: @ 823B7FB
2017-12-22 08:46:19 +01:00
savebgm MUS_TEST4
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B7FF:: @ 823B7FF
2017-12-22 08:46:19 +01:00
savebgm MUS_CONTEST0
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_MapScript1_23B803: @ 823B803
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 1
2017-11-10 02:21:31 +01:00
call_if 1, LinkContestRoom1_EventScript_23B80F
end
LinkContestRoom1_EventScript_23B80F:: @ 823B80F
call LinkContestRoom1_EventScript_23BB2B
return
LinkContestRoom1_MapScript2_23B815: @ 823B815
map_script_2 VAR_0x4086, 1, LinkContestRoom1_EventScript_23B829
.2byte 0
LinkContestRoom1_MapScript2_23B81F: @ 823B81F
map_script_2 VAR_0x4086, 1, LinkContestRoom1_EventScript_23B834
.2byte 0
LinkContestRoom1_EventScript_23B829:: @ 823B829
call LinkContestRoom1_EventScript_279F97
call LinkContestRoom1_EventScript_23BE44
end
LinkContestRoom1_EventScript_23B834:: @ 823B834
special sub_80F8B94
hideobjectat 255, MAP_LITTLEROOT_TOWN
2017-11-10 02:21:31 +01:00
call LinkContestRoom1_EventScript_23BB2B
end
LinkContestRoom1_EventScript_23B842:: @ 823B842
call LinkContestRoom1_EventScript_23B8F8
call LinkContestRoom1_EventScript_23B858
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_0, 8
2017-11-10 02:21:31 +01:00
goto_if 0, LinkContestRoom1_EventScript_23B842
return
LinkContestRoom1_EventScript_23B858:: @ 823B858
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_0
2017-11-10 02:21:31 +01:00
case 1, LinkContestRoom1_EventScript_23B8AB
case 2, LinkContestRoom1_EventScript_23B8B6
case 3, LinkContestRoom1_EventScript_23B8C1
case 4, LinkContestRoom1_EventScript_23B8CC
case 5, LinkContestRoom1_EventScript_23B8D7
case 6, LinkContestRoom1_EventScript_23B8E2
case 7, LinkContestRoom1_EventScript_23B8ED
end
LinkContestRoom1_EventScript_23B8AB:: @ 823B8AB
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_4, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8B6:: @ 823B8B6
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_5, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8C1:: @ 823B8C1
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_6, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8CC:: @ 823B8CC
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_7, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8D7:: @ 823B8D7
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_8, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8E2:: @ 823B8E2
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_9, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8ED:: @ 823B8ED
2018-05-19 18:02:43 +02:00
copyvar VAR_OBJ_GFX_ID_A, VAR_TEMP_1
addvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23B8F8:: @ 823B8F8
setvar VAR_RESULT, 32
special sub_80F8FE8
addvar VAR_RESULT, 1
switch VAR_RESULT
case 1, LinkContestRoom1_EventScript_23BA6B
case 2, LinkContestRoom1_EventScript_23BA71
case 3, LinkContestRoom1_EventScript_23BA77
case 4, LinkContestRoom1_EventScript_23BA7D
case 5, LinkContestRoom1_EventScript_23BA83
case 6, LinkContestRoom1_EventScript_23BA89
case 7, LinkContestRoom1_EventScript_23BA8F
case 8, LinkContestRoom1_EventScript_23BA95
case 9, LinkContestRoom1_EventScript_23BA9B
case 10, LinkContestRoom1_EventScript_23BAA1
case 11, LinkContestRoom1_EventScript_23BAA7
case 12, LinkContestRoom1_EventScript_23BAAD
case 13, LinkContestRoom1_EventScript_23BAB3
case 14, LinkContestRoom1_EventScript_23BAB9
case 15, LinkContestRoom1_EventScript_23BABF
case 16, LinkContestRoom1_EventScript_23BAC5
case 17, LinkContestRoom1_EventScript_23BACB
case 18, LinkContestRoom1_EventScript_23BAD1
case 19, LinkContestRoom1_EventScript_23BAD7
case 20, LinkContestRoom1_EventScript_23BADD
case 21, LinkContestRoom1_EventScript_23BAE3
case 22, LinkContestRoom1_EventScript_23BAE9
case 23, LinkContestRoom1_EventScript_23BAEF
case 24, LinkContestRoom1_EventScript_23BAF5
case 25, LinkContestRoom1_EventScript_23BAFB
case 26, LinkContestRoom1_EventScript_23BB01
case 27, LinkContestRoom1_EventScript_23BB07
case 28, LinkContestRoom1_EventScript_23BB0D
case 29, LinkContestRoom1_EventScript_23BB13
case 30, LinkContestRoom1_EventScript_23BB19
case 31, LinkContestRoom1_EventScript_23BB1F
case 32, LinkContestRoom1_EventScript_23BB25
end
LinkContestRoom1_EventScript_23BA6B:: @ 823BA6B
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 5
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA71:: @ 823BA71
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 6
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA77:: @ 823BA77
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 7
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA7D:: @ 823BA7D
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 8
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA83:: @ 823BA83
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 10
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA89:: @ 823BA89
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 11
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA8F:: @ 823BA8F
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 12
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA95:: @ 823BA95
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 13
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BA9B:: @ 823BA9B
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 14
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAA1:: @ 823BAA1
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 15
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAA7:: @ 823BAA7
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 17
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAAD:: @ 823BAAD
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 18
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAB3:: @ 823BAB3
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 19
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAB9:: @ 823BAB9
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 20
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BABF:: @ 823BABF
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 21
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAC5:: @ 823BAC5
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 22
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BACB:: @ 823BACB
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 25
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAD1:: @ 823BAD1
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 26
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAD7:: @ 823BAD7
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 27
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BADD:: @ 823BADD
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 47
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAE3:: @ 823BAE3
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 30
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAE9:: @ 823BAE9
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 31
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAEF:: @ 823BAEF
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 32
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAF5:: @ 823BAF5
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 33
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BAFB:: @ 823BAFB
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 34
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB01:: @ 823BB01
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 35
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB07:: @ 823BB07
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 36
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB0D:: @ 823BB0D
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 37
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB13:: @ 823BB13
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 38
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB19:: @ 823BB19
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 44
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB1F:: @ 823BB1F
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 45
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB25:: @ 823BB25
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 46
2017-11-10 02:21:31 +01:00
return
LinkContestRoom1_EventScript_23BB2B:: @ 823BB2B
specialvar VAR_RESULT, sub_80F9160
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
goto_eq LinkContestRoom1_EventScript_23BD86
switch VAR_0x4088
case 1, LinkContestRoom1_EventScript_23BB78
case 2, LinkContestRoom1_EventScript_23BB8B
case 3, LinkContestRoom1_EventScript_23BBE6
case 4, LinkContestRoom1_EventScript_23BC92
case 5, LinkContestRoom1_EventScript_23BC92
return
LinkContestRoom1_EventScript_23BB78:: @ 823BB78
createvobject 5, 20, 3, 2, 3, 1
createvobject 46, 24, 11, 2, 3, 1
return
LinkContestRoom1_EventScript_23BB8B:: @ 823BB8B
createvobject 45, 0, 2, 3, 3, 4
createvobject 66, 1, 2, 4, 3, 4
createvobject 55, 2, 2, 7, 3, 4
createvobject 46, 3, 2, 8, 3, 4
createvobject 5, 10, 12, 3, 3, 3
createvobject 20, 11, 12, 4, 3, 3
createvobject 24, 12, 12, 7, 3, 3
createvobject 12, 13, 12, 8, 3, 3
createvobject 47, 20, 3, 2, 3, 1
createvobject 46, 24, 11, 2, 3, 1
return
LinkContestRoom1_EventScript_23BBE6:: @ 823BBE6
createvobject 45, 0, 2, 3, 3, 4
createvobject 66, 1, 2, 4, 3, 4
createvobject 55, 2, 2, 7, 3, 4
createvobject 48, 3, 2, 8, 3, 4
createvobject 5, 10, 12, 3, 3, 3
createvobject 20, 11, 12, 4, 3, 3
createvobject 24, 12, 12, 7, 3, 3
createvobject 45, 13, 12, 8, 3, 3
createvobject 22, 20, 3, 2, 3, 1
createvobject 23, 20, 6, 2, 3, 1
createvobject 34, 20, 7, 2, 3, 1
createvobject 46, 24, 8, 2, 3, 1
createvobject 48, 24, 11, 2, 3, 1
createvobject 11, 25, 3, 9, 3, 2
createvobject 35, 26, 4, 9, 3, 2
createvobject 17, 27, 5, 9, 3, 2
createvobject 40, 28, 9, 9, 3, 2
createvobject 38, 29, 10, 9, 3, 2
createvobject 83, 30, 11, 9, 3, 2
return
LinkContestRoom1_EventScript_23BC92:: @ 823BC92
createvobject 45, 0, 2, 3, 3, 4
createvobject 66, 1, 2, 4, 3, 4
createvobject 55, 2, 2, 7, 3, 4
createvobject 12, 3, 2, 8, 3, 4
createvobject 39, 4, 1, 3, 3, 4
createvobject 34, 6, 1, 5, 3, 4
createvobject 26, 7, 1, 6, 3, 4
createvobject 48, 9, 1, 8, 3, 4
createvobject 5, 10, 12, 3, 3, 3
createvobject 20, 11, 12, 4, 3, 3
createvobject 24, 12, 12, 7, 3, 3
createvobject 45, 13, 12, 8, 3, 3
createvobject 50, 14, 13, 3, 3, 3
createvobject 52, 15, 13, 4, 3, 3
createvobject 65, 17, 13, 6, 3, 3
createvobject 83, 18, 13, 7, 3, 3
createvobject 116, 19, 13, 8, 3, 3
createvobject 25, 20, 3, 2, 3, 1
createvobject 31, 21, 6, 2, 3, 1
createvobject 33, 22, 7, 2, 3, 1
createvobject 46, 24, 11, 2, 3, 1
createvobject 49, 25, 3, 9, 3, 2
createvobject 35, 26, 4, 9, 3, 2
createvobject 48, 27, 5, 9, 3, 2
createvobject 40, 28, 9, 9, 3, 2
createvobject 38, 29, 10, 9, 3, 2
createvobject 83, 30, 11, 9, 3, 2
return
LinkContestRoom1_EventScript_23BD86:: @ 823BD86
createvobject 45, 0, 2, 3, 3, 4
createvobject 66, 1, 2, 4, 3, 4
createvobject 55, 2, 2, 7, 3, 4
createvobject 12, 3, 2, 8, 3, 4
createvobject 39, 4, 1, 3, 3, 4
createvobject 34, 6, 1, 5, 3, 4
createvobject 26, 7, 1, 6, 3, 4
createvobject 48, 9, 1, 8, 3, 4
createvobject 5, 10, 12, 3, 3, 3
createvobject 20, 11, 12, 4, 3, 3
createvobject 24, 12, 12, 7, 3, 3
createvobject 45, 13, 12, 8, 3, 3
createvobject 50, 14, 13, 3, 3, 3
createvobject 52, 15, 13, 4, 3, 3
createvobject 65, 17, 13, 6, 3, 3
createvobject 83, 18, 13, 7, 3, 3
createvobject 116, 19, 13, 8, 3, 3
createvobject 25, 20, 3, 2, 3, 1
createvobject 31, 21, 6, 2, 3, 1
createvobject 33, 22, 7, 2, 3, 1
createvobject 46, 24, 11, 2, 3, 1
return
LinkContestRoom1_EventScript_23BE44:: @ 823BE44
special sub_80F9154
switch VAR_0x4088
case 1, LinkContestRoom1_EventScript_23BE84
case 2, LinkContestRoom1_EventScript_23BE8E
case 3, LinkContestRoom1_EventScript_23BE98
case 4, LinkContestRoom1_EventScript_23BEA2
case 5, LinkContestRoom1_EventScript_23BEAC
return
LinkContestRoom1_EventScript_23BE84:: @ 823BE84
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 14, 4
2017-11-10 02:21:31 +01:00
waitstate
end
LinkContestRoom1_EventScript_23BE8E:: @ 823BE8E
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 14, 4
2017-11-10 02:21:31 +01:00
waitstate
end
LinkContestRoom1_EventScript_23BE98:: @ 823BE98
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 14, 4
2017-11-10 02:21:31 +01:00
waitstate
end
LinkContestRoom1_EventScript_23BEA2:: @ 823BEA2
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 14, 4
2017-11-10 02:21:31 +01:00
waitstate
end
LinkContestRoom1_EventScript_23BEAC:: @ 823BEAC
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 15, 4
2017-11-10 02:21:31 +01:00
waitstate
end
LilycoveCity_ContestLobby_EventScript_23BEB6:: @ 823BEB6
checkplayergender
compare VAR_RESULT, 0
2017-11-10 02:21:31 +01:00
goto_eq LilycoveCity_ContestLobby_EventScript_23BECE
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
goto_eq LilycoveCity_ContestLobby_EventScript_23BED4
return
LilycoveCity_ContestLobby_EventScript_23BECE:: @ 823BECE
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_3, 100
2017-11-10 02:21:31 +01:00
return
LilycoveCity_ContestLobby_EventScript_23BED4:: @ 823BED4
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_3, 105
2017-11-10 02:21:31 +01:00
return