diff options
| author | GriffinR <griffin.g.richards@gmail.com> | 2020-01-17 14:08:46 -0500 |
|---|---|---|
| committer | GriffinR <griffin.g.richards@gmail.com> | 2020-01-17 14:08:46 -0500 |
| commit | 3101657e97003443bc89daf3e2f9482ad1ff900a (patch) | |
| tree | 34d92c21019273c9870014fd12f0091a153a1289 /data/scripts | |
| parent | ad643af58a946dc466d55a2c2e2c5c467286620a (diff) | |
Sync pc_transfer
Diffstat (limited to 'data/scripts')
| -rw-r--r-- | data/scripts/pc_transfer.inc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/data/scripts/pc_transfer.inc b/data/scripts/pc_transfer.inc new file mode 100644 index 000000000..c04c2d0cd --- /dev/null +++ b/data/scripts/pc_transfer.inc @@ -0,0 +1,46 @@ +EventScript_GetGiftMonPartySlot:: @ 81A8C27 + getpartysize + subvar VAR_RESULT, 1 + copyvar VAR_0x8004, VAR_RESULT + return + +EventScript_NameReceivedBoxMon:: @ 81A8C33 + fadescreen FADE_TO_BLACK + special ChangeBoxPokemonNickname + waitstate + lock + faceplayer + return + +EventScript_TransferredToPC:: @ 81A8C3C + bufferboxname 0, VAR_PC_BOX_TO_SEND_MON + getspeciesname 1, VAR_TEMP_1 + call_if_unset FLAG_SYS_NOT_SOMEONES_PC, EventScript_TransferredSomeonesPC + call_if_set FLAG_SYS_NOT_SOMEONES_PC, EventScript_TransferredBillsPC + return + +EventScript_TransferredSomeonesPC:: @ 81A8C57 + specialvar VAR_RESULT, ShouldShowBoxWasFullMessage + compare VAR_RESULT, TRUE + goto_if_eq EventScript_TransferredSomeonesPCBoxFull + msgbox Text_MonSentToBoxInSomeonesPC + return + +EventScript_TransferredSomeonesPCBoxFull:: @ 81A8C70 + specialvar VAR_RESULT, GetPCBoxToSendMon + bufferboxname 2, VAR_RESULT + msgbox Text_MonSentToBoxSomeonesBoxFull + return + +EventScript_TransferredBillsPC:: @ 81A8C82 + specialvar VAR_RESULT, ShouldShowBoxWasFullMessage + compare VAR_RESULT, TRUE + goto_if_eq EventScript_TransferredBillsPCBoxFull + msgbox Text_MonSentToBoxInBillsPC + return + +EventScript_TransferredBillsPCBoxFull:: @ 81A8C9B + specialvar VAR_RESULT, GetPCBoxToSendMon + bufferboxname 2, VAR_RESULT + msgbox Text_MonSentToBoxBillsBoxFull + return |
