Document Routes 10-14 scripts

This commit is contained in:
GriffinR
2020-01-30 16:46:37 -05:00
parent 65690ca7dc
commit 1cfeae9ffa
40 changed files with 1168 additions and 1168 deletions
+22 -20
View File
@@ -1,3 +1,5 @@
.equ REQUIRED_OWNED_MONS, 20
Route10_PokemonCenter_1F_MapScripts:: @ 816FC2F
map_script MAP_SCRIPT_ON_TRANSITION, Route10_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -8,55 +10,55 @@ Route10_PokemonCenter_1F_OnTransition:: @ 816FC3A
setrespawn SPAWN_ROUTE10
end
Route10_PokemonCenter_1F_EventScript_16FC41:: @ 816FC41
Route10_PokemonCenter_1F_EventScript_Nurse:: @ 816FC41
lock
faceplayer
call EventScript_PkmnCenterNurse
release
end
Route10_PokemonCenter_1F_EventScript_16FC4A:: @ 816FC4A
msgbox gUnknown_819E59D, MSGBOX_NPC
Route10_PokemonCenter_1F_EventScript_FatMan:: @ 816FC4A
msgbox Route10_PokemonCenter_1F_Text_NuggetUselessSoldFor5000, MSGBOX_NPC
end
Route10_PokemonCenter_1F_EventScript_16FC53:: @ 816FC53
msgbox gUnknown_819E523, MSGBOX_NPC
Route10_PokemonCenter_1F_EventScript_Gentleman:: @ 816FC53
msgbox Route10_PokemonCenter_1F_Text_EveryTypeStrongerThanOthers, MSGBOX_NPC
end
Route10_PokemonCenter_1F_EventScript_16FC5C:: @ 816FC5C
msgbox gUnknown_819E5D2, MSGBOX_NPC
Route10_PokemonCenter_1F_EventScript_Youngster:: @ 816FC5C
msgbox Route10_PokemonCenter_1F_Text_HeardGhostsHauntLavender, MSGBOX_NPC
end
Route10_PokemonCenter_1F_EventScript_16FC65:: @ 816FC65
Route10_PokemonCenter_1F_EventScript_Aide:: @ 816FC65
lock
faceplayer
call EventScript_16FCF1
goto_if_set FLAG_GOT_EVERSTONE_FROM_OAKS_AIDE, EventScript_16FCE7
msgbox gUnknown_819E5FB, MSGBOX_YESNO
call Route10_PokemonCenter_1F_EventScript_GetAideRequestInfo
goto_if_set FLAG_GOT_EVERSTONE_FROM_OAKS_AIDE, Route10_PokemonCenter_1F_EventScript_AlreadyGotEverstone
msgbox Route10_PokemonCenter_1F_Text_GiveEverstoneIfCaught20Mons, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq Aide_EventScript_DeclineCheckMons
setvar VAR_0x8004, 0
specialvar VAR_RESULT, Special_GetPokedexCount
getnumberstring 2, VAR_0x8006
call EventScript_16FCF1
compare VAR_0x8006, 20
call Route10_PokemonCenter_1F_EventScript_GetAideRequestInfo
compare VAR_0x8006, REQUIRED_OWNED_MONS
goto_if_lt Aide_EventScript_HaventCaughtEnough
msgbox gUnknown_819E733
msgbox Route10_PokemonCenter_1F_Text_GreatHereYouGo
checkitemspace ITEM_EVERSTONE, 1
compare VAR_RESULT, FALSE
goto_if_eq Aide_EventScript_NoRoomForItem
giveitem_msg gUnknown_819E786, ITEM_EVERSTONE
giveitem_msg Route10_PokemonCenter_1F_Text_ReceivedEverstoneFromAide, ITEM_EVERSTONE
setflag FLAG_GOT_EVERSTONE_FROM_OAKS_AIDE
msgbox gUnknown_819E7AF
msgbox Route10_PokemonCenter_1F_Text_ExplainEverstone
release
end
EventScript_16FCE7:: @ 816FCE7
msgbox gUnknown_819E7AF
Route10_PokemonCenter_1F_EventScript_AlreadyGotEverstone:: @ 816FCE7
msgbox Route10_PokemonCenter_1F_Text_ExplainEverstone
release
end
EventScript_16FCF1:: @ 816FCF1
getnumberstring 0, 20
Route10_PokemonCenter_1F_EventScript_GetAideRequestInfo:: @ 816FCF1
getnumberstring 0, REQUIRED_OWNED_MONS
getitemname 1, ITEM_EVERSTONE
return