Files
pokeplatinum/res/field/scripts/scripts_fight_area_mart.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

65 lines
1016 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/fight_area_mart.h"
.data
ScriptEntry _0012
ScriptEntry _0028
ScriptEntry _002A
ScriptEntry _0086
ScriptEntryEnd
_0012:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
CallCommonScript 0x7E3
ScrCmd_035
PokeMartCommon
ReleaseAll
End
_0028:
End
_002A:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x00D5, _0071
Message 0
SetVar VAR_0x8004, ITEM_SCOPE_LENS
SetVar VAR_0x8005, 1
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _007C
CallCommonScript 0x7FC
SetFlag FLAG_UNK_0x00D5
GoTo _0071
End
_0071:
Message 1
WaitABXPadPress
CloseMessage
ReleaseAll
End
_007C:
CallCommonScript 0x7E1
CloseMessage
ReleaseAll
End
_0086:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
Message 2
WaitABXPadPress
CloseMessage
ReleaseAll
End
.byte 0
.byte 0
.byte 0