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

49 lines
859 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/route_229.h"
.data
ScriptEntry _000A
ScriptEntry _008E
ScriptEntryEnd
_000A:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x00DA, _0079
Message 0
SetVar VAR_0x8004, ITEM_NUGGET
SetVar VAR_0x8005, 1
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0084
CallCommonScript 0x7FC
SetFlag FLAG_UNK_0x00DA
SetVar VAR_0x8004, ITEM_NUGGET
SetVar VAR_0x8005, 1
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0079
Message 1
CallCommonScript 0x7FC
GoTo _0079
End
_0079:
Message 2
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0084:
CallCommonScript 0x7E1
CloseMessage
ReleaseAll
End
_008E:
ShowArrowSign 3
End
.byte 0
.byte 0
.byte 0