pokeemerald/data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc

242 lines
8.1 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
SootopolisCity_MysteryEventsHouse_1F_MapScripts:: @ 8227953
map_script 3, SootopolisCity_MysteryEventsHouse_1F_MapScript1_22795E
map_script 2, SootopolisCity_MysteryEventsHouse_1F_MapScript2_22799D
.byte 0
SootopolisCity_MysteryEventsHouse_1F_MapScript1_22795E: @ 822795E
setvar VAR_0x8004, 16
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_22797D
compare VAR_0x40C0, 0
2018-12-22 03:32:45 +01:00
call_if_ne SootopolisCity_MysteryEventsHouse_1F_EventScript_227991
2017-11-10 02:21:31 +01:00
end
SootopolisCity_MysteryEventsHouse_1F_EventScript_22797D:: @ 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
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_DOWN
setmaplayoutindex LAYOUT_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F_STAIRS_UNBLOCKED
2017-11-10 02:21:31 +01:00
return
SootopolisCity_MysteryEventsHouse_1F_EventScript_227991:: @ 8227991
setobjectxyperm 1, 2, 2
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_RIGHT
2017-11-10 02:21:31 +01:00
return
SootopolisCity_MysteryEventsHouse_1F_MapScript2_22799D: @ 822799D
map_script_2 VAR_0x40C0, 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
map_script_2 VAR_0x40C0, 2, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
map_script_2 VAR_0x40C0, 3, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
.2byte 0
SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7:: @ 82279B7
lockall
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_227A1F
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement 1, SootopolisCity_MysteryEventsHouse_1F_Movement_227A21
waitmovement 0
moveobjectoffscreen 1
applymovement EVENT_OBJ_ID_PLAYER, SootopolisCity_MysteryEventsHouse_1F_Movement_2725A6
2017-11-10 02:21:31 +01:00
waitmovement 0
compare VAR_0x40C0, 1
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04
compare VAR_0x40C0, 2
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A0D
compare VAR_0x40C0, 3
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A16
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-11-10 02:21:31 +01:00
setvar VAR_0x40C0, 0
releaseall
end
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04:: @ 8227A04
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227DB8, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A0D:: @ 8227A0D
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227E03, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A16:: @ 8227A16
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D5B, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
SootopolisCity_MysteryEventsHouse_1F_Movement_227A1F: @ 8227A1F
walk_down
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_Movement_227A21: @ 8227A21
walk_right
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A24:: @ 8227A24
lock
faceplayer
setvar VAR_0x8004, 16
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A4E
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_1, 1
2018-12-22 02:28:24 +01:00
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227B46, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A4E:: @ 8227A4E
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227B46, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58:: @ 8227A58
2018-04-29 14:21:59 +02:00
special SavePlayerParty
special BufferEReaderTrainerName
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227BFC, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
2017-11-10 02:21:31 +01:00
call SootopolisCity_MysteryEventsHouse_1F_EventScript_227AEF
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227CEB, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-11-10 02:21:31 +01:00
call SootopolisCity_MysteryEventsHouse_1F_EventScript_27134F
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2018-11-25 22:50:54 +01:00
special ReducePlayerPartyToSelectedMons
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D21, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
compare VAR_FACING, 2
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AFE
compare VAR_FACING, 4
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227B10
compare VAR_FACING, 3
2018-12-22 03:32:45 +01:00
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227B22
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F, 255, 3, 1
2017-11-10 02:21:31 +01:00
waitstate
release
end
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2:: @ 8227AE2
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227C44, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AEF:: @ 8227AEF
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227C84, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
fadescreen 1
special EventScript_ChooseHalfPartyForBattle
2017-11-10 02:21:31 +01:00
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
2017-11-10 02:21:31 +01:00
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
2017-11-10 02:21:31 +01:00
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
2017-11-10 02:21:31 +01:00
waitmovement 0
return
SootopolisCity_MysteryEventsHouse_1F_Movement_227B34: @ 8227B34
delay_16
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_Movement_227B38: @ 8227B38
delay_16
walk_right
walk_up
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_Movement_227B3C: @ 8227B3C
delay_16
walk_left
walk_up
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_Movement_227B40: @ 8227B40
walk_left
walk_in_place_fastest_right
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_Movement_227B43: @ 8227B43
walk_right
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
SootopolisCity_MysteryEventsHouse_1F_Text_227B46: @ 8227B46
.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.$"
SootopolisCity_MysteryEventsHouse_1F_Text_227BDD: @ 8227BDD
.string "The door appears to be locked.$"
2017-11-10 02:21:31 +01:00
SootopolisCity_MysteryEventsHouse_1F_Text_227BFC: @ 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
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
SootopolisCity_MysteryEventsHouse_1F_Text_227C84: @ 8227C84
.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?$"
SootopolisCity_MysteryEventsHouse_1F_Text_227CEB: @ 8227CEB
.string "Before you two battle, you should\n"
.string "save your progress.$"
SootopolisCity_MysteryEventsHouse_1F_Text_227D21: @ 8227D21
.string "I hope to see a good match!$"
SootopolisCity_MysteryEventsHouse_1F_Text_227D3D: @ 8227D3D
.string "{STR_VAR_1}$"
SootopolisCity_MysteryEventsHouse_B1F_Text_227D40: @ 8227D40
.string "The match ended up a draw.$"
SootopolisCity_MysteryEventsHouse_1F_Text_227D5B: @ 8227D5B
.string "So, it became a standoff.\p"
.string "It was a brilliant match in which\n"
.string "neither side conceded a step!$"
2017-11-10 09:24:21 +01:00
SootopolisCity_MysteryEventsHouse_1F_Text_227DB5: @ 8227DB5
.string "{STR_VAR_1}$"
SootopolisCity_MysteryEventsHouse_1F_Text_227DB8: @ 8227DB8
.string "That was superlative!\p"
.string "Why, it was like seeing myself in\n"
.string "my youth again!$"
2017-11-10 09:24:21 +01:00
SootopolisCity_MysteryEventsHouse_1F_Text_227E00: @ 8227E00
.string "{STR_VAR_1}$"
SootopolisCity_MysteryEventsHouse_1F_Text_227E03: @ 8227E03
.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