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

40 lines
566 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/unk_0539.h"
.data
ScriptEntry _0006
ScriptEntryEnd
_0006:
SetVar VAR_RESULT, 0
ScrCmd_20A VAR_RESULT
SetVar VAR_0x8008, VAR_RESULT
GoToIfEq VAR_0x8008, 0, _0043
GoToIfEq VAR_0x8008, 1, _0047
GoToIfEq VAR_0x8008, 2, _0050
GoTo _0059
_0043:
ReleaseAll
End
_0047:
Message 0
GoTo _0068
_0050:
Message 1
GoTo _0068
_0059:
WaitTime 30, VAR_RESULT
Message 2
GoTo _0068
_0068:
WaitABXPadPress
CloseMessage
ReleaseAll
End