mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-16 06:09:46 -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
130 lines
2.1 KiB
ArmAsm
130 lines
2.1 KiB
ArmAsm
#include "macros/scrcmd.inc"
|
|
#include "res/text/bank/cafe.h"
|
|
|
|
.data
|
|
|
|
ScriptEntry _0012
|
|
ScriptEntry _0018
|
|
ScriptEntry _002B
|
|
ScriptEntry _016A
|
|
ScriptEntryEnd
|
|
|
|
_0012:
|
|
SetFlag FLAG_UNK_0x09E9
|
|
End
|
|
|
|
_0018:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
Message 0
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_002B:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
ShowMoney 20, 2
|
|
Message 1
|
|
GoTo _0044
|
|
End
|
|
|
|
_0044:
|
|
InitLocalTextMenu 30, 11, 0, VAR_RESULT
|
|
SetMenuXOriginToRight
|
|
AddMenuEntryImm 7, 0
|
|
AddMenuEntryImm 8, 1
|
|
AddMenuEntryImm 9, 2
|
|
ShowMenu
|
|
SetVar VAR_0x8008, VAR_RESULT
|
|
GoToIfEq VAR_0x8008, 0, _0092
|
|
GoToIfEq VAR_0x8008, 1, _00BB
|
|
GoToIfEq VAR_0x8008, 2, _015D
|
|
GoTo _015D
|
|
End
|
|
|
|
_0092:
|
|
GoToIfNotEnoughMoney 500, _0150
|
|
SetVar VAR_0x8005, 1
|
|
SetVar VAR_0x8006, 500
|
|
GoTo _00E4
|
|
End
|
|
|
|
_00BB:
|
|
GoToIfNotEnoughMoney 6000, _0150
|
|
SetVar VAR_0x8005, 12
|
|
SetVar VAR_0x8006, 6000
|
|
GoTo _00E4
|
|
End
|
|
|
|
_00E4:
|
|
SetVar VAR_0x8004, ITEM_MOOMOO_MILK
|
|
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0143
|
|
AddToGameRecord RECORD_MONEY_SPENT, VAR_0x8006
|
|
RemoveMoney2 VAR_0x8006
|
|
UpdateMoneyDisplay
|
|
PlayFanfare SEQ_SE_DP_REGI
|
|
WaitFanfare SEQ_SE_DP_REGI
|
|
CallIfEq VAR_0x8006, 500, _0139
|
|
CallIfEq VAR_0x8006, 6000, _013E
|
|
CallCommonScript 0x7E0
|
|
CloseMessage
|
|
HideMoney
|
|
ReleaseAll
|
|
End
|
|
|
|
_0139:
|
|
Message 2
|
|
Return
|
|
|
|
_013E:
|
|
Message 6
|
|
Return
|
|
|
|
_0143:
|
|
Message 3
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
HideMoney
|
|
ReleaseAll
|
|
End
|
|
|
|
_0150:
|
|
Message 4
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
HideMoney
|
|
ReleaseAll
|
|
End
|
|
|
|
_015D:
|
|
Message 5
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
HideMoney
|
|
ReleaseAll
|
|
End
|
|
|
|
_016A:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
GoToIfSet FLAG_UNK_0x0107, _0188
|
|
Message 10
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_0188:
|
|
Message 11
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
.byte 0
|