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
+4 -4
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "Route11_EastEntrance_2F_EventScript_16FD5C",
"script": "Route11_EastEntrance_2F_EventScript_Turner",
"flag": "0"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "Route11_EastEntrance_2F_EventScript_16FDD8",
"script": "Route11_EastEntrance_2F_EventScript_Aide",
"flag": "0"
}
],
@@ -56,14 +56,14 @@
"x": 4,
"y": 1,
"elevation": 0,
"script": "Route11_EastEntrance_2F_EventScript_16FD35"
"script": "Route11_EastEntrance_2F_EventScript_LeftBinoculars"
},
{
"type": "bg_event_type_0",
"x": 8,
"y": 1,
"elevation": 0,
"script": "Route11_EastEntrance_2F_EventScript_16FD53"
"script": "Route11_EastEntrance_2F_EventScript_RightBinoculars"
}
]
}
+30 -28
View File
@@ -1,89 +1,91 @@
.equ REQUIRED_CAUGHT_MONS, 30
Route11_EastEntrance_2F_MapScripts:: @ 816FD34
.byte 0
Route11_EastEntrance_2F_EventScript_16FD35:: @ 816FD35
Route11_EastEntrance_2F_EventScript_LeftBinoculars:: @ 816FD35
lockall
goto_if_set FLAG_WOKE_UP_ROUTE_12_SNORLAX, EventScript_16FD49
msgbox gUnknown_819EC8A
goto_if_set FLAG_WOKE_UP_ROUTE_12_SNORLAX, Route11_EastEntrance_2F_EventScript_LeftBinocularsSnorlaxGone
msgbox Route11_EastEntrance_2F_Text_BigMonAsleepOnRoad
releaseall
end
EventScript_16FD49:: @ 816FD49
msgbox gUnknown_819ECD9
Route11_EastEntrance_2F_EventScript_LeftBinocularsSnorlaxGone:: @ 816FD49
msgbox Route11_EastEntrance_2F_Text_WhatABreathtakingView
releaseall
end
Route11_EastEntrance_2F_EventScript_16FD53:: @ 816FD53
msgbox gUnknown_819ED1F, MSGBOX_SIGN
Route11_EastEntrance_2F_EventScript_RightBinoculars:: @ 816FD53
msgbox Route11_EastEntrance_2F_Text_RockTunnelGoodRouteToLavender, MSGBOX_SIGN
end
Route11_EastEntrance_2F_EventScript_16FD5C:: @ 816FD5C
Route11_EastEntrance_2F_EventScript_Turner:: @ 816FD5C
lock
faceplayer
setvar VAR_0x8008, INGAME_TRADE_NIDORINOA
call EventScript_GetInGameTradeSpeciesInfo
goto_if_set FLAG_DID_NINA_TRADE, EventScript_16FDCE
goto_if_set FLAG_DID_NINA_TRADE, Route11_EastEntrance_2F_EventScript_AlreadyTraded
msgbox Trade_Text_LookingForMonWannaTradeForMon, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_16FDB6
goto_if_eq Route11_EastEntrance_2F_EventScript_DeclineTrade
call EventScript_ChooseMonForInGameTrade
compare VAR_0x8004, PARTY_SIZE
goto_if_ge EventScript_16FDB6
goto_if_ge Route11_EastEntrance_2F_EventScript_DeclineTrade
call EventScript_GetInGameTradeSpecies
compare VAR_RESULT, VAR_0x8009
goto_if_ne EventScript_16FDC0
goto_if_ne Route11_EastEntrance_2F_EventScript_NotRequestedMon
call EventScript_DoInGameTrade
msgbox Trade_Text_HeyThanks
setflag FLAG_DID_NINA_TRADE
release
end
EventScript_16FDB6:: @ 816FDB6
Route11_EastEntrance_2F_EventScript_DeclineTrade:: @ 816FDB6
msgbox Trade_Text_AwwOhWell
release
end
EventScript_16FDC0:: @ 816FDC0
Route11_EastEntrance_2F_EventScript_NotRequestedMon:: @ 816FDC0
getspeciesname 0, VAR_0x8009
msgbox Trade_Text_WhatThatsNoMon
release
end
EventScript_16FDCE:: @ 816FDCE
Route11_EastEntrance_2F_EventScript_AlreadyTraded:: @ 816FDCE
msgbox Trade_Text_IsntMyOldMonGreat
release
end
Route11_EastEntrance_2F_EventScript_16FDD8:: @ 816FDD8
Route11_EastEntrance_2F_EventScript_Aide:: @ 816FDD8
lock
faceplayer
call EventScript_16FE64
goto_if_set FLAG_GOT_ITEMFINDER, EventScript_16FE5A
msgbox gUnknown_819E9E5, MSGBOX_YESNO
call Route11_EastEntrance_2F_EventScript_GetAideRequestInfo
goto_if_set FLAG_GOT_ITEMFINDER, Route11_EastEntrance_2F_EventScript_AlreadyGotItemfinder
msgbox Route11_EastEntrance_2F_Text_GiveItemfinderIfCaught30, 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_16FE64
compare VAR_0x8006, 30
call Route11_EastEntrance_2F_EventScript_GetAideRequestInfo
compare VAR_0x8006, REQUIRED_CAUGHT_MONS
goto_if_lt Aide_EventScript_HaventCaughtEnough
msgbox gUnknown_819EAE4
msgbox Route11_EastEntrance_2F_Text_GreatHereYouGo
checkitemspace ITEM_ITEMFINDER, 1
compare VAR_RESULT, FALSE
goto_if_eq Aide_EventScript_NoRoomForItem
giveitem_msg gUnknown_819EB37, ITEM_ITEMFINDER
giveitem_msg Route11_EastEntrance_2F_Text_ReceivedItemfinderFromAide, ITEM_ITEMFINDER
setflag FLAG_GOT_ITEMFINDER
msgbox gUnknown_819EB59
msgbox Route11_EastEntrance_2F_Text_ExplainItemfinder
release
end
EventScript_16FE5A:: @ 816FE5A
msgbox gUnknown_819EB59
Route11_EastEntrance_2F_EventScript_AlreadyGotItemfinder:: @ 816FE5A
msgbox Route11_EastEntrance_2F_Text_ExplainItemfinder
release
end
EventScript_16FE64:: @ 816FE64
getnumberstring 0, 30
Route11_EastEntrance_2F_EventScript_GetAideRequestInfo:: @ 816FE64
getnumberstring 0, REQUIRED_CAUGHT_MONS
getitemname 1, ITEM_ITEMFINDER
return
+7 -7
View File
@@ -1,4 +1,4 @@
gUnknown_819E9E5:: @ 819E9E5
Route11_EastEntrance_2F_Text_GiveItemfinderIfCaught30:: @ 819E9E5
.string "Hi! Remember me?\n"
.string "I'm one of PROF. OAK's AIDES.\p"
.string "If your POKéDEX has complete data\n"
@@ -10,17 +10,17 @@ gUnknown_819E9E5:: @ 819E9E5
.string "Have you gathered data on at least\n"
.string "{STR_VAR_1} kinds of POKéMON?$"
gUnknown_819EAE4:: @ 819EAE4
Route11_EastEntrance_2F_Text_GreatHereYouGo:: @ 819EAE4
.string "Great! You have caught or owned\n"
.string "{STR_VAR_3} kinds of POKéMON!\p"
.string "Congratulations!\n"
.string "Here you go!$"
gUnknown_819EB37:: @ 819EB37
Route11_EastEntrance_2F_Text_ReceivedItemfinderFromAide:: @ 819EB37
.string "{PLAYER} received the {STR_VAR_2}\n"
.string "from the AIDE.$"
gUnknown_819EB59:: @ 819EB59
Route11_EastEntrance_2F_Text_ExplainItemfinder:: @ 819EB59
.string "There are items on the ground that\n"
.string "may be hidden from view.\p"
.string "Use the ITEMFINDER to detect any\n"
@@ -32,17 +32,17 @@ gUnknown_819EB59:: @ 819EB59
.string "Use it to get your bearings, then\n"
.string "search the suspect area by hand.$"
gUnknown_819EC8A:: @ 819EC8A
Route11_EastEntrance_2F_Text_BigMonAsleepOnRoad:: @ 819EC8A
.string "Let's see what the binoculars have\n"
.string "to show…\p"
.string "A big POKéMON is asleep on a road!$"
gUnknown_819ECD9:: @ 819ECD9
Route11_EastEntrance_2F_Text_WhatABreathtakingView:: @ 819ECD9
.string "Let's see what the binoculars have\n"
.string "to show…\p"
.string "What a breathtaking view!$"
gUnknown_819ED1F:: @ 819ED1F
Route11_EastEntrance_2F_Text_RockTunnelGoodRouteToLavender:: @ 819ED1F
.string "Let's see what the binoculars have\n"
.string "to show…\p"
.string "To get to LAVENDER TOWN from\n"