summaryrefslogtreecommitdiff
path: root/src/macros/scripts.asm
blob: bd1a58fd2e5613bfc7f2e8df6c1a9e9a61d1de8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
start_script EQUS "rst $20"

run_command: MACRO
	db \1_index
ENDM

; TODO: create macros for overworld scripts after their usage and arguments are figured out.
; For example (current ScriptCommand_GiveBoosterPacks_index):

;	const SCRIPT_GIVE_BOOSTER_PACKS ; $0c
;give_booster_packs: MACRO
;	db SCRIPT_GIVE_BOOSTER_PACKS
;	db \1, \2, \3
;ENDM

	const_def
	const ScriptCommand_EndScriptLoop1_index         ; $00
	const ScriptCommand_CloseAdvancedTextBox_index   ; $01
	const ScriptCommand_PrintTextString_index        ; $02
	const Func_ccdc_index                       ; $03
	const ScriptCommand_AskQuestionJump_index        ; $04
	const ScriptCommand_StartBattle_index            ; $05
	const ScriptCommand_PrintVariableText_index      ; $06
	const Func_cda8_index                       ; $07
	const ScriptCommand_PrintTextQuitFully_index      ; $08
	const Func_cdcb_index                       ; $09
	const ScriptCommand_MoveActiveNPCByDirection_index                       ; $0a
	const ScriptCommand_CloseTextBox_index           ; $0b
	const ScriptCommand_GiveBoosterPacks_index       ; $0c
	const Func_cf0c_index                       ; $0d
	const Func_cf12_index                       ; $0e
	const ScriptCommand_GiveCard_index                       ; $0f
	const ScriptCommand_TakeCard_index                       ; $10
	const Func_cf53_index                       ; $11
	const Func_cf7b_index                       ; $12
	const Func_cf2d_index                       ; $13
	const Func_cf96_index                       ; $14
	const Func_cfc6_index                       ; $15
	const Func_cfd4_index                       ; $16
	const Func_d00b_index                       ; $17
	const Func_d025_index                       ; $18
	const Func_d032_index                       ; $19
	const Func_d03f_index                       ; $1a
	const ScriptCommand_Jump_index                   ; $1b
	const ScriptCommand_TryGiveMedalPCPacks_index                       ; $1c
	const ScriptCommand_SetPlayerDirection_index                       ; $1d
	const ScriptCommand_MovePlayer_index             ; $1e
	const ScriptCommand_ShowCardReceivedScreen_index                       ; $1f
	const ScriptCommand_SetDialogName_index          ; $20
	const ScriptCommand_SetNextNPCandScript_index                       ; $21
	const Func_d095_index                       ; $22
	const Func_d0be_index                       ; $23
	const ScriptCommand_DoFrames_index               ; $24
	const Func_d0d9_index                       ; $25
	const ScriptCommand_JumpIfPlayerCoordMatches_index                       ; $26
	const ScriptCommand_MoveActiveNPC_index                       ; $27
	const ScriptCommand_GiveOneOfEachTrainerBooster_index                       ; $28
	const Func_d103_index                       ; $29
	const Func_d125_index                       ; $2a
	const Func_d135_index                       ; $2b
	const Func_d16b_index                       ; $2c
	const Func_cd4f_index                       ; $2d
	const Func_cd94_index                       ; $2e
	const ScriptCommand_MoveWramNPC_index                       ; $2f
	const Func_cdd8_index                       ; $30
	const Func_cdf5_index                       ; $31
	const Func_d195_index                       ; $32
	const Func_d1ad_index                       ; $33
	const Func_d1b3_index                       ; $34
	const ScriptCommand_QuitScriptFully_index     ; $35
	const Func_d244_index                       ; $36
	const Func_d24c_index                       ; $37
	const ScriptCommand_OpenDeckMachine_index        ; $38
	const Func_d271_index                       ; $39
	const ScriptCommand_EnterMap_index                       ; $3a
	const ScriptCommand_MoveArbitraryNPC_index                       ; $3b
	const Func_d209_index                       ; $3c
	const Func_d38f_index                       ; $3d
	const Func_d396_index                       ; $3e
	const Func_cd76_index                       ; $3f
	const Func_d39d_index                       ; $40
	const Func_d3b9_index                       ; $41
	const ScriptCommand_TryGivePCPack_index             ; $42
	const ScriptCommand_nop_index                    ; $43
	const Func_d3d4_index                       ; $44
	const Func_d3e0_index                       ; $45
	const Func_d3fe_index                       ; $46
	const Func_d408_index                       ; $47
	const Func_d40f_index                       ; $48
	const ScriptCommand_PlaySFX_index                       ; $49
	const ScriptCommand_PauseSong_index                       ; $4a
	const ScriptCommand_ResumeSong_index                       ; $4b
	const Func_d41d_index                       ; $4c
	const ScriptCommand_WaitForSongToFinish_index                       ; $4d
	const Func_d435_index                       ; $4e
	const ScriptCommand_AskQuestionJumpDefaultYes_index                       ; $4f
	const Func_d2f6_index                       ; $50
	const Func_d317_index                       ; $51
	const Func_d43d_index                       ; $52
	const ScriptCommand_EndScriptLoop2_index         ; $53
	const ScriptCommand_EndScriptLoop3_index         ; $54
	const ScriptCommand_EndScriptLoop4_index         ; $55
	const ScriptCommand_EndScriptLoop5_index         ; $56
	const ScriptCommand_EndScriptLoop6_index         ; $57
	const ScriptCommand_SetFlagValue_index           ; $58
	const ScriptCommand_JumpIfFlagZero1_index        ; $59
	const ScriptCommand_JumpIfFlagNonzero1_index     ; $5a
	const ScriptCommand_JumpIfFlagEqual_index        ; $5b
	const ScriptCommand_JumpIfFlagNotEqual_index     ; $5c
	const ScriptCommand_JumpIfFlagNotLessThan_index  ; $5d
	const ScriptCommand_JumpIfFlagLessThan_index     ; $5e
	const ScriptCommand_MaxOutFlagValue_index        ; $5f
	const ScriptCommand_ZeroOutFlagValue_index       ; $60
	const ScriptCommand_JumpIfFlagNonzero2_index     ; $61
	const ScriptCommand_JumpIfFlagZero2_index        ; $62
	const ScriptCommand_IncrementFlagValue_index     ; $63
	const ScriptCommand_EndScriptLoop7_index         ; $64
	const ScriptCommand_EndScriptLoop8_index         ; $65
	const ScriptCommand_EndScriptLoop9_index         ; $66
	const ScriptCommand_EndScriptLoop10_index        ; $67