mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-11 14:35:05 -05:00
44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
Route2_House_MapScripts:: @ 816F5F8
|
|
.byte 0
|
|
|
|
Route2_House_EventScript_Scientist:: @ 816F5F9
|
|
msgbox Route2_House_Text_FaintedMonsCanUseFieldMoves, MSGBOX_NPC
|
|
end
|
|
|
|
Route2_House_EventScript_Reyley:: @ 816F602
|
|
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
|
|
compare VAR_RESULT, NO
|
|
goto_if_eq Route2_House_EventScript_DeclineTrade
|
|
call EventScript_ChooseMonForInGameTrade
|
|
compare VAR_0x8004, PARTY_SIZE
|
|
goto_if_ge Route2_House_EventScript_DeclineTrade
|
|
call EventScript_GetInGameTradeSpecies
|
|
compare VAR_RESULT, VAR_0x8009
|
|
goto_if_ne Route2_House_EventScript_NotRequestedMon
|
|
call EventScript_DoInGameTrade
|
|
msgbox Trade_Text_HeyThanks
|
|
setflag FLAG_DID_MIMIEN_TRADE
|
|
release
|
|
end
|
|
|
|
Route2_House_EventScript_DeclineTrade:: @ 816F65C
|
|
msgbox Trade_Text_AwwOhWell
|
|
release
|
|
end
|
|
|
|
Route2_House_EventScript_NotRequestedMon:: @ 816F666
|
|
getspeciesname 0, VAR_0x8009
|
|
msgbox Trade_Text_WhatThatsNoMon
|
|
release
|
|
end
|
|
|
|
Route2_House_EventScript_AlreadyTraded:: @ 816F674
|
|
msgbox Trade_Text_IsntMyOldMonGreat
|
|
release
|
|
end
|