Files
pokeplatinum/res/field/scripts/scripts_cycle_shop.s
Eduardo Quezada 6ef937a8eb Define and use Var constants (#474)
* Missing uses of defined vars

* Vars 0x4000 to 0x402F with Var macros

* Vars 0x4000 to 0x402F with other macros

^ Conflicts:
^	res/field/scripts/scripts_amity_square.s
^	res/field/scripts/scripts_veilstone_city_southwest_house.s

* Other vars

* Special Flags

* Unk vars

* NUM_VARS

* `SPECIAL_VARS_START` -> `SCRIPT_LOCAL_VARS_START`

* `VAR_0x800C` -> `VAR_RESULT`

* `VAR_0x800D` -> `VAR_LAST_TALKED`

* Format

* VAR_MAP_LOCAL

* VAR_OBJ_GFX_ID

* STORY_VARS
2025-04-20 17:38:03 -07:00

85 lines
1.3 KiB
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/cycle_shop.h"
.data
ScriptEntry _0016
ScriptEntry _005D
ScriptEntry _007C
ScriptEntry _00A5
ScriptEntry _00B6
ScriptEntryEnd
_0016:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x0082, _0052
Message 0
SetVar VAR_0x8004, 0x1C2
SetVar VAR_0x8005, 1
CallCommonScript 0x7FC
SetFlag FLAG_UNK_0x0082
SetVar VAR_UNK_0x4114, 1
ScrCmd_14C 9
GoTo _0052
End
_0052:
Message 1
WaitABXPadPress
CloseMessage
ReleaseAll
End
_005D:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
WaitFanfare SEQ_SE_CONFIRM
PlayCry SPECIES_CLEFAIRY
Message 2
WaitCry
WaitABXPadPress
CloseMessage
ReleaseAll
End
_007C:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x0081, _009A
Message 3
WaitABXPadPress
CloseMessage
ReleaseAll
End
_009A:
Message 4
WaitABXPadPress
CloseMessage
ReleaseAll
End
_00A5:
PlayFanfare SEQ_SE_CONFIRM
LockAll
Message 5
WaitABXPadPress
CloseMessage
ReleaseAll
End
_00B6:
PlayFanfare SEQ_SE_CONFIRM
LockAll
Message 6
WaitABXPadPress
CloseMessage
ReleaseAll
End
.byte 0