mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
53 lines
1.4 KiB
PHP
53 lines
1.4 KiB
PHP
@ VAR_0x8004 here is used by ChangePokemonNickname
|
|
Common_EventScript_GetGiftMonPartySlot::
|
|
getpartysize
|
|
subvar VAR_RESULT, 1
|
|
copyvar VAR_0x8004, VAR_RESULT
|
|
return
|
|
|
|
Common_EventScript_NameReceivedBoxMon::
|
|
fadescreen FADE_TO_BLACK
|
|
special ChangeBoxPokemonNickname
|
|
waitstate
|
|
lock
|
|
faceplayer
|
|
return
|
|
|
|
Common_EventScript_TransferredToPC::
|
|
bufferboxname 0, VAR_PC_BOX_TO_SEND_MON
|
|
bufferspeciesname 1, VAR_TEMP_1
|
|
call_if_unset FLAG_SYS_PC_LANETTE, EventScript_TransferredSomeonesPC
|
|
call_if_set FLAG_SYS_PC_LANETTE, EventScript_TransferredLanettesPC
|
|
return
|
|
|
|
EventScript_TransferredSomeonesPC::
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
|
compare VAR_RESULT, 1
|
|
goto_if_eq EventScript_SomeonesPCBoxFull
|
|
msgbox gText_PkmnTransferredSomeonesPC, MSGBOX_DEFAULT
|
|
return
|
|
|
|
EventScript_SomeonesPCBoxFull::
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
|
bufferboxname 2, VAR_RESULT
|
|
msgbox gText_PkmnTransferredSomeonesPCBoxFull, MSGBOX_DEFAULT
|
|
return
|
|
|
|
EventScript_TransferredLanettesPC::
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
|
compare VAR_RESULT, TRUE
|
|
goto_if_eq EventScript_LanettesPCBoxFull
|
|
msgbox gText_PkmnTransferredLanettesPC, MSGBOX_DEFAULT
|
|
return
|
|
|
|
EventScript_LanettesPCBoxFull::
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
|
bufferboxname 2, VAR_RESULT
|
|
msgbox gText_PkmnTransferredLanettesPCBoxFull, MSGBOX_DEFAULT
|
|
return
|
|
|
|
Common_EventScript_NoMoreRoomForPokemon::
|
|
msgbox gText_NoMoreRoomForPokemon, MSGBOX_DEFAULT
|
|
release
|
|
end
|