mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-31 20:52:48 -05:00
92 lines
2.9 KiB
PHP
92 lines
2.9 KiB
PHP
.equ REQUIRED_CAUGHT_MONS, 30
|
|
|
|
Route11_EastEntrance_2F_MapScripts:: @ 816FD34
|
|
.byte 0
|
|
|
|
Route11_EastEntrance_2F_EventScript_LeftBinoculars:: @ 816FD35
|
|
lockall
|
|
goto_if_set FLAG_WOKE_UP_ROUTE_12_SNORLAX, Route11_EastEntrance_2F_EventScript_LeftBinocularsSnorlaxGone
|
|
msgbox Route11_EastEntrance_2F_Text_BigMonAsleepOnRoad
|
|
releaseall
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_LeftBinocularsSnorlaxGone:: @ 816FD49
|
|
msgbox Route11_EastEntrance_2F_Text_WhatABreathtakingView
|
|
releaseall
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_RightBinoculars:: @ 816FD53
|
|
msgbox Route11_EastEntrance_2F_Text_RockTunnelGoodRouteToLavender, MSGBOX_SIGN
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_Turner:: @ 816FD5C
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8008, INGAME_TRADE_NIDORINOA
|
|
call EventScript_GetInGameTradeSpeciesInfo
|
|
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 Route11_EastEntrance_2F_EventScript_DeclineTrade
|
|
call EventScript_ChooseMonForInGameTrade
|
|
compare VAR_0x8004, PARTY_SIZE
|
|
goto_if_ge Route11_EastEntrance_2F_EventScript_DeclineTrade
|
|
call EventScript_GetInGameTradeSpecies
|
|
compare VAR_RESULT, VAR_0x8009
|
|
goto_if_ne Route11_EastEntrance_2F_EventScript_NotRequestedMon
|
|
call EventScript_DoInGameTrade
|
|
msgbox Trade_Text_HeyThanks
|
|
setflag FLAG_DID_NINA_TRADE
|
|
release
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_DeclineTrade:: @ 816FDB6
|
|
msgbox Trade_Text_AwwOhWell
|
|
release
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_NotRequestedMon:: @ 816FDC0
|
|
getspeciesname 0, VAR_0x8009
|
|
msgbox Trade_Text_WhatThatsNoMon
|
|
release
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_AlreadyTraded:: @ 816FDCE
|
|
msgbox Trade_Text_IsntMyOldMonGreat
|
|
release
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_Aide:: @ 816FDD8
|
|
lock
|
|
faceplayer
|
|
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, GetPokedexCount
|
|
getnumberstring 2, VAR_0x8006
|
|
call Route11_EastEntrance_2F_EventScript_GetAideRequestInfo
|
|
compare VAR_0x8006, REQUIRED_CAUGHT_MONS
|
|
goto_if_lt Aide_EventScript_HaventCaughtEnough
|
|
msgbox Route11_EastEntrance_2F_Text_GreatHereYouGo
|
|
checkitemspace ITEM_ITEMFINDER, 1
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Aide_EventScript_NoRoomForItem
|
|
giveitem_msg Route11_EastEntrance_2F_Text_ReceivedItemfinderFromAide, ITEM_ITEMFINDER
|
|
setflag FLAG_GOT_ITEMFINDER
|
|
msgbox Route11_EastEntrance_2F_Text_ExplainItemfinder
|
|
release
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_AlreadyGotItemfinder:: @ 816FE5A
|
|
msgbox Route11_EastEntrance_2F_Text_ExplainItemfinder
|
|
release
|
|
end
|
|
|
|
Route11_EastEntrance_2F_EventScript_GetAideRequestInfo:: @ 816FE64
|
|
getnumberstring 0, REQUIRED_CAUGHT_MONS
|
|
getitemname 1, ITEM_ITEMFINDER
|
|
return
|