2019-10-21 12:46:57 +02:00
|
|
|
@ VAR_0x8004 here is used by ChangePokemonNickname
|
2021-07-20 21:18:31 +02:00
|
|
|
Common_EventScript_GetGiftMonPartySlot::
|
2019-10-21 12:46:57 +02:00
|
|
|
getpartysize
|
|
|
|
subvar VAR_RESULT, 1
|
|
|
|
copyvar VAR_0x8004, VAR_RESULT
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Common_EventScript_NameReceivedBoxMon::
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2019-10-21 12:46:57 +02:00
|
|
|
special ChangeBoxPokemonNickname
|
|
|
|
waitstate
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Common_EventScript_TransferredToPC::
|
2021-11-18 04:00:44 +01:00
|
|
|
bufferboxname STR_VAR_1, VAR_PC_BOX_TO_SEND_MON
|
|
|
|
bufferspeciesname STR_VAR_2, VAR_TEMP_1
|
2019-10-23 00:07:08 +02:00
|
|
|
call_if_unset FLAG_SYS_PC_LANETTE, EventScript_TransferredSomeonesPC
|
|
|
|
call_if_set FLAG_SYS_PC_LANETTE, EventScript_TransferredLanettesPC
|
2019-10-21 12:46:57 +02:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_TransferredSomeonesPC::
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_SomeonesPCBoxFull
|
2019-10-21 12:46:57 +02:00
|
|
|
msgbox gText_PkmnTransferredSomeonesPC, MSGBOX_DEFAULT
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_SomeonesPCBoxFull::
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
2021-11-18 04:00:44 +01:00
|
|
|
bufferboxname STR_VAR_3, VAR_RESULT
|
2019-10-23 00:07:08 +02:00
|
|
|
msgbox gText_PkmnTransferredSomeonesPCBoxFull, MSGBOX_DEFAULT
|
2019-10-21 12:46:57 +02:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_TransferredLanettesPC::
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_LanettesPCBoxFull
|
2019-10-21 12:46:57 +02:00
|
|
|
msgbox gText_PkmnTransferredLanettesPC, MSGBOX_DEFAULT
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_LanettesPCBoxFull::
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
2021-11-18 04:00:44 +01:00
|
|
|
bufferboxname STR_VAR_3, VAR_RESULT
|
2019-10-23 00:07:08 +02:00
|
|
|
msgbox gText_PkmnTransferredLanettesPCBoxFull, MSGBOX_DEFAULT
|
2019-10-21 12:46:57 +02:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Common_EventScript_NoMoreRoomForPokemon::
|
2019-10-21 12:46:57 +02:00
|
|
|
msgbox gText_NoMoreRoomForPokemon, MSGBOX_DEFAULT
|
|
|
|
release
|
|
|
|
end
|