2019-11-21 03:46:29 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_MapScripts:: @ 825E41A
|
2019-12-09 08:10:42 +01:00
|
|
|
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoomWildMons_OnResume
|
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomWildMons_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoomWildMons_OnWarp
|
2019-11-21 03:46:29 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_OnFrame: @ 825E42A
|
|
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomWildMons_EventScript_SetInWildMonRoom
|
|
|
|
map_script_2 VAR_TEMP_1, 1, BattleFrontier_BattlePikeRoomWildMons_EventScript_WarpToLobbyLost
|
2019-11-21 03:46:29 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_SetInWildMonRoom:: @ 825E43C
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_TEMP_0, 1
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_inwildmonroom
|
2019-11-21 03:46:29 +01:00
|
|
|
end
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_WarpToLobbyLost:: @ 825E44A
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
|
2019-11-21 03:46:29 +01:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 255, 5, 6
|
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_OnWarp: @ 825E466
|
|
|
|
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomWildMons_EventScript_TurnPlayerNorth
|
2019-11-21 03:46:29 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_TurnPlayerNorth:: @ 825E470
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_TEMP_4, 1
|
2019-11-26 02:00:04 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2019-11-21 03:46:29 +01:00
|
|
|
end
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_OnResume: @ 825E47A
|
2019-11-21 03:46:29 +01:00
|
|
|
call BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_get FRONTIER_DATA_BATTLE_OUTCOME
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, B_OUTCOME_LOST
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeRoomWildMons_EventScript_SetLost
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, B_OUTCOME_DREW
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeRoomWildMons_EventScript_SetLost
|
2019-11-21 03:46:29 +01:00
|
|
|
end
|
|
|
|
|
2019-12-09 08:10:42 +01:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_SetLost:: @ 825E4A3
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_TEMP_1, 1
|
|
|
|
end
|
|
|
|
|