pokefirered/data/maps/Route2_House/scripts.inc
2022-08-09 20:41:54 -04:00

41 lines
1.1 KiB
PHP

Route2_House_MapScripts::
.byte 0
Route2_House_EventScript_Scientist::
msgbox Route2_House_Text_FaintedMonsCanUseFieldMoves, MSGBOX_NPC
end
Route2_House_EventScript_Reyley::
lock
faceplayer
setvar VAR_0x8008, INGAME_TRADE_MR_MIME
call EventScript_GetInGameTradeSpeciesInfo
goto_if_set FLAG_DID_MIMIEN_TRADE, Route2_House_EventScript_AlreadyTraded
msgbox Trade_Text_LookingForMonWannaTradeForMon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, Route2_House_EventScript_DeclineTrade
call EventScript_ChooseMonForInGameTrade
goto_if_ge VAR_0x8004, PARTY_SIZE, Route2_House_EventScript_DeclineTrade
call EventScript_GetInGameTradeSpecies
goto_if_ne VAR_RESULT, VAR_0x8009, Route2_House_EventScript_NotRequestedMon
call EventScript_DoInGameTrade
msgbox Trade_Text_HeyThanks
setflag FLAG_DID_MIMIEN_TRADE
release
end
Route2_House_EventScript_DeclineTrade::
msgbox Trade_Text_AwwOhWell
release
end
Route2_House_EventScript_NotRequestedMon::
bufferspeciesname STR_VAR_1, VAR_0x8009
msgbox Trade_Text_WhatThatsNoMon
release
end
Route2_House_EventScript_AlreadyTraded::
msgbox Trade_Text_IsntMyOldMonGreat
release
end