2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_MapScripts::
|
2019-11-01 08:41:55 +01:00
|
|
|
map_script MAP_SCRIPT_ON_RESUME, AquaHideout_B1F_OnResume
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, AquaHideout_B1F_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_OnResume:
|
2019-11-01 08:41:55 +01:00
|
|
|
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, AquaHideout_B1F_EventScript_TryRemoveElectrode
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_TryRemoveElectrode::
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_ne VAR_RESULT, B_OUTCOME_CAUGHT, Common_EventScript_NopReturn
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject VAR_LAST_TALKED
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_OnTransition:
|
2019-11-01 08:41:55 +01:00
|
|
|
call_if_unset FLAG_DEFEATED_ELECTRODE_1_AQUA_HIDEOUT, AquaHideout_B1F_EventScript_ShowElectrode1
|
|
|
|
call_if_unset FLAG_DEFEATED_ELECTRODE_2_AQUA_HIDEOUT, AquaHideout_B1F_EventScript_ShowElectrode2
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_ShowElectrode1::
|
2018-10-18 04:07:23 +02:00
|
|
|
clearflag FLAG_HIDE_AQUA_HIDEOUT_B1F_ELECTRODE_1
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_ShowElectrode2::
|
2018-10-18 04:07:23 +02:00
|
|
|
clearflag FLAG_HIDE_AQUA_HIDEOUT_B1F_ELECTRODE_2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Electrode1::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2022-01-11 08:08:14 +01:00
|
|
|
setwildbattle SPECIES_ELECTRODE, 30
|
2017-11-10 02:21:31 +01:00
|
|
|
waitse
|
2021-11-07 18:58:11 +01:00
|
|
|
playmoncry SPECIES_ELECTRODE, CRY_MODE_ENCOUNTER
|
2017-11-10 02:21:31 +01:00
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
dowildbattle
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_WON, AquaHideout_B1F_EventScript_DefeatedElectrode1
|
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_RAN, AquaHideout_B1F_EventScript_DefeatedElectrode1
|
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED, AquaHideout_B1F_EventScript_DefeatedElectrode1
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_ELECTRODE_1_AQUA_HIDEOUT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_DefeatedElectrode1::
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_ELECTRODE_1_AQUA_HIDEOUT
|
2019-08-15 05:38:42 +02:00
|
|
|
goto Common_EventScript_RemoveStaticPokemon
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Electrode2::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2022-01-11 08:08:14 +01:00
|
|
|
setwildbattle SPECIES_ELECTRODE, 30
|
2017-11-10 02:21:31 +01:00
|
|
|
waitse
|
2021-11-07 18:58:11 +01:00
|
|
|
playmoncry SPECIES_ELECTRODE, CRY_MODE_ENCOUNTER
|
2017-11-10 02:21:31 +01:00
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
dowildbattle
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_WON, AquaHideout_B1F_EventScript_DefeatedElectrode2
|
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_RAN, AquaHideout_B1F_EventScript_DefeatedElectrode2
|
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED, AquaHideout_B1F_EventScript_DefeatedElectrode2
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_ELECTRODE_2_AQUA_HIDEOUT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_DefeatedElectrode2::
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_ELECTRODE_2_AQUA_HIDEOUT
|
2019-08-15 05:38:42 +02:00
|
|
|
goto Common_EventScript_RemoveStaticPokemon
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Grunt2::
|
2019-11-04 01:28:25 +01:00
|
|
|
trainerbattle_single TRAINER_GRUNT_AQUA_HIDEOUT_2, AquaHideout_B1F_Text_Grunt2Intro, AquaHideout_B1F_Text_Grunt2Defeat, AquaHideout_B1F_EventScript_Grunt2Defeated
|
2019-11-01 08:41:55 +01:00
|
|
|
msgbox AquaHideout_B1F_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Grunt2Defeated::
|
2019-11-01 08:41:55 +01:00
|
|
|
special PlayerFaceTrainerAfterBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-11-01 08:41:55 +01:00
|
|
|
msgbox AquaHideout_B1F_Text_Grunt2PostBattle, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Grunt3::
|
2019-11-04 01:28:25 +01:00
|
|
|
trainerbattle_single TRAINER_GRUNT_AQUA_HIDEOUT_3, AquaHideout_B1F_Text_Grunt3Intro, AquaHideout_B1F_Text_Grunt3Defeat, AquaHideout_B1F_EventScript_Grunt3Defeated
|
2019-11-01 08:41:55 +01:00
|
|
|
msgbox AquaHideout_B1F_Text_Grunt3PostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Grunt3Defeated::
|
2019-11-01 08:41:55 +01:00
|
|
|
msgbox AquaHideout_B1F_Text_Grunt3PostBattle, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Grunt5::
|
2019-11-04 01:28:25 +01:00
|
|
|
trainerbattle_single TRAINER_GRUNT_AQUA_HIDEOUT_5, AquaHideout_B1F_Text_Grunt5Intro, AquaHideout_B1F_Text_Grunt5Defeat
|
|
|
|
msgbox AquaHideout_B1F_Text_Grunt5PostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_EventScript_Grunt7::
|
2019-11-04 01:28:25 +01:00
|
|
|
trainerbattle_single TRAINER_GRUNT_AQUA_HIDEOUT_7, AquaHideout_B1F_Text_Grunt7Intro, AquaHideout_B1F_Text_Grunt7Defeat
|
|
|
|
msgbox AquaHideout_B1F_Text_Grunt7PostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt2Intro:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "If you want to know the secret about\n"
|
|
|
|
.string "our HIDEOUT, you have me to beat!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt2Defeat:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I can't win at all…$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt2PostBattle:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Our HIDEOUT's secret?\p"
|
|
|
|
.string "Well, let's just say…\n"
|
|
|
|
.string "There's a submarine at the far end!\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "But, by now…\n"
|
|
|
|
.string "Kekekeke…$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt3Intro:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Fuel supply loaded A-OK!\n"
|
|
|
|
.string "In-cruise snacks loaded A-OK!\p"
|
|
|
|
.string "Nothing left to do but KO a pesky\n"
|
|
|
|
.string "meddler!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt3Defeat:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "I took a serious licking!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt3PostBattle:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Humph!\n"
|
|
|
|
.string "This was supposed to happen!\p"
|
|
|
|
.string "My mission was to just hold you up!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt5Intro:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Yawn… Keeping watch over the\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "HIDEOUT bores me. I'll take you on.$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt5Defeat:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Yawn…\n"
|
|
|
|
.string "Oh, I lost…$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt5PostBattle:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "If you scurry too much, other TEAM\n"
|
|
|
|
.string "AQUA members might get you.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt7Intro:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Hey!\n"
|
|
|
|
.string "You there!\p"
|
|
|
|
.string "Which do you think is cooler?\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "TEAM AQUA's uniform or TEAM MAGMA's?$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt7Defeat:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "I lost in a cool way…$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
AquaHideout_B1F_Text_Grunt7PostBattle:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "If you have a cool uniform, you look\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "good even in a loss, don't you think?$"
|