mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-16 14:20:22 -05:00
* 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
100 lines
1.6 KiB
ArmAsm
100 lines
1.6 KiB
ArmAsm
#include "macros/scrcmd.inc"
|
|
#include "res/text/bank/route_222.h"
|
|
|
|
.data
|
|
|
|
ScriptEntry _00D7
|
|
ScriptEntry _007D
|
|
ScriptEntry _00EA
|
|
ScriptEntry _0101
|
|
ScriptEntry _0118
|
|
ScriptEntry _012F
|
|
ScriptEntry _0146
|
|
ScriptEntry _0022
|
|
ScriptEntryEnd
|
|
|
|
_0022:
|
|
GetTimeOfDay VAR_MAP_LOCAL_0
|
|
GoToIfEq VAR_MAP_LOCAL_0, 0, _0069
|
|
GoToIfEq VAR_MAP_LOCAL_0, 1, _0069
|
|
GoToIfEq VAR_MAP_LOCAL_0, 2, _0069
|
|
GoToIfEq VAR_MAP_LOCAL_0, 3, _0073
|
|
GoToIfEq VAR_MAP_LOCAL_0, 4, _0073
|
|
End
|
|
|
|
_0069:
|
|
ClearFlag FLAG_UNK_0x026A
|
|
SetFlag FLAG_UNK_0x026B
|
|
End
|
|
|
|
_0073:
|
|
ClearFlag FLAG_UNK_0x026B
|
|
SetFlag FLAG_UNK_0x026A
|
|
End
|
|
|
|
_007D:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
GoToIfSet FLAG_UNK_0x00CE, _00C2
|
|
Message 0
|
|
SetVar VAR_0x8004, ITEM_TM56
|
|
SetVar VAR_0x8005, 1
|
|
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _00CD
|
|
CallCommonScript 0x7FC
|
|
SetFlag FLAG_UNK_0x00CE
|
|
GoTo _00C2
|
|
|
|
_00C2:
|
|
Message 1
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00CD:
|
|
CallCommonScript 0x7E1
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00D7:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
Message 2
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00EA:
|
|
ShowArrowSign 4
|
|
End
|
|
|
|
_0101:
|
|
ShowArrowSign 5
|
|
End
|
|
|
|
_0118:
|
|
ShowLandmarkSign 6
|
|
End
|
|
|
|
_012F:
|
|
ShowLandmarkSign 7
|
|
End
|
|
|
|
_0146:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
Message 3
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
.byte 0
|
|
.byte 0
|
|
.byte 0
|