pokefirered/data/maps/SilphCo_8F/scripts.inc
2022-08-09 20:41:54 -04:00

40 lines
1.1 KiB
PHP

SilphCo_8F_MapScripts::
map_script MAP_SCRIPT_ON_LOAD, SilphCo_8F_OnLoad
.byte 0
SilphCo_8F_OnLoad::
call_if_unset FLAG_SILPH_8F_DOOR, EventScript_Close8FDoor
end
SilphCo_8F_EventScript_WorkerM::
lock
faceplayer
goto_if_ge VAR_MAP_SCENE_SILPH_CO_11F, 1, SilphCo_8F_EventScript_WorkerMRocketsGone
msgbox SilphCo_8F_Text_WonderIfSilphIsFinished
release
end
SilphCo_8F_EventScript_WorkerMRocketsGone::
msgbox SilphCo_8F_Text_ThanksForSavingUs
release
end
SilphCo_8F_EventScript_FloorSign::
msgbox SilphCo_8F_Text_FloorSign, MSGBOX_SIGN
end
SilphCo_8F_EventScript_Parker::
trainerbattle_single TRAINER_SCIENTIST_PARKER, SilphCo_8F_Text_ParkerIntro, SilphCo_8F_Text_ParkerDefeat
msgbox SilphCo_8F_Text_ParkerPostBattle, MSGBOX_AUTOCLOSE
end
SilphCo_8F_EventScript_Grunt1::
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_32, SilphCo_8F_Text_Grunt1Intro, SilphCo_8F_Text_Grunt1Defeat
msgbox SilphCo_8F_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
end
SilphCo_8F_EventScript_Grunt2::
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_36, SilphCo_8F_Text_Grunt2Intro, SilphCo_8F_Text_Grunt2Defeat
msgbox SilphCo_8F_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
end