pokeemerald/data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc

201 lines
6.3 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
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
2017-11-10 02:21:31 +01:00
goto_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202328
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
goto_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202333
return
VerdanturfTown_BattleTentBattleRoom_EventScript_202328:: @ 8202328
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_1, 100
setvar VAR_OBJ_GFX_ID_0, 100
2017-11-10 02:21:31 +01:00
return
VerdanturfTown_BattleTentBattleRoom_EventScript_202333:: @ 8202333
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_1, 105
setvar VAR_OBJ_GFX_ID_0, 105
2017-11-10 02:21:31 +01:00
return
VerdanturfTown_BattleTentBattleRoom_MapScript2_20233E: @ 820233E
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 0, VerdanturfTown_BattleTentBattleRoom_EventScript_202348
2017-11-10 02:21:31 +01:00
.2byte 0
VerdanturfTown_BattleTentBattleRoom_EventScript_202348:: @ 8202348
showobjectat 1, MAP_VERDANTURF_TOWN_BATTLE_TENT_BATTLE_ROOM
2017-11-10 02:21:31 +01:00
applymovement 1, VerdanturfTown_BattleTentBattleRoom_Movement_202575
waitmovement 0
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2017-11-10 02:21:31 +01:00
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 gStringVar4, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
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
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
warp MAP_VERDANTURF_TOWN_BATTLE_TENT_LOBBY, 255, 6, 6
2017-11-10 02:21:31 +01:00
waitstate
VerdanturfTown_BattleTentBattleRoom_EventScript_2023C8:: @ 82023C8
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
setvar VAR_0x8004, 2
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_RESULT
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
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, MSGBOX_DEFAULT
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
special SavePlayerParty
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 3
setvar VAR_0x8005, 3
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_ASA
2017-11-10 02:21:31 +01:00
waitfanfare
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2017-11-10 02:21:31 +01:00
VerdanturfTown_BattleTentBattleRoom_EventScript_20243C:: @ 820243C
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
call_if 1, VerdanturfTown_BattleTentBattleRoom_EventScript_202565
compare VAR_RESULT, 2
2017-11-10 02:21:31 +01:00
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, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
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
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
warp MAP_VERDANTURF_TOWN_BATTLE_TENT_LOBBY, 255, 6, 6
2017-11-10 02:21:31 +01:00
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
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
end
VerdanturfTown_BattleTentBattleRoom_MapScript2_202541: @ 8202541
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, VerdanturfTown_BattleTentBattleRoom_EventScript_20254B
2017-11-10 02:21:31 +01:00
.2byte 0
VerdanturfTown_BattleTentBattleRoom_EventScript_20254B:: @ 820254B
hideobjectat 1, MAP_VERDANTURF_TOWN_BATTLE_TENT_BATTLE_ROOM
2017-11-10 02:21:31 +01:00
call VerdanturfTown_BattleTentBattleRoom_EventScript_202310
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
applymovement EVENT_OBJ_ID_PLAYER, VerdanturfTown_BattleTentBattleRoom_Movement_202573
2017-11-10 02:21:31 +01:00
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
2017-11-10 02:21:31 +01:00
step_end
VerdanturfTown_BattleTentBattleRoom_Movement_202575: @ 8202575
set_visible
walk_up
walk_up
walk_up
face_right
2017-11-10 02:21:31 +01:00
step_end
VerdanturfTown_BattleTentBattleRoom_Movement_20257B: @ 820257B
walk_down
walk_down
walk_down
walk_down
face_left
2017-11-10 02:21:31 +01:00
step_end
VerdanturfTown_BattleTentBattleRoom_Movement_202581: @ 8202581
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end