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

53 lines
838 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/route_204_north.h"
.data
ScriptEntry _000E
ScriptEntry _0021
ScriptEntry _007B
ScriptEntryEnd
_000E:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
Message 0
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0021:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x00C5, _0066
Message 1
SetVar VAR_0x8004, ITEM_TM78
SetVar VAR_0x8005, 1
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0071
CallCommonScript 0x7FC
SetFlag FLAG_UNK_0x00C5
GoTo _0066
_0066:
Message 2
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0071:
CallCommonScript 0x7E1
CloseMessage
ReleaseAll
End
_007B:
ShowArrowSign 3
End
.byte 0
.byte 0