pokefirered/data/maps/Route18_EastEntrance_2F/scripts.inc
2022-06-24 21:10:48 -04:00

48 lines
1.4 KiB
PHP

Route18_EastEntrance_2F_MapScripts::
.byte 0
Route18_EastEntrance_2F_EventScript_LeftBinoculars::
msgbox Route18_EastEntrance_2F_Text_PalletTownInWest, MSGBOX_SIGN
end
Route18_EastEntrance_2F_EventScript_RightBinoculars::
msgbox Route18_EastEntrance_2F_Text_PeopleSwimming, MSGBOX_SIGN
end
Route18_EastEntrance_2F_EventScript_Haden::
lock
faceplayer
setvar VAR_0x8008, INGAME_TRADE_LICKITUNG
call EventScript_GetInGameTradeSpeciesInfo
goto_if_set FLAG_DID_MARC_TRADE, Route18_EastEntrance_2F_EventScript_AlreadyTraded
msgbox Trade_Text_LookingForMonWannaTradeForMon, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq Route18_EastEntrance_2F_EventScript_DeclineTrade
call EventScript_ChooseMonForInGameTrade
compare VAR_0x8004, PARTY_SIZE
goto_if_ge Route18_EastEntrance_2F_EventScript_DeclineTrade
call EventScript_GetInGameTradeSpecies
compare VAR_RESULT, VAR_0x8009
goto_if_ne Route18_EastEntrance_2F_EventScript_NotRequestedMon
call EventScript_DoInGameTrade
msgbox Trade_Text_HeyThanks
setflag FLAG_DID_MARC_TRADE
release
end
Route18_EastEntrance_2F_EventScript_DeclineTrade::
msgbox Trade_Text_AwwOhWell
release
end
Route18_EastEntrance_2F_EventScript_NotRequestedMon::
getspeciesname 0, VAR_0x8009
msgbox Trade_Text_WhatThatsNoMon
release
end
Route18_EastEntrance_2F_EventScript_AlreadyTraded::
msgbox Trade_Text_IsntMyOldMonGreat
release
end