2017-11-10 02:21:31 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_MapScripts:: @ 8227E4F
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, SootopolisCity_MysteryEventsHouse_B1F_OnTransition
|
2019-11-10 02:40:41 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_MysteryEventsHouse_B1F_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_OnTransition: @ 8227E5A
|
2018-10-21 00:06:42 +02:00
|
|
|
special SetEReaderTrainerGfxId
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_OnFrame: @ 8227E5E
|
|
|
|
map_script_2 VAR_TEMP_1, 0, SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleVisitingTrainer
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleVisitingTrainer:: @ 8227E68
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerEnterBasement
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2018-10-22 19:22:57 +02:00
|
|
|
special CopyEReaderTrainerGreeting
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2018-10-21 20:13:12 +02:00
|
|
|
setvar VAR_0x8004, SPECIAL_BATTLE_EREADER
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8005, 0
|
2018-10-21 20:13:12 +02:00
|
|
|
special DoSpecialTrainerBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 3
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleTie
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleWon
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 2
|
2019-11-10 02:40:41 +01:00
|
|
|
call_if_eq SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleLost
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2017-12-16 00:08:23 +01:00
|
|
|
special HealPlayerParty
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerExitBasement
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2018-04-29 14:21:59 +02:00
|
|
|
special LoadPlayerParty
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F, 255, 3, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleTie:: @ 8227ECF
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3
|
2019-11-10 02:40:41 +01:00
|
|
|
msgbox SootopolisCity_MysteryEventsHouse_B1F_Text_MatchEndedUpDraw, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleWon:: @ 8227EDD
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1
|
2017-12-28 09:09:11 +01:00
|
|
|
special ShowFieldMessageStringVar4
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleLost:: @ 8227EE8
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2
|
2017-12-28 09:09:11 +01:00
|
|
|
special ShowFieldMessageStringVar4
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
return
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerEnterBasement: @ 8227EF3
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_right
|
|
|
|
walk_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-10 02:40:41 +01:00
|
|
|
SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerExitBasement: @ 8227EF9
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
delay_8
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|