mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-28 12:44:18 +01:00
201 lines
6.2 KiB
PHP
201 lines
6.2 KiB
PHP
VerdanturfTown_BattleTentBattleRoom_MapScripts:: @ 82022FA
|
|
map_script 3, VerdanturfTown_BattleTentBattleRoom_MapScript1_20230A
|
|
map_script 2, VerdanturfTown_BattleTentBattleRoom_MapScript2_20233E
|
|
map_script 4, VerdanturfTown_BattleTentBattleRoom_MapScript2_202541
|
|
.byte 0
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_MapScript1_20230A: @ 820230A
|
|
call VerdanturfTown_BattleTentBattleRoom_EventScript_202310
|
|
end
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_202310:: @ 8202310
|
|
checkplayergender
|
|
compare VAR_RESULT, 0
|
|
goto_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202328
|
|
compare VAR_RESULT, 1
|
|
goto_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202333
|
|
return
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_202328:: @ 8202328
|
|
setvar VAR_OBJ_GFX_ID_1, 100
|
|
setvar VAR_OBJ_GFX_ID_0, 100
|
|
return
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_202333:: @ 8202333
|
|
setvar VAR_OBJ_GFX_ID_1, 105
|
|
setvar VAR_OBJ_GFX_ID_0, 105
|
|
return
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_MapScript2_20233E: @ 820233E
|
|
map_script_2 VAR_TEMP_0, 0, VerdanturfTown_BattleTentBattleRoom_EventScript_202348
|
|
.2byte 0
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_202348:: @ 8202348
|
|
showobjectat 1, MAP_VERDANTURF_TOWN_BATTLE_TENT_BATTLE_ROOM
|
|
applymovement 1, VerdanturfTown_BattleTentBattleRoom_Movement_202575
|
|
waitmovement 0
|
|
setvar VAR_0x8004, 1
|
|
setvar VAR_0x8005, 2
|
|
special sub_81A1780
|
|
compare VAR_RESULT, 0
|
|
goto_if 5, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_20236F:: @ 820236F
|
|
setvar VAR_0x8004, 3
|
|
special sub_8161F74
|
|
addobject 2
|
|
applymovement 2, VerdanturfTown_BattleTentBattleRoom_Movement_20257B
|
|
waitmovement 0
|
|
setvar VAR_0x8004, 4
|
|
special sub_81B99B4
|
|
msgbox 0x2021fc4, 4
|
|
waitmessage
|
|
call VerdanturfTown_BattleTentBattleRoom_EventScript_24FDF7
|
|
switch VAR_RESULT
|
|
case 1, VerdanturfTown_BattleTentBattleRoom_EventScript_2023C8
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_2023AA:: @ 82023AA
|
|
setvar VAR_0x8004, 2
|
|
setvar VAR_0x8005, 0
|
|
setvar VAR_0x8006, 4
|
|
special sub_81A1780
|
|
special LoadPlayerParty
|
|
warp MAP_VERDANTURF_TOWN_BATTLE_TENT_LOBBY, 255, 6, 6
|
|
waitstate
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_2023C8:: @ 82023C8
|
|
setvar VAR_0x8004, 1
|
|
setvar VAR_0x8005, 2
|
|
special sub_81A1780
|
|
addvar VAR_RESULT, 1
|
|
setvar VAR_0x8004, 2
|
|
setvar VAR_0x8005, 2
|
|
copyvar VAR_0x8006, VAR_RESULT
|
|
special sub_81A1780
|
|
switch VAR_RESULT
|
|
case 3, VerdanturfTown_BattleTentBattleRoom_EventScript_202501
|
|
applymovement 2, VerdanturfTown_BattleTentBattleRoom_Movement_202581
|
|
waitmovement 0
|
|
removeobject 2
|
|
applymovement 3, VerdanturfTown_BattleTentBattleRoom_Movement_2725AA
|
|
applymovement 1, VerdanturfTown_BattleTentBattleRoom_Movement_2725A6
|
|
waitmovement 0
|
|
msgbox VerdanturfTown_BattleTentBattleRoom_Text_24FF00, 4
|
|
special LoadPlayerParty
|
|
special SavePlayerParty
|
|
setvar VAR_0x8004, 3
|
|
setvar VAR_0x8005, 3
|
|
special sub_81A1780
|
|
playfanfare MUS_ME_ASA
|
|
waitfanfare
|
|
special HealPlayerParty
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_20243C:: @ 820243C
|
|
setvar VAR_0x8004, 1
|
|
setvar VAR_0x8005, 2
|
|
special sub_81A1780
|
|
compare VAR_RESULT, 1
|
|
call_if 1, VerdanturfTown_BattleTentBattleRoom_EventScript_202565
|
|
compare VAR_RESULT, 2
|
|
call_if 1, VerdanturfTown_BattleTentBattleRoom_EventScript_20256C
|
|
multichoice 20, 6, 104, 1
|
|
switch VAR_RESULT
|
|
case 0, VerdanturfTown_BattleTentBattleRoom_EventScript_2024EA
|
|
case 1, VerdanturfTown_BattleTentBattleRoom_EventScript_20248A
|
|
case 2, VerdanturfTown_BattleTentBattleRoom_EventScript_2024B8
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_20248A:: @ 820248A
|
|
msgbox VerdanturfTown_BattleTentBattleRoom_Text_250030, 5
|
|
switch VAR_RESULT
|
|
case 0, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
|
|
case 1, VerdanturfTown_BattleTentBattleRoom_EventScript_20251F
|
|
case 127, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_2024B8:: @ 82024B8
|
|
message VerdanturfTown_BattleTentBattleRoom_Text_25005A
|
|
waitmessage
|
|
multichoicedefault 20, 8, 94, 1, 0
|
|
switch VAR_RESULT
|
|
case 1, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
|
|
case 0, VerdanturfTown_BattleTentBattleRoom_EventScript_2023AA
|
|
case 127, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_2024EA:: @ 82024EA
|
|
applymovement 3, VerdanturfTown_BattleTentBattleRoom_Movement_2725A8
|
|
applymovement 1, VerdanturfTown_BattleTentBattleRoom_Movement_2725A8
|
|
waitmovement 0
|
|
closemessage
|
|
goto VerdanturfTown_BattleTentBattleRoom_EventScript_20236F
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_202501:: @ 8202501
|
|
setvar VAR_0x8004, 2
|
|
setvar VAR_0x8005, 0
|
|
setvar VAR_0x8006, 3
|
|
special sub_81A1780
|
|
special LoadPlayerParty
|
|
warp MAP_VERDANTURF_TOWN_BATTLE_TENT_LOBBY, 255, 6, 6
|
|
waitstate
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_20251F:: @ 820251F
|
|
message VerdanturfTown_BattleTentBattleRoom_Text_25007E
|
|
waitmessage
|
|
setvar VAR_0x8004, 5
|
|
setvar VAR_0x8005, 2
|
|
special sub_81B99B4
|
|
playse SE_SAVE
|
|
waitse
|
|
fadescreen 1
|
|
setvar VAR_0x8004, 4
|
|
special sub_81A1780
|
|
end
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_MapScript2_202541: @ 8202541
|
|
map_script_2 VAR_TEMP_1, 0, VerdanturfTown_BattleTentBattleRoom_EventScript_20254B
|
|
.2byte 0
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_20254B:: @ 820254B
|
|
hideobjectat 1, MAP_VERDANTURF_TOWN_BATTLE_TENT_BATTLE_ROOM
|
|
call VerdanturfTown_BattleTentBattleRoom_EventScript_202310
|
|
setvar VAR_TEMP_1, 1
|
|
applymovement 255, VerdanturfTown_BattleTentBattleRoom_Movement_202573
|
|
removeobject 2
|
|
end
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_202565:: @ 8202565
|
|
message VerdanturfTown_BattleTentBattleRoom_Text_24FF28
|
|
waitmessage
|
|
return
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_EventScript_20256C:: @ 820256C
|
|
message VerdanturfTown_BattleTentBattleRoom_Text_24FF54
|
|
waitmessage
|
|
return
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_Movement_202573: @ 8202573
|
|
set_invisible
|
|
step_end
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_Movement_202575: @ 8202575
|
|
set_visible
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
face_right
|
|
step_end
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_Movement_20257B: @ 820257B
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
face_left
|
|
step_end
|
|
|
|
VerdanturfTown_BattleTentBattleRoom_Movement_202581: @ 8202581
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
step_end
|
|
|