66 lines
2.6 KiB
ObjectPascal
66 lines
2.6 KiB
ObjectPascal
SilphCo_2F_MapScripts::
|
|
map_script MAP_SCRIPT_ON_LOAD, SilphCo_2F_OnLoad
|
|
.byte 0
|
|
|
|
SilphCo_2F_OnLoad::
|
|
call_if_unset FLAG_SILPH_2F_DOOR_1, EventScript_Close2FDoor1
|
|
call_if_unset FLAG_SILPH_2F_DOOR_2, EventScript_Close2FDoor2
|
|
end
|
|
|
|
SilphCo_2F_EventScript_ThunderWaveTutor::
|
|
goto EventScript_ThunderWaveTutor
|
|
end
|
|
|
|
SilphCo_2F_EventScript_FloorSign::
|
|
msgbox SilphCo_2F_Text_FloorSign, MSGBOX_SIGN
|
|
end
|
|
|
|
SilphCo_2F_EventScript_Connor::
|
|
trainerbattle_single TRAINER_SCIENTIST_CONNOR, SilphCo_2F_Text_ConnorIntro, SilphCo_2F_Text_ConnorDefeat
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
|
goto_if_eq VAR_RESULT, TRUE, SilphCo_2F_EventScript_ConnorRematch
|
|
msgbox SilphCo_2F_Text_ConnorPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_ConnorRematch::
|
|
trainerbattle_rematch TRAINER_SCIENTIST_CONNOR, SilphCo_2F_Text_ConnorIntro, SilphCo_2F_Text_ConnorDefeat
|
|
msgbox SilphCo_2F_Text_ConnorPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_Jerry::
|
|
trainerbattle_single TRAINER_SCIENTIST_JERRY, SilphCo_2F_Text_JerryIntro, SilphCo_2F_Text_JerryDefeat
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
|
goto_if_eq VAR_RESULT, TRUE, SilphCo_2F_EventScript_JerryRematch
|
|
msgbox SilphCo_2F_Text_JerryPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_JerryRematch::
|
|
trainerbattle_rematch TRAINER_SCIENTIST_JERRY, SilphCo_2F_Text_JerryIntro, SilphCo_2F_Text_JerryDefeat
|
|
msgbox SilphCo_2F_Text_JerryPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_Grunt1::
|
|
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_23, SilphCo_2F_Text_Grunt1Intro, SilphCo_2F_Text_Grunt1Defeat
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
|
goto_if_eq VAR_RESULT, TRUE, SilphCo_2F_EventScript_Grunt1Rematch
|
|
msgbox SilphCo_2F_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_Grunt1Rematch::
|
|
trainerbattle_rematch TRAINER_TEAM_ROCKET_GRUNT_23, SilphCo_2F_Text_Grunt1Intro, SilphCo_2F_Text_Grunt1Defeat
|
|
msgbox SilphCo_2F_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_Grunt2::
|
|
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_24, SilphCo_2F_Text_Grunt2Intro, SilphCo_2F_Text_Grunt2Defeat
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
|
goto_if_eq VAR_RESULT, TRUE, SilphCo_2F_EventScript_Grunt2Rematch
|
|
msgbox SilphCo_2F_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
SilphCo_2F_EventScript_Grunt2Rematch::
|
|
trainerbattle_rematch TRAINER_TEAM_ROCKET_GRUNT_24, SilphCo_2F_Text_Grunt2Intro, SilphCo_2F_Text_Grunt2Defeat
|
|
msgbox SilphCo_2F_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|