2019-10-21 12:46:57 +02:00
|
|
|
@ VAR_0x8004 here is used by ChangePokemonNickname
|
|
|
|
Common_EventScript_GetGiftMonPartySlot:: @ 827378B
|
|
|
|
getpartysize
|
|
|
|
subvar VAR_RESULT, 1
|
|
|
|
copyvar VAR_0x8004, VAR_RESULT
|
|
|
|
return
|
|
|
|
|
|
|
|
Common_EventScript_NameReceivedBoxMon:: @ 8273797
|
|
|
|
fadescreen 1
|
|
|
|
special ChangeBoxPokemonNickname
|
|
|
|
waitstate
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
return
|
|
|
|
|
2019-10-23 00:07:08 +02:00
|
|
|
Common_EventScript_TransferredToPC:: @ 82737A0
|
2019-10-21 12:46:57 +02:00
|
|
|
bufferboxname 0, VAR_PC_BOX_TO_SEND_MON
|
|
|
|
bufferspeciesname 1, 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
|
|
|
|
|
2019-10-23 00:07:08 +02:00
|
|
|
EventScript_TransferredSomeonesPC:: @ 82737BB
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
|
|
|
compare VAR_RESULT, 1
|
2019-10-23 00:07:08 +02:00
|
|
|
goto_if_eq EventScript_SomeonesPCBoxFull
|
2019-10-21 12:46:57 +02:00
|
|
|
msgbox gText_PkmnTransferredSomeonesPC, MSGBOX_DEFAULT
|
|
|
|
return
|
|
|
|
|
2019-10-23 00:07:08 +02:00
|
|
|
EventScript_SomeonesPCBoxFull:: @ 82737D4
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
|
|
|
bufferboxname 2, VAR_RESULT
|
2019-10-23 00:07:08 +02:00
|
|
|
msgbox gText_PkmnTransferredSomeonesPCBoxFull, MSGBOX_DEFAULT
|
2019-10-21 12:46:57 +02:00
|
|
|
return
|
|
|
|
|
2019-10-23 00:07:08 +02:00
|
|
|
EventScript_TransferredLanettesPC:: @ 82737E6
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
|
|
|
compare VAR_RESULT, 1
|
2019-10-23 00:07:08 +02:00
|
|
|
goto_if_eq EventScript_LanettesPCBoxFull
|
2019-10-21 12:46:57 +02:00
|
|
|
msgbox gText_PkmnTransferredLanettesPC, MSGBOX_DEFAULT
|
|
|
|
return
|
|
|
|
|
2019-10-23 00:07:08 +02:00
|
|
|
EventScript_LanettesPCBoxFull:: @ 82737FF
|
2019-10-21 12:46:57 +02:00
|
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
|
|
|
bufferboxname 2, VAR_RESULT
|
2019-10-23 00:07:08 +02:00
|
|
|
msgbox gText_PkmnTransferredLanettesPCBoxFull, MSGBOX_DEFAULT
|
2019-10-21 12:46:57 +02:00
|
|
|
return
|
|
|
|
|
|
|
|
Common_EventScript_NoMoreRoomForPokemon:: @ 8273811
|
|
|
|
msgbox gText_NoMoreRoomForPokemon, MSGBOX_DEFAULT
|
|
|
|
release
|
|
|
|
end
|