pokeemerald/data/maps/AquaHideout_B1F/scripts.inc

168 lines
5.1 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
AquaHideout_B1F_MapScripts:: @ 82339A7
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_RESUME, AquaHideout_B1F_MapScript1_2339B2
map_script MAP_SCRIPT_ON_TRANSITION, AquaHideout_B1F_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
AquaHideout_B1F_MapScript1_2339B2: @ 82339B2
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, AquaHideout_B1F_EventScript_2339BC
2017-11-10 02:21:31 +01:00
end
AquaHideout_B1F_EventScript_2339BC:: @ 82339BC
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_CAUGHT
2019-02-23 02:21:26 +01:00
goto_if_ne Common_EventScript_NopReturn
2017-11-10 02:21:31 +01:00
removeobject VAR_LAST_TALKED
return
AquaHideout_B1F_OnTransition: @ 82339D0
2019-01-02 22:12:43 +01:00
call_if_unset FLAG_DEFEATED_ELECTRODE_1_AQUA_HIDEOUT, AquaHideout_B1F_EventScript_2339E3
call_if_unset FLAG_DEFEATED_ELECTRODE_2_AQUA_HIDEOUT, AquaHideout_B1F_EventScript_2339E7
2017-11-10 02:21:31 +01:00
end
AquaHideout_B1F_EventScript_2339E3:: @ 82339E3
clearflag FLAG_HIDE_AQUA_HIDEOUT_B1F_ELECTRODE_1
2017-11-10 02:21:31 +01:00
return
AquaHideout_B1F_EventScript_2339E7:: @ 82339E7
clearflag FLAG_HIDE_AQUA_HIDEOUT_B1F_ELECTRODE_2
2017-11-10 02:21:31 +01:00
return
AquaHideout_B1F_EventScript_2339EB:: @ 82339EB
lock
faceplayer
setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
waitse
playmoncry SPECIES_ELECTRODE, 2
delay 40
waitmoncry
setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_WON
2018-12-22 02:28:24 +01:00
goto_if_eq AquaHideout_B1F_EventScript_233A2F
compare VAR_RESULT, B_OUTCOME_RAN
2018-12-22 02:28:24 +01:00
goto_if_eq AquaHideout_B1F_EventScript_233A2F
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
2018-12-22 02:28:24 +01:00
goto_if_eq AquaHideout_B1F_EventScript_233A2F
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
AquaHideout_B1F_EventScript_233A2F:: @ 8233A2F
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
AquaHideout_B1F_EventScript_233A38:: @ 8233A38
lock
faceplayer
setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
waitse
playmoncry SPECIES_ELECTRODE, 2
delay 40
waitmoncry
setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_WON
2018-12-22 02:28:24 +01:00
goto_if_eq AquaHideout_B1F_EventScript_233A7C
compare VAR_RESULT, B_OUTCOME_RAN
2018-12-22 02:28:24 +01:00
goto_if_eq AquaHideout_B1F_EventScript_233A7C
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
2018-12-22 02:28:24 +01:00
goto_if_eq AquaHideout_B1F_EventScript_233A7C
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
AquaHideout_B1F_EventScript_233A7C:: @ 8233A7C
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
AquaHideout_B1F_EventScript_233A85:: @ 8233A85
trainerbattle_single TRAINER_GRUNT_2, AquaHideout_B1F_Text_233B03, AquaHideout_B1F_Text_233B4A, AquaHideout_B1F_EventScript_233AA0
msgbox AquaHideout_B1F_Text_233B5E, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
AquaHideout_B1F_EventScript_233AA0:: @ 8233AA0
special sub_80B4808
waitmovement 0
msgbox AquaHideout_B1F_Text_233B5E, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
AquaHideout_B1F_EventScript_233AB0:: @ 8233AB0
trainerbattle_single TRAINER_GRUNT_3, AquaHideout_B1F_Text_233BC5, AquaHideout_B1F_Text_233C27, AquaHideout_B1F_EventScript_233ACB
msgbox AquaHideout_B1F_Text_233C41, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
AquaHideout_B1F_EventScript_233ACB:: @ 8233ACB
msgbox AquaHideout_B1F_Text_233C41, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
AquaHideout_B1F_EventScript_233AD5:: @ 8233AD5
trainerbattle_single TRAINER_GRUNT_21, AquaHideout_B1F_Text_233C89, AquaHideout_B1F_Text_233CCA
msgbox AquaHideout_B1F_Text_233CDC, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
AquaHideout_B1F_EventScript_233AEC:: @ 8233AEC
trainerbattle_single TRAINER_GRUNT_25, AquaHideout_B1F_Text_233D1B, AquaHideout_B1F_Text_233D6E
msgbox AquaHideout_B1F_Text_233D84, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
AquaHideout_B1F_Text_233B03: @ 8233B03
.string "If you want to know the secret about\n"
.string "our HIDEOUT, you have me to beat!$"
AquaHideout_B1F_Text_233B4A: @ 8233B4A
2018-12-07 16:41:08 +01:00
.string "I can't win at all…$"
2017-11-10 02:21:31 +01:00
AquaHideout_B1F_Text_233B5E: @ 8233B5E
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…$"
AquaHideout_B1F_Text_233BC5: @ 8233BC5
.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!$"
AquaHideout_B1F_Text_233C27: @ 8233C27
.string "I took a serious licking!$"
AquaHideout_B1F_Text_233C41: @ 8233C41
.string "Humph!\n"
.string "This was supposed to happen!\p"
.string "My mission was to just hold you up!$"
AquaHideout_B1F_Text_233C89: @ 8233C89
.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
AquaHideout_B1F_Text_233CCA: @ 8233CCA
.string "Yawn…\n"
.string "Oh, I lost…$"
AquaHideout_B1F_Text_233CDC: @ 8233CDC
.string "If you scurry too much, other TEAM\n"
.string "AQUA members might get you.$"
AquaHideout_B1F_Text_233D1B: @ 8233D1B
.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
AquaHideout_B1F_Text_233D6E: @ 8233D6E
.string "I lost in a cool way…$"
AquaHideout_B1F_Text_233D84: @ 8233D84
.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?$"