mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-08-13 12:53:19 -05:00
Conflicts: data/maps/BattleFrontier_BattleArenaBattleRoom/scripts.inc data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc data/maps/BattleFrontier_BattlePikeRoomNormal/scripts.inc data/maps/BattleFrontier_BattlePyramidTop/scripts.inc data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc data/maps/BattleFrontier_Lounge1/scripts.inc data/maps/BattleFrontier_Lounge5/scripts.inc data/maps/BattleFrontier_Lounge6/scripts.inc data/maps/BattleFrontier_Lounge7/scripts.inc data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc data/maps/FortreeCity_House1/scripts.inc data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc data/maps/PacifidlogTown_House3/scripts.inc data/maps/RustboroCity_House1/scripts.inc data/maps/SlateportCity_BattleTentBattleRoom/scripts.inc data/maps/SlateportCity_NameRatersHouse/scripts.inc data/maps/SootopolisCity_LotadAndSeedotHouse/scripts.inc data/scripts/day_care.inc data/scripts/pc_transfer.inc data/specials.inc
51 lines
1.5 KiB
PHP
51 lines
1.5 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
|
|
setvar VAR_0x8004, PC_MON_CHOSEN
|
|
special ChangePokemonNickname
|
|
lock
|
|
faceplayer
|
|
return
|
|
|
|
Common_EventScript_TransferredToPC::
|
|
bufferboxname STR_VAR_1, VAR_PC_BOX_TO_SEND_MON
|
|
bufferspeciesname STR_VAR_2, VAR_TEMP_TRANSFERRED_SPECIES
|
|
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
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_SomeonesPCBoxFull
|
|
msgbox gText_PkmnTransferredSomeonesPC, MSGBOX_DEFAULT
|
|
return
|
|
|
|
EventScript_SomeonesPCBoxFull::
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
|
bufferboxname STR_VAR_3, VAR_RESULT
|
|
msgbox gText_PkmnTransferredSomeonesPCBoxFull, MSGBOX_DEFAULT
|
|
return
|
|
|
|
EventScript_TransferredLanettesPC::
|
|
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_LanettesPCBoxFull
|
|
msgbox gText_PkmnTransferredLanettesPC, MSGBOX_DEFAULT
|
|
return
|
|
|
|
EventScript_LanettesPCBoxFull::
|
|
specialvar VAR_RESULT, GetPCBoxToSendMon
|
|
bufferboxname STR_VAR_3, VAR_RESULT
|
|
msgbox gText_PkmnTransferredLanettesPCBoxFull, MSGBOX_DEFAULT
|
|
return
|
|
|
|
Common_EventScript_NoMoreRoomForPokemon::
|
|
msgbox gText_NoMoreRoomForPokemon, MSGBOX_DEFAULT
|
|
release
|
|
end
|