forked from ZaneAvernathy/ModularMinimugBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMB Installer GFE1R.event
358 lines (265 loc) · 7.31 KB
/
MMB Installer GFE1R.event
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
#ifndef MODULAR_MMB
#define MODULAR_MMB
MESSAGE MMB code begins at CURRENTOFFSET
/*
Comment out (by typing // before a line's #define) or delete module options you don't want.
After each set of module options are definitions that you can use to adjust the module.
*/
// Some helper definitions:
#define TextWhite 0
#define TextGray 1
#define TextBlue 2
#define TextYellow 3
#define TextGreen 4
#define TextBlack 5
// Tilemap modules
#define MMBStandardTilemap
// Tilemap options
// In 8x8 pixel tiles
#define MMBHeight 8
#define MMBWidth 16
#define MMBTilemapPaletteIndex 3
ALIGN 4
MMBTilemap:
BYTE (MMBWidth - 1) (MMBHeight - 1) // Don't touch these
// Edit this as you see fit
// The tilemap is 'upside-down' with the bottom row being first
// and the top row being last
SHORT $1A $1B $1C $1C $1C $1C $1C $1C $1C $1C $1C $1C $1C $1D $1E $1F // Rows 8 (Buttom)
SHORT $0B $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $50 $52 $54 $56 $57 // Rows 7
SHORT $0B $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $50 $52 $54 $56 $57 // Rows 6
SHORT $0B $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $50 $52 $54 $56 $57 // Rows 5
SHORT $0B $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $50 $52 $54 $55 // Rows 4
SHORT $0B $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $50 $52 $53 // Rows 3
SHORT $17 $18 $19 $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $0E $50 $51 // Rows 2
SHORT $10 $11 $12 $13 $03 $03 $03 $03 $03 $03 $03 $03 $03 $03 $04 $05 // Rows 1 (Top)
ALIGN 4
// Unit name modules
#define MMBName
//#define MMBNameCentered
//#define MMBNameAffinityShifted
// Unit name options
// Coordinates and widths are in 8x8 pixel tiles
#define MMBNameWidth 7
#define MMBNameColor TextBlack
#define MMBNameX 5
#define MMBNameY 3
// Minimug modules
//#define MMBMinimug
#define MMBMinimugEnemyFlip
// Minimug options
// Coordinates are in 8x8 pixel tiles
#define MMBMinimugX 1
#define MMBMinimugY 1
#define MMBMinimugTileIndexStart 0xF0
#define MMBMinimugPaletteIndex 4
// Inventory modules
#define MMBInventory
//#define MMBEquippedWeapon
//#define MMBEquippedWeaponName // uses alt text
//#define MMBEquippedWeaponNameCentered // uses alt text
//#define MMBInventoryOrEquippedWeaponName // uses alt text
//#define MMBInventoryOrEquippedWeaponNameCentered // uses alt text
//#define MMBEquippedWeaponNameOnly // uses alt text
//#define MMBEquippedWeaponNameOnlyCentered // uses alt text
// Inventory options
// Coordinates are in pixels
#define MMBInventoryX 40
#define MMBInventoryY 8
#define MMBInventoryTileIndex 0x300
// Used for item text
// Coordinates are in 8x8 pixel tiles
#define MMBInventoryTextX 7
#define MMBInventoryTextY 1
#define MMBAltTextWidth 7
#define MMBTextAltColor TextBlack
// Combination modules
#define MMBHPStatus
//#define MMBDEFRES
//#define MMBAVODOD
//#define MMBHP
// Combination options
// Coordinates are in 8x8 pixel tiles
// HP/Status options
#define MMBHPStatusX 1
#define MMBHPStatusY 5
// HP options
#define MMBHPX 1
#define MMBHPY 5
// DEF/RES options
#define MMBDEFRESX 9
#define MMBDEFRESY 5
#define MMBDEFRESVRAMTile 0x10A
#define MMBDEFRESPaletteIndex 2
// AVO/DOD options
#define MMBAVODODX 9
#define MMBAVODODY 6
#define MMBAVODODVRAMTile 0x104
#define MMBAVODODPaletteIndex 2
// Bar modules
//#define MMBHPBar
//#define MMBHPBarStatus
// Bar options
// Coordinates and widths are in 8x8 pixel tiles
// HP bar options
#define MMBHPBarX 5
#define MMBHPBarY 4
#define MMBHPBarTileWidth 7
#define MMBHPBarBase 0x1140
// Affinity modules
//#define MMBAffinity
// Affinity options
// Coordinates are in pixels
#define MMBAffinityX 40
#define MMBAffinityY 24
#define MMBAffinityTile 0x30A
// Skills modules (requires skill system)
//#define MMBSkillsAlternate
// Skills options
// Coordinates are in pixels
#define MMBSkillsX 120
#define MMBSkillsY 8
#define MMBSkillTile 0x30C
// Number modules
//#define MMBASNumber
#define MMBATKNumber
//#define MMBAVONumber
//#define MMBCHRNumber // Useless without skill system
#define MMBCRTNumber
//#define MMBDEFNumber
//#define MMBDODNumber
#define MMBEXPNumber
#define MMBHITNumber
#define MMBLevelNumber
//#define MMBRESNumber
//#define MMBRTGNumber
// Number options
// Coordinates are in pixels
// Coordinates are for the rightmost digit
// AS Number
#define MMBASX 128
#define MMBASY 48
// ATK Number
#define MMBATKX 112
#define MMBATKY 32
// AVO Number
#define MMBAVOX 96
#define MMBAVOY 8
// CHR Number
#define MMBCHRX 96
#define MMBCHRY 16
// CRT Number
#define MMBCRTX 112
#define MMBCRTY 48
// DEF Number
#define MMBDEFX 128
#define MMBDEFY 16
// DOD Number
#define MMBDODX 128
#define MMBDODY 24
// EXP number
#define MMBEXPX 57
#define MMBEXPY 48
// HIT Number
#define MMBHITX 112
#define MMBHITY 40
// Level number
#define MMBLevelX 32
#define MMBLevelY 48
// RES number
#define MMBRESX 96
#define MMBRESY 40
// RTG number
#define MMBRTGX 103
#define MMBRTGY 48
// Label modules
//#define MMBASLabel
#define MMBATKLabel
//#define MMBAVOLabel
//#define MMBCHRLabel
#define MMBCRTLabel
//#define MMBDEFLabel
//#define MMBDODLabel
#define MMBEXPLabel
#define MMBHITLabel
#define MMBLevelLabel
//#define MMBRESLabel
//#define MMBRTGLabel
// Label options
// Coordinates are in 8x8 pixel tiles
// AS label
#define MMBASLabelX 13
#define MMBASLabelY 6
#define MMBASLabelVRAMTile 0x100
#define MMBASLabelPaletteIndex 2
#define MMBASLabelTileCount 2
// ATK label
#define MMBATKLabelX 11
#define MMBATKLabelY 4
#define MMBATKLabelVRAMTile 0x102
#define MMBATKLabelPaletteIndex 2
#define MMBATKLabelTileCount 2
// AVO label
#define MMBAVOLabelX 9
#define MMBAVOLabelY 1
#define MMBAVOLabelVRAMTile 0x104
#define MMBAVOLabelPaletteIndex 2
#define MMBAVOLabelTileCount 2
// CHR label
#define MMBCHRLabelX 9
#define MMBCHRLabelY 2
#define MMBCHRLabelVRAMTile 0x106
#define MMBCHRLabelPaletteIndex 2
#define MMBCHRLabelTileCount 2
// CRT label
#define MMBCRTLabelX 11
#define MMBCRTLabelY 6
#define MMBCRTLabelVRAMTile 0x108
#define MMBCRTLabelPaletteIndex 2
#define MMBCRTLabelTileCount 2
// DEF label
#define MMBDEFLabelX 13
#define MMBDEFLabelY 2
#define MMBDEFLabelVRAMTile 0x10A
#define MMBDEFLabelPaletteIndex 2
#define MMBDEFLabelTileCount 2
// DOD label
#define MMBDODLabelX 13
#define MMBDODLabelY 3
#define MMBDODLabelVRAMTile 0x10C
#define MMBDODLabelPaletteIndex 2
#define MMBDODLabelTileCount 2
// EXP label
#define MMBEXPLabelX 5
#define MMBEXPLabelY 6
#define MMBEXPLabelVRAMTile 0x160
#define MMBEXPLabelPaletteIndex 2
#define MMBEXPLabelTileCount 2
// HIT label
#define MMBHITLabelX 11
#define MMBHITLabelY 5
#define MMBHITLabelVRAMTile 0x10E
#define MMBHITLabelPaletteIndex 2
#define MMBHITLabelTileCount 2
// Level label
#define MMBLevelLabelX 1
#define MMBLevelLabelY 6
#define MMBLevelLabelVRAMTile 0x162
#define MMBLevelLabelPaletteIndex 2
#define MMBLevelLabelTileCount 2
// RES label
#define MMBRESLabelX 9
#define MMBRESLabelY 5
#define MMBRESLabelVRAMTile 0x164
#define MMBRESLabelPaletteIndex 2
#define MMBRESLabelTileCount 2
// RTG label
#define MMBRTGLabelX 9
#define MMBRTGLabelY 6
#define MMBRTGLabelVRAMTile 0x166
#define MMBRTGLabelPaletteIndex 2
#define MMBRTGLabelTileCount 2
ALIGN 4
#include "MMB Core.event"
MESSAGE MMB code ends at CURRENTOFFSET
#endif // MODULAR_MMB