Document Sootopolis scripts
This commit is contained in:
@@ -1,240 +1,243 @@
|
||||
SootopolisCity_MysteryEventsHouse_1F_MapScripts:: @ 8227953
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, SootopolisCity_MysteryEventsHouse_1F_OnTransition
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_MysteryEventsHouse_1F_MapScript2_22799D
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_MysteryEventsHouse_1F_OnFrame
|
||||
.byte 0
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_OnTransition: @ 822795E
|
||||
setvar VAR_0x8004, 16
|
||||
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_CHECK_VISIT_TRAINER
|
||||
special CallFrontierUtilFunc
|
||||
compare VAR_RESULT, 0
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_22797D
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_SetTrainerVisitingLayout
|
||||
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 0
|
||||
call_if_ne SootopolisCity_MysteryEventsHouse_1F_EventScript_227991
|
||||
call_if_ne SootopolisCity_MysteryEventsHouse_1F_EventScript_MoveOldManToDoor
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_22797D:: @ 822797D
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_SetTrainerVisitingLayout:: @ 822797D
|
||||
setvar VAR_TEMP_1, 1
|
||||
setobjectxyperm 1, 3, 2
|
||||
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_DOWN
|
||||
setmaplayoutindex LAYOUT_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F_STAIRS_UNBLOCKED
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227991:: @ 8227991
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_MoveOldManToDoor:: @ 8227991
|
||||
setobjectxyperm 1, 2, 2
|
||||
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_RIGHT
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_MapScript2_22799D: @ 822799D
|
||||
map_script_2 VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
|
||||
map_script_2 VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
|
||||
map_script_2 VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
|
||||
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
|
||||
.2byte 0
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7:: @ 82279B7
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_OldManCommentOnBattle:: @ 82279B7
|
||||
lockall
|
||||
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_227A1F
|
||||
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerExitStairs
|
||||
waitmovement 0
|
||||
applymovement 1, SootopolisCity_MysteryEventsHouse_1F_Movement_227A21
|
||||
applymovement 1, SootopolisCity_MysteryEventsHouse_1F_Movement_OldManWalkBehindPlayer
|
||||
waitmovement 0
|
||||
copyobjectxytoperm 1
|
||||
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
|
||||
waitmovement 0
|
||||
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleWonComment
|
||||
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A0D
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleLostComment
|
||||
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A16
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleTiedComment
|
||||
special LoadPlayerParty
|
||||
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 0
|
||||
releaseall
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04:: @ 8227A04
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227DB8, MSGBOX_DEFAULT
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleWonComment:: @ 8227A04
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_ThatWasSuperlative, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A0D:: @ 8227A0D
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227E03, MSGBOX_DEFAULT
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleLostComment:: @ 8227A0D
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_TooBadForYou, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A16:: @ 8227A16
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D5B, MSGBOX_DEFAULT
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_BattleTiedComment:: @ 8227A16
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_BrilliantStandoff, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227A1F: @ 8227A1F
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerExitStairs: @ 8227A1F
|
||||
walk_down
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227A21: @ 8227A21
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_OldManWalkBehindPlayer: @ 8227A21
|
||||
walk_right
|
||||
walk_in_place_fastest_down
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A24:: @ 8227A24
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_OldMan:: @ 8227A24
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_0x8004, 16
|
||||
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_CHECK_VISIT_TRAINER
|
||||
special CallFrontierUtilFunc
|
||||
compare VAR_RESULT, 1
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A4E
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_InvalidVisitingTrainer
|
||||
compare VAR_TEMP_1, 1
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227B46, MSGBOX_DEFAULT
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_TrainerVisiting
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_OnlyAmusementWatchingBattles, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A4E:: @ 8227A4E
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227B46, MSGBOX_DEFAULT
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_InvalidVisitingTrainer:: @ 8227A4E
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_OnlyAmusementWatchingBattles, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58:: @ 8227A58
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_TrainerVisiting:: @ 8227A58
|
||||
special SavePlayerParty
|
||||
special BufferEReaderTrainerName
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227BFC, MSGBOX_YESNO
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_ChallengeVisitingTrainer, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||||
call SootopolisCity_MysteryEventsHouse_1F_EventScript_227AEF
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
||||
call SootopolisCity_MysteryEventsHouse_1F_EventScript_ChooseParty
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227CEB, MSGBOX_YESNO
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_SaveProgressBeforeBattle, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
||||
special LoadPlayerParty
|
||||
call Common_EventScript_SaveGame
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle
|
||||
special SavePlayerParty
|
||||
special ReducePlayerPartyToSelectedMons
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D21, MSGBOX_DEFAULT
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_HopeToSeeGoodMatch, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
compare VAR_FACING, DIR_NORTH
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AFE
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementNorth
|
||||
compare VAR_FACING, DIR_EAST
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227B10
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementEast
|
||||
compare VAR_FACING, DIR_WEST
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227B22
|
||||
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_EnterBasementWest
|
||||
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F, 255, 3, 1
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2:: @ 8227AE2
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_DeclineBattle:: @ 8227AE2
|
||||
special LoadPlayerParty
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227C44, MSGBOX_DEFAULT
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_YouWontBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AEF:: @ 8227AEF
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227C84, MSGBOX_DEFAULT
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_ChooseParty:: @ 8227AEF
|
||||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_KeepItTo3On3, MSGBOX_DEFAULT
|
||||
fadescreen 1
|
||||
special ChooseHalfPartyForBattle
|
||||
waitstate
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AFE:: @ 8227AFE
|
||||
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_227B40
|
||||
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_227B34
|
||||
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
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227B10:: @ 8227B10
|
||||
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_227B43
|
||||
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_227B38
|
||||
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
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227B22:: @ 8227B22
|
||||
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_227B40
|
||||
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_227B3C
|
||||
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
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B34: @ 8227B34
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementNorth: @ 8227B34
|
||||
delay_16
|
||||
walk_up
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B38: @ 8227B38
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementEast: @ 8227B38
|
||||
delay_16
|
||||
walk_right
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B3C: @ 8227B3C
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_PlayerEnterBasementWest: @ 8227B3C
|
||||
delay_16
|
||||
walk_left
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B40: @ 8227B40
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideLeft: @ 8227B40
|
||||
walk_left
|
||||
walk_in_place_fastest_right
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B43: @ 8227B43
|
||||
SootopolisCity_MysteryEventsHouse_1F_Movement_OldManMoveAsideRight: @ 8227B43
|
||||
walk_right
|
||||
walk_in_place_fastest_left
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227B46: @ 8227B46
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_OnlyAmusementWatchingBattles: @ 8227B46
|
||||
.string "When I was young, I traveled the world\n"
|
||||
.string "as a POKéMON TRAINER.\p"
|
||||
.string "Now that I've become an old buzzard,\n"
|
||||
.string "my only amusement is watching young\l"
|
||||
.string "TRAINERS battle.$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227BDD: @ 8227BDD
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_DoorAppearsToBeLocked: @ 8227BDD
|
||||
.string "The door appears to be locked.$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227BFC: @ 8227BFC
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_ChallengeVisitingTrainer: @ 8227BFC
|
||||
.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}?$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227C44: @ 8227C44
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_YouWontBattle: @ 8227C44
|
||||
.string "You won't battle? I'm disappointed\n"
|
||||
.string "that I can't see you battle…$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227C84: @ 8227C84
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_KeepItTo3On3: @ 8227C84
|
||||
.string "Oh, good, good!\p"
|
||||
.string "But my house isn't all that sturdy.\p"
|
||||
.string "Could I ask you to keep it down to\n"
|
||||
.string "a 3-on-3 match?$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227CEB: @ 8227CEB
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_SaveProgressBeforeBattle: @ 8227CEB
|
||||
.string "Before you two battle, you should\n"
|
||||
.string "save your progress.$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227D21: @ 8227D21
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_HopeToSeeGoodMatch: @ 8227D21
|
||||
.string "I hope to see a good match!$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227D3D: @ 8227D3D
|
||||
@ Unused
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_StrVar1Tie: @ 8227D3D
|
||||
.string "{STR_VAR_1}$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_Text_227D40: @ 8227D40
|
||||
SootopolisCity_MysteryEventsHouse_B1F_Text_MatchEndedUpDraw: @ 8227D40
|
||||
.string "The match ended up a draw.$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227D5B: @ 8227D5B
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_BrilliantStandoff: @ 8227D5B
|
||||
.string "So, it became a standoff.\p"
|
||||
.string "It was a brilliant match in which\n"
|
||||
.string "neither side conceded a step!$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227DB5: @ 8227DB5
|
||||
@ Unused
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_StrVar1Won: @ 8227DB5
|
||||
.string "{STR_VAR_1}$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227DB8: @ 8227DB8
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_ThatWasSuperlative: @ 8227DB8
|
||||
.string "That was superlative!\p"
|
||||
.string "Why, it was like seeing myself in\n"
|
||||
.string "my youth again!$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227E00: @ 8227E00
|
||||
@ Unused
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_StrVar1Lost: @ 8227E00
|
||||
.string "{STR_VAR_1}$"
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_227E03: @ 8227E03
|
||||
SootopolisCity_MysteryEventsHouse_1F_Text_TooBadForYou: @ 8227E03
|
||||
.string "Ah, too bad for you!\p"
|
||||
.string "But it was a good match.\n"
|
||||
.string "I hope you can win next time.$"
|
||||
|
||||
Reference in New Issue
Block a user