pokeplatinum/res/field/scripts/scripts_eterna_city_pokecenter_1f.s
Viperio 3c0d1255a4
Some checks are pending
build / build (push) Waiting to run
Introduce macros for common message script structures (#975)
2026-03-03 21:20:51 -05:00

95 lines
1.5 KiB
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/eterna_city_pokecenter_1f.h"
ScriptEntry _0016
ScriptEntry _0022
ScriptEntry _0035
ScriptEntry _005E
ScriptEntry _007D
ScriptEntryEnd
_0016:
Common_CallPokecenterNurse 3
End
_0022:
NPCMessage 0
End
_0035:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x0081, _0053
Message 1
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0053:
Message 2
WaitABXPadPress
CloseMessage
ReleaseAll
End
_005E:
PokemonCryAndMessage SPECIES_BUNEARY, 3
End
_007D:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfEq VAR_MAP_LOCAL_2, 1, _00F4
CheckPoketchAppRegistered POKETCH_APPID_FRIENDSHIPCHECKER, VAR_RESULT
GoToIfEq VAR_RESULT, 0, _00D9
GetFirstNonEggInParty VAR_0x8000
BufferPartyMonSpecies 0, VAR_0x8000
Message 6
GetPartyMonFriendship VAR_RESULT, VAR_0x8000
GoToIfGe VAR_RESULT, 120, _00FF
GoToIfGe VAR_RESULT, 70, _010A
GoTo _0115
End
_00D9:
Message 4
SetVar VAR_MAP_LOCAL_2, 1
SetVar VAR_0x8004, POKETCH_APPID_FRIENDSHIPCHECKER
Common_GivePoketchApp
WaitABXPadPress
CloseMessage
ReleaseAll
End
_00F4:
Message 5
WaitABXPadPress
CloseMessage
ReleaseAll
End
_00FF:
Message 7
WaitABXPadPress
CloseMessage
ReleaseAll
End
_010A:
Message 8
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0115:
Message 9
WaitABXPadPress
CloseMessage
ReleaseAll
End