mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-15 13:54:02 -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
69 lines
1.1 KiB
ArmAsm
69 lines
1.1 KiB
ArmAsm
#include "macros/scrcmd.inc"
|
|
#include "res/text/bank/great_marsh_6.h"
|
|
|
|
.data
|
|
|
|
ScriptEntry _000A
|
|
ScriptEntry _00D1
|
|
ScriptEntryEnd
|
|
|
|
_000A:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
GoToIfSet FLAG_UNK_0x0AB4, _00BC
|
|
Message 0
|
|
GetRandom VAR_0x8004, 4
|
|
SetVar VAR_0x8008, VAR_0x8004
|
|
GoToIfEq VAR_0x8008, 0, _005B
|
|
GoToIfEq VAR_0x8008, 1, _0069
|
|
GoToIfEq VAR_0x8008, 2, _0077
|
|
GoTo _0085
|
|
End
|
|
|
|
_005B:
|
|
SetVar VAR_0x8004, ITEM_RED_SHARD
|
|
GoTo _0093
|
|
End
|
|
|
|
_0069:
|
|
SetVar VAR_0x8004, ITEM_BLUE_SHARD
|
|
GoTo _0093
|
|
End
|
|
|
|
_0077:
|
|
SetVar VAR_0x8004, ITEM_YELLOW_SHARD
|
|
GoTo _0093
|
|
End
|
|
|
|
_0085:
|
|
SetVar VAR_0x8004, ITEM_GREEN_SHARD
|
|
GoTo _0093
|
|
End
|
|
|
|
_0093:
|
|
SetVar VAR_0x8005, 1
|
|
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _00C7
|
|
SetFlag FLAG_UNK_0x0AB4
|
|
CallCommonScript 0x7E0
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00BC:
|
|
Message 1
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00C7:
|
|
CallCommonScript 0x7E1
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00D1:
|
|
ShowLandmarkSign 2
|
|
End
|