2017-11-10 02:21:31 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_MapScripts:: @ 8227953
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, SootopolisCity_MysteryEventsHouse_1F_OnTransition
|
2019-11-10 02:40:41 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_MysteryEventsHouse_1F_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_OnTransition: @ 822795E
|
2019-11-10 02:40:41 +01:00
|
|
|
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_CHECK_VISIT_TRAINER
|
2018-11-01 21:31:10 +01:00
|
|
|
special CallFrontierUtilFunc
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_SetTrainerVisitingLayout
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 0
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_ne SootopolisCity_MysteryEventsHouse_1F_EventScript_MoveOldManToDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_SetTrainerVisitingLayout:: @ 822797D
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
setobjectxyperm 1, 3, 2
|
2019-01-20 17:11:45 +01:00
|
|
|
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_DOWN
|
2019-02-09 16:57:30 +01:00
|
|
|
setmaplayoutindex LAYOUT_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F_STAIRS_UNBLOCKED
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_MoveOldManToDoor:: @ 8227991
|
2017-11-10 02:21:31 +01:00
|
|
|
setobjectxyperm 1, 2, 2
|
2019-01-20 17:11:45 +01:00
|
|
|
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_RIGHT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_OnFrame: @ 822799D
|
|
|
|
map_script_2 VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_OldManCommentOnBattle
|
|
|
|
map_script_2 VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2, SootopolisCity_MysteryEventsHouse_1F_EventScript_OldManCommentOnBattle
|
|
|
|
map_script_2 VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3, SootopolisCity_MysteryEventsHouse_1F_EventScript_OldManCommentOnBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_OldManCommentOnBattle:: @ 82279B7
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-10 02:40:41 +01:00
|
|
|
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerExitStairs
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-11-10 02:40:41 +01:00
|
|
|
applymovement 1, SootopolisCity_MysteryEventsHouse_1F_Movement_OldManWalkBehindPlayer
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-08-17 16:38:02 +02:00
|
|
|
copyobjectxytoperm 1
|
2019-10-06 19:55:30 +02:00
|
|
|
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleWonComment
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleLostComment
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleTiedComment
|
2018-04-29 14:21:59 +02:00
|
|
|
special LoadPlayerParty
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleWonComment:: @ 8227A04
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_ThatWasSuperlative, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleLostComment:: @ 8227A0D
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_TooBadForYou, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleTiedComment:: @ 8227A16
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_BrilliantStandoff, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerExitStairs: @ 8227A1F
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_OldManWalkBehindPlayer: @ 8227A21
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_in_place_fastest_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_OldMan:: @ 8227A24
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-11-10 02:40:41 +01:00
|
|
|
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_CHECK_VISIT_TRAINER
|
2018-11-01 21:31:10 +01:00
|
|
|
special CallFrontierUtilFunc
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2019-11-10 02:40:41 +01:00
|
|
|
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_InvalidVisitingTrainer
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 1
|
2019-11-10 02:40:41 +01:00
|
|
|
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_TrainerVisiting
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_OnlyAmusementWatchingBattles, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_InvalidVisitingTrainer:: @ 8227A4E
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_OnlyAmusementWatchingBattles, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_TrainerVisiting:: @ 8227A58
|
2018-04-29 14:21:59 +02:00
|
|
|
special SavePlayerParty
|
2018-08-08 10:37:12 +02:00
|
|
|
special BufferEReaderTrainerName
|
2019-11-10 02:40:41 +01:00
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_ChallengeVisitingTrainer, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-10 02:40:41 +01:00
|
|
|
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
|
|
|
call SootopolisCity_MysteryEventsHouse_1F_EventScript_ChooseParty
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-10 02:40:41 +01:00
|
|
|
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_SaveProgressBeforeBattle, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-10 02:40:41 +01:00
|
|
|
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
2018-04-29 14:21:59 +02:00
|
|
|
special LoadPlayerParty
|
2019-02-23 01:52:11 +01:00
|
|
|
call Common_EventScript_SaveGame
|
2019-11-10 02:40:41 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
2018-04-29 14:21:59 +02:00
|
|
|
special SavePlayerParty
|
2018-11-25 22:50:54 +01:00
|
|
|
special ReducePlayerPartyToSelectedMons
|
2019-11-10 02:40:41 +01:00
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_HopeToSeeGoodMatch, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-10-07 06:14:10 +02:00
|
|
|
compare VAR_FACING, DIR_NORTH
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementNorth
|
2019-10-07 06:14:10 +02:00
|
|
|
compare VAR_FACING, DIR_EAST
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementEast
|
2019-10-07 06:14:10 +02:00
|
|
|
compare VAR_FACING, DIR_WEST
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementWest
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F, 255, 3, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle:: @ 8227AE2
|
2018-04-29 14:21:59 +02:00
|
|
|
special LoadPlayerParty
|
2019-11-10 02:40:41 +01:00
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_YouWontBattle, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_ChooseParty:: @ 8227AEF
|
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_KeepItTo3On3, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
fadescreen 1
|
2019-02-18 07:03:44 +01:00
|
|
|
special ChooseHalfPartyForBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementNorth:: @ 8227AFE
|
|
|
|
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideLeft
|
|
|
|
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementNorth
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementEast:: @ 8227B10
|
|
|
|
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideRight
|
|
|
|
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementEast
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementWest:: @ 8227B22
|
|
|
|
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideLeft
|
|
|
|
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementWest
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementNorth: @ 8227B34
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementEast: @ 8227B38
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
walk_right
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementWest: @ 8227B3C
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
walk_left
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideLeft: @ 8227B40
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_in_place_fastest_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideRight: @ 8227B43
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_in_place_fastest_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_OnlyAmusementWatchingBattles: @ 8227B46
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "When I was young, I traveled the world\n"
|
|
|
|
.string "as a POKéMON TRAINER.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Now that I've become an old buzzard,\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "my only amusement is watching young\l"
|
|
|
|
.string "TRAINERS battle.$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_DoorAppearsToBeLocked: @ 8227BDD
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "The door appears to be locked.$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_ChallengeVisitingTrainer: @ 8227BFC
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "A TRAINER named {STR_VAR_1}\n"
|
|
|
|
.string "is visiting my home.\p"
|
|
|
|
.string "Would you like to challenge\n"
|
|
|
|
.string "{STR_VAR_1}?$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_YouWontBattle: @ 8227C44
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You won't battle? I'm disappointed\n"
|
|
|
|
.string "that I can't see you battle…$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_KeepItTo3On3: @ 8227C84
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Oh, good, good!\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "But my house isn't all that sturdy.\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Could I ask you to keep it down to\n"
|
|
|
|
.string "a 3-on-3 match?$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_SaveProgressBeforeBattle: @ 8227CEB
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Before you two battle, you should\n"
|
|
|
|
.string "save your progress.$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_HopeToSeeGoodMatch: @ 8227D21
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "I hope to see a good match!$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
@ Unused
|
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_StrVar1Tie: @ 8227D3D
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "{STR_VAR_1}$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_Text_MatchEndedUpDraw: @ 8227D40
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "The match ended up a draw.$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_BrilliantStandoff: @ 8227D5B
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "So, it became a standoff.\p"
|
|
|
|
.string "It was a brilliant match in which\n"
|
|
|
|
.string "neither side conceded a step!$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
@ Unused
|
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_StrVar1Won: @ 8227DB5
|
2017-11-10 09:24:21 +01:00
|
|
|
.string "{STR_VAR_1}$"
|
2017-11-10 08:36:41 +01:00
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_ThatWasSuperlative: @ 8227DB8
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "That was superlative!\p"
|
|
|
|
.string "Why, it was like seeing myself in\n"
|
|
|
|
.string "my youth again!$"
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
@ Unused
|
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_StrVar1Lost: @ 8227E00
|
2017-11-10 09:24:21 +01:00
|
|
|
.string "{STR_VAR_1}$"
|
2017-11-10 08:36:41 +01:00
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_1F_Text_TooBadForYou: @ 8227E03
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "Ah, too bad for you!\p"
|
|
|
|
.string "But it was a good match.\n"
|
|
|
|
.string "I hope you can win next time.$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|