2017-11-10 02:21:31 +01:00
|
|
|
FallarborTown_BattleTentBattleRoom_MapScripts:: @ 8200899
|
|
|
|
map_script 3, FallarborTown_BattleTentBattleRoom_MapScript1_2008A9
|
|
|
|
map_script 2, FallarborTown_BattleTentBattleRoom_MapScript2_2008DD
|
|
|
|
map_script 4, FallarborTown_BattleTentBattleRoom_MapScript2_200BB0
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_MapScript1_2008A9: @ 82008A9
|
|
|
|
call FallarborTown_BattleTentBattleRoom_EventScript_2008AF
|
|
|
|
end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_2008AF:: @ 82008AF
|
|
|
|
checkplayergender
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq FallarborTown_BattleTentBattleRoom_EventScript_2008C7
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq FallarborTown_BattleTentBattleRoom_EventScript_2008D2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_2008C7:: @ 82008C7
|
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
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_2008D2:: @ 82008D2
|
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
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_MapScript2_2008DD: @ 82008DD
|
2018-05-19 18:02:43 +02:00
|
|
|
map_script_2 VAR_TEMP_0, 0, FallarborTown_BattleTentBattleRoom_EventScript_2008E7
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_2008E7:: @ 82008E7
|
|
|
|
lockall
|
2018-06-15 05:00:09 +02:00
|
|
|
showobjectat 1, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
|
2017-11-10 02:21:31 +01:00
|
|
|
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_200B8D
|
|
|
|
waitmovement 0
|
|
|
|
setvar VAR_0x8004, 1
|
|
|
|
setvar VAR_0x8005, 2
|
2018-11-01 21:31:10 +01:00
|
|
|
special CallFrontierUtilFunc
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_ne FallarborTown_BattleTentBattleRoom_EventScript_200B73
|
2017-11-10 02:21:31 +01:00
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_20090F:: @ 820090F
|
|
|
|
setvar VAR_0x8004, 3
|
|
|
|
special sub_8161F74
|
|
|
|
addobject 3
|
|
|
|
applymovement 3, FallarborTown_BattleTentBattleRoom_Movement_200B96
|
|
|
|
waitmovement 0
|
|
|
|
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_200BA3
|
|
|
|
playse SE_W187
|
|
|
|
waitse
|
|
|
|
waitmovement 0
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox FallarborTown_BattleTentBattleRoom_Text_257C93, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8004, 4
|
|
|
|
special sub_81B99B4
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
call FallarborTown_BattleTentBattleRoom_EventScript_257B6C
|
|
|
|
switch VAR_RESULT
|
|
|
|
case 1, FallarborTown_BattleTentBattleRoom_EventScript_20099C
|
|
|
|
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_200BA3
|
|
|
|
playse SE_W173
|
|
|
|
waitse
|
|
|
|
waitmovement 0
|
|
|
|
setvar VAR_0x8004, 6
|
|
|
|
special sub_81B9B80
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox FallarborTown_BattleTentBattleRoom_Text_257CCE, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_20097E:: @ 820097E
|
|
|
|
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
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_FALLARBOR_TOWN_BATTLE_TENT_LOBBY, 255, 6, 6
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_20099C:: @ 820099C
|
|
|
|
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_200BA3
|
|
|
|
playse SE_BAN
|
|
|
|
waitse
|
|
|
|
waitmovement 0
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox FallarborTown_BattleTentBattleRoom_Text_257CB3, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_2009B3:: @ 82009B3
|
|
|
|
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, FallarborTown_BattleTentBattleRoom_EventScript_200AF3
|
|
|
|
applymovement 3, FallarborTown_BattleTentBattleRoom_Movement_200B9E
|
|
|
|
waitmovement 0
|
|
|
|
removeobject 3
|
|
|
|
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_200BA6
|
|
|
|
waitmovement 0
|
|
|
|
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_200B94
|
|
|
|
waitmovement 0
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox FallarborTown_BattleTentBattleRoom_Text_257CE9, 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
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200A2A:: @ 8200A2A
|
|
|
|
setvar VAR_0x8004, 1
|
|
|
|
setvar VAR_0x8005, 2
|
2018-11-01 21:31:10 +01:00
|
|
|
special CallFrontierUtilFunc
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq FallarborTown_BattleTentBattleRoom_EventScript_200B43
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 2
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq FallarborTown_BattleTentBattleRoom_EventScript_200B4A
|
2017-11-10 02:21:31 +01:00
|
|
|
multichoice 20, 6, 104, 1
|
|
|
|
switch VAR_RESULT
|
|
|
|
case 0, FallarborTown_BattleTentBattleRoom_EventScript_200AD8
|
|
|
|
case 1, FallarborTown_BattleTentBattleRoom_EventScript_200A78
|
|
|
|
case 2, FallarborTown_BattleTentBattleRoom_EventScript_200AA6
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200A78:: @ 8200A78
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox FallarborTown_BattleTentBattleRoom_Text_257E6B, MSGBOX_YESNO
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
|
|
|
case 0, FallarborTown_BattleTentBattleRoom_EventScript_200A2A
|
|
|
|
case 1, FallarborTown_BattleTentBattleRoom_EventScript_200B51
|
|
|
|
case 127, FallarborTown_BattleTentBattleRoom_EventScript_200A2A
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200AA6:: @ 8200AA6
|
|
|
|
message FallarborTown_BattleTentBattleRoom_Text_257E9E
|
|
|
|
waitmessage
|
|
|
|
multichoicedefault 20, 8, 94, 1, 0
|
|
|
|
switch VAR_RESULT
|
|
|
|
case 1, FallarborTown_BattleTentBattleRoom_EventScript_200A2A
|
|
|
|
case 0, FallarborTown_BattleTentBattleRoom_EventScript_20097E
|
|
|
|
case 127, FallarborTown_BattleTentBattleRoom_EventScript_200A2A
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200AD8:: @ 8200AD8
|
|
|
|
closemessage
|
|
|
|
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_200BAB
|
|
|
|
waitmovement 0
|
|
|
|
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_200B92
|
|
|
|
waitmovement 0
|
|
|
|
goto FallarborTown_BattleTentBattleRoom_EventScript_20090F
|
|
|
|
waitstate
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200AF3:: @ 8200AF3
|
|
|
|
delay 60
|
|
|
|
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
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_FALLARBOR_TOWN_BATTLE_TENT_LOBBY, 255, 6, 6
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
setvar VAR_0x8004, 1
|
|
|
|
setvar VAR_0x8005, 1
|
2018-11-11 16:44:27 +01:00
|
|
|
special CallBattleArenaFunction
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 9999
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq FallarborTown_BattleTentBattleRoom_EventScript_2009B3
|
2017-11-10 02:21:31 +01:00
|
|
|
addvar VAR_RESULT, 1
|
|
|
|
setvar VAR_0x8004, 2
|
|
|
|
setvar VAR_0x8005, 1
|
|
|
|
copyvar VAR_0x8006, VAR_RESULT
|
2018-11-11 16:44:27 +01:00
|
|
|
special CallBattleArenaFunction
|
2017-11-10 02:21:31 +01:00
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200B43:: @ 8200B43
|
|
|
|
message FallarborTown_BattleTentBattleRoom_Text_257D17
|
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200B4A:: @ 8200B4A
|
|
|
|
message FallarborTown_BattleTentBattleRoom_Text_257D50
|
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200B51:: @ 8200B51
|
|
|
|
message FallarborTown_BattleTentBattleRoom_Text_257EDB
|
|
|
|
waitmessage
|
|
|
|
setvar VAR_0x8004, 3
|
|
|
|
setvar VAR_0x8005, 2
|
|
|
|
special sub_81B9B80
|
|
|
|
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
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200B73:: @ 8200B73
|
|
|
|
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_200BA6
|
|
|
|
waitmovement 0
|
|
|
|
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_200B94
|
|
|
|
waitmovement 0
|
|
|
|
goto FallarborTown_BattleTentBattleRoom_EventScript_200A2A
|
|
|
|
end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200B8D: @ 8200B8D
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_in_place_fastest_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200B92: @ 8200B92
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_in_place_fastest_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200B94: @ 8200B94
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_in_place_fastest_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200B96: @ 8200B96
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_in_place_fastest_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2017-11-10 08:36:41 +01:00
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200B9C: @ 8200B9C
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
2017-11-10 08:36:41 +01:00
|
|
|
step_end
|
2017-11-10 02:21:31 +01:00
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200B9E: @ 8200B9E
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200BA3: @ 8200BA3
|
2018-06-14 01:19:19 +02:00
|
|
|
disable_jump_landing_ground_effect
|
|
|
|
jump_in_place_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200BA6: @ 8200BA6
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_in_place_fastest_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_Movement_200BAB: @ 8200BAB
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_in_place_fastest_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_MapScript2_200BB0: @ 8200BB0
|
2018-05-19 18:02:43 +02:00
|
|
|
map_script_2 VAR_TEMP_1, 0, FallarborTown_BattleTentBattleRoom_EventScript_200BBA
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
|
|
|
FallarborTown_BattleTentBattleRoom_EventScript_200BBA:: @ 8200BBA
|
2018-06-15 05:00:09 +02:00
|
|
|
hideobjectat 255, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
|
|
|
|
hideobjectat 1, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject 3
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|