pokeemerald/data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc

201 lines
6.7 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
VerdanturfTown_BattleTentBattleRoom_MapScripts:: @ 82022FA
map_script MAP_SCRIPT_ON_TRANSITION, VerdanturfTown_BattleTentBattleRoom_OnTransition
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, VerdanturfTown_BattleTentBattleRoom_MapScript2_20233E
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, VerdanturfTown_BattleTentBattleRoom_MapScript2_202541
2017-11-10 02:21:31 +01:00
.byte 0
VerdanturfTown_BattleTentBattleRoom_OnTransition: @ 820230A
2017-11-10 02:21:31 +01:00
call VerdanturfTown_BattleTentBattleRoom_EventScript_202310
end
VerdanturfTown_BattleTentBattleRoom_EventScript_202310:: @ 8202310
checkplayergender
compare VAR_RESULT, MALE
2018-12-22 02:28:24 +01:00
goto_if_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202328
compare VAR_RESULT, FEMALE
2018-12-22 02:28:24 +01:00
goto_if_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202333
2017-11-10 02:21:31 +01:00
return
VerdanturfTown_BattleTentBattleRoom_EventScript_202328:: @ 8202328
2018-12-25 02:12:51 +01:00
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
2017-11-10 02:21:31 +01:00
return
VerdanturfTown_BattleTentBattleRoom_EventScript_202333:: @ 8202333
2018-12-25 02:12:51 +01:00
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
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
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
2017-11-10 02:21:31 +01:00
VerdanturfTown_BattleTentBattleRoom_EventScript_20236F:: @ 820236F
setvar VAR_0x8004, BATTLE_TOWER_FUNC_CHOOSE_TRAINER
special CallBattleTowerFunc
2017-11-10 02:21:31 +01:00
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
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
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
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
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
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
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
2019-10-06 19:55:30 +02:00
applymovement 3, Common_Movement_WalkInPlaceFastestDown
applymovement 1, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox VerdanturfTown_BattleTentBattleRoom_Text_24FF00, MSGBOX_DEFAULT
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
special SavePlayerParty
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_LOAD_SELECTED_PARTY
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
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
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 1
2018-12-22 03:32:45 +01:00
call_if_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202565
compare VAR_RESULT, 2
2018-12-22 03:32:45 +01:00
call_if_eq VerdanturfTown_BattleTentBattleRoom_EventScript_20256C
2019-09-19 06:56:51 +02:00
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1
2017-11-10 02:21:31 +01:00
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
2019-11-02 17:34:53 +01:00
case NO, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
case YES, VerdanturfTown_BattleTentBattleRoom_EventScript_20251F
case MULTI_B_PRESSED, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
2017-11-10 02:21:31 +01:00
VerdanturfTown_BattleTentBattleRoom_EventScript_2024B8:: @ 82024B8
message VerdanturfTown_BattleTentBattleRoom_Text_25005A
waitmessage
2019-09-19 06:56:51 +02:00
multichoicedefault 20, 8, MULTI_YESNO, 1, 0
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 1, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
case 0, VerdanturfTown_BattleTentBattleRoom_EventScript_2023AA
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
2017-11-10 02:21:31 +01:00
VerdanturfTown_BattleTentBattleRoom_EventScript_2024EA:: @ 82024EA
2019-10-06 19:55:30 +02:00
applymovement 3, Common_Movement_WalkInPlaceFastestRight
applymovement 1, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
closemessage
goto VerdanturfTown_BattleTentBattleRoom_EventScript_20236F
VerdanturfTown_BattleTentBattleRoom_EventScript_202501:: @ 8202501
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
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
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_SOFT_RESET
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