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

47 lines
842 B
ArmAsm

#include "macros/scrcmd.inc"
.data
ScriptEntry _00A2
ScriptEntry _00B9
ScriptEntry _0075
ScriptEntry _0012
ScriptEntryEnd
_0012:
GetUnownFormsSeenCount VAR_MAP_LOCAL_0
GoToIfGe VAR_MAP_LOCAL_0, 26, _003F
GoToIfGe VAR_MAP_LOCAL_0, 10, _0051
GoToIfLt VAR_MAP_LOCAL_0, 10, _0063
End
_003F:
SetWarpEventPos 2, 0x2C6, 0x29E
SetWarpEventPos 3, 0x2C6, 0x29E
End
_0051:
SetWarpEventPos 2, 0x2C6, 0x29E
SetWarpEventPos 4, 0x2C6, 0x29E
End
_0063:
SetWarpEventPos 3, 0x2C6, 0x29E
SetWarpEventPos 4, 0x2C6, 0x29E
End
_0075:
GetUnownFormsSeenCount VAR_MAP_LOCAL_0
GoToIfGe VAR_MAP_LOCAL_0, 26, _003F
GoToIfGe VAR_MAP_LOCAL_0, 10, _0051
GoToIfLt VAR_MAP_LOCAL_0, 10, _0063
End
_00A2:
ShowArrowSign 0
End
_00B9:
ShowArrowSign 1
End