sovereignx/data/maps/SootopolisCity_MysteryEventsHouse_B1F/scripts.inc

79 lines
2.3 KiB
PHP
Raw Normal View History

2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, SootopolisCity_MysteryEventsHouse_B1F_OnTransition
2019-11-10 01:40:41 +00:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_MysteryEventsHouse_B1F_OnFrame
2017-11-10 01:21:31 +00:00
.byte 0
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_OnTransition:
2018-10-20 23:06:42 +01:00
special SetEReaderTrainerGfxId
2017-11-10 01:21:31 +00:00
end
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_OnFrame:
2019-11-10 01:40:41 +00:00
map_script_2 VAR_TEMP_1, 0, SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleVisitingTrainer
2017-11-10 01:21:31 +00:00
.2byte 0
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleVisitingTrainer::
2017-11-10 01:21:31 +00:00
lockall
applymovement OBJ_EVENT_ID_PLAYER, SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerEnterBasement
2017-11-10 01:21:31 +00:00
waitmovement 0
2018-10-22 18:22:57 +01:00
special CopyEReaderTrainerGreeting
msgbox gStringVar4, MSGBOX_DEFAULT
2017-11-10 01:21:31 +00:00
closemessage
2018-10-21 19:13:12 +01:00
setvar VAR_0x8004, SPECIAL_BATTLE_EREADER
2017-11-10 01:21:31 +00:00
setvar VAR_0x8005, 0
2018-10-21 19:13:12 +01:00
special DoSpecialTrainerBattle
2017-11-10 01:21:31 +00:00
waitstate
compare VAR_RESULT, B_OUTCOME_DREW
2019-11-10 01:40:41 +00:00
call_if_eq SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleTie
compare VAR_RESULT, B_OUTCOME_WON
2019-11-10 01:40:41 +00:00
call_if_eq SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleWon
compare VAR_RESULT, B_OUTCOME_LOST
2019-11-10 01:40:41 +00:00
call_if_eq SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleLost
2017-11-10 01:21:31 +00:00
closemessage
2017-12-15 23:08:23 +00:00
special HealPlayerParty
applymovement OBJ_EVENT_ID_PLAYER, SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerExitBasement
2017-11-10 01:21:31 +00:00
waitmovement 0
2018-04-29 13:21:59 +01:00
special LoadPlayerParty
2018-05-19 17:02:43 +01:00
setvar VAR_TEMP_1, 1
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F, 255, 3, 1
2017-11-10 01:21:31 +00:00
waitstate
releaseall
end
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleTie::
2019-02-22 09:18:43 +00:00
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3
2019-11-10 01:40:41 +00:00
msgbox SootopolisCity_MysteryEventsHouse_B1F_Text_MatchEndedUpDraw, MSGBOX_DEFAULT
2017-11-10 01:21:31 +00:00
return
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleWon::
2019-02-22 09:18:43 +00:00
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1
special ShowFieldMessageStringVar4
2017-11-10 01:21:31 +00:00
waitmessage
waitbuttonpress
return
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleLost::
2019-02-22 09:18:43 +00:00
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2
special ShowFieldMessageStringVar4
2017-11-10 01:21:31 +00:00
waitmessage
waitbuttonpress
return
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerEnterBasement:
walk_down
walk_down
walk_down
walk_right
walk_right
2017-11-10 01:21:31 +00:00
step_end
2021-07-20 20:18:31 +01:00
SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerExitBasement:
walk_left
walk_left
walk_up
walk_up
walk_up
walk_up
delay_8
2017-11-10 01:21:31 +00:00
step_end