121 0, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 7, 8, 9, 11, 13,
122 16, 18, 22, 26, 30, 36, 43, 51, 60, 72, 85, 101, 120, 143, 170, 202, 240,
127 -4, -3, -3, -3, -2, -2, -1, 0, 0, 0, 1, 2, 2, 3, 3, 3,
128 4, 3, 3, 3, 2, 2, 1, 0, 0, 0, -1, -2, -2, -3, -3, -3,
133 0, 12, 35, 3, 29, 39, 6, 7, 50, 59, 4, 11, 18, 40, 46, 31,
134 16, 42, 47, 51, 20, 23, 43, 32, 8, 52, 17, 41, 54, 15, 63, 24,
135 58, 5, 2, 26, 36, 61, 9, 34, 56, 27, 10, 48, 53, 30, 28, 22,
136 62, 45, 19, 60, 57, 49, 25, 55, 38, 14, 44, 13, 33, 37, 1, 21,
141 0x0000, 0x020c, 0x042f, 0x066b, 0x08c0, 0x0b2f, 0x0db9, 0x105f,
142 0x1322, 0x1603, 0x1903, 0x1c22, 0x1f63, 0x22c5, 0x264b, 0x29f4,
143 0x2dc3, 0x31b9, 0x35d7, 0x3a1d, 0x3e8e, 0x432b, 0x47f6, 0x4cee,
144 0x5217, 0x5772, 0x5d00, 0x62c3, 0x68bc, 0x6eed, 0x7559, 0x7c00,
148 0x0000, 0x0265, 0x04df, 0x076e, 0x0a14, 0x0cd1, 0x0fa5, 0x1291,
149 0x1596, 0x18b4, 0x1bec, 0x1f3f, 0x22ac, 0x2636, 0x29dc, 0x2da0,
150 0x3182, 0x3583, 0x39a3, 0x3de3, 0x4245, 0x46c9, 0x4b70, 0x503a,
151 0x5529, 0x5a3d, 0x5f78, 0x64da, 0x6a65, 0x7019, 0x75f7, 0x7c00,
155 0x0000, 0x0168, 0x02f7, 0x04b1, 0x0699, 0x08b2, 0x0b01, 0x0d8a,
156 0x1052, 0x135d, 0x16b0, 0x1a52, 0x1e48, 0x2298, 0x274a, 0x2c65,
157 0x31f0, 0x37f5, 0x3e7c, 0x458e, 0x4d37, 0x5580, 0x5e77, 0x6826,
158 0x729c, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7c00,
348 0, 100, 200, 301, 401, 501, 601, 700,
349 799, 897, 995, 1092, 1189, 1284, 1379, 1474,
350 1567, 1659, 1751, 1841, 1930, 2018, 2105, 2191,
351 2275, 2358, 2439, 2519, 2598, 2675, 2750, 2824,
352 2896, 2966, 3034, 3101, 3166, 3229, 3289, 3348,
353 3405, 3460, 3513, 3563, 3612, 3658, 3702, 3744,
354 3784, 3821, 3856, 3889, 3919, 3947, 3973, 3996,
355 4017, 4035, 4051, 4065, 4076, 4084, 4091, 4094,
356 4096, 4094, 4091, 4084, 4076, 4065, 4051, 4035,
357 4017, 3996, 3973, 3947, 3919, 3889, 3856, 3821,
358 3784, 3744, 3702, 3658, 3612, 3563, 3513, 3460,
359 3405, 3348, 3289, 3229, 3166, 3101, 3034, 2966,
360 2896, 2824, 2750, 2675, 2598, 2519, 2439, 2358,
361 2275, 2191, 2105, 2018, 1930, 1841, 1751, 1659,
362 1567, 1474, 1379, 1284, 1189, 1092, 995, 897,
363 799, 700, 601, 501, 401, 301, 200, 100,
364 0, -100, -200, -301, -401, -501, -601, -700,
365 -799, -897, -995, -1092, -1189, -1284, -1379, -1474,
366 -1567, -1659, -1751, -1841, -1930, -2018, -2105, -2191,
367 -2275, -2358, -2439, -2519, -2598, -2675, -2750, -2824,
368 -2896, -2966, -3034, -3101, -3166, -3229, -3289, -3348,
369 -3405, -3460, -3513, -3563, -3612, -3658, -3702, -3744,
370 -3784, -3821, -3856, -3889, -3919, -3947, -3973, -3996,
371 -4017, -4035, -4051, -4065, -4076, -4084, -4091, -4094,
372 -4096, -4094, -4091, -4084, -4076, -4065, -4051, -4035,
373 -4017, -3996, -3973, -3947, -3919, -3889, -3856, -3821,
374 -3784, -3744, -3702, -3658, -3612, -3563, -3513, -3460,
375 -3405, -3348, -3289, -3229, -3166, -3101, -3034, -2966,
376 -2896, -2824, -2750, -2675, -2598, -2519, -2439, -2358,
377 -2275, -2191, -2105, -2018, -1930, -1841, -1751, -1659,
378 -1567, -1474, -1379, -1284, -1189, -1092, -995, -897,
379 -799, -700, -601, -501, -401, -301, -200, -100,
467 0xffff, 0x0000, 0x8000, 0xffff,
468 0xc000, 0xffff, 0xffff, 0xc000,
469 0x4000, 0xffff, 0xffff, 0x4000,
470 0xffff, 0x0000, 0x8000, 0xffff,
510 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
511 16, 15, 15, 14, 12, 10, 9, 9, 8, 9, 9, 10, 12, 14, 14, 15,
516 0xffff, 0x0000, 0x8000, 0xffff,
517 0xc000, 0xe000, 0xa000, 0xc000,
518 0x4000, 0x2000, 0x6000, 0x4000,
519 0xffff, 0x0000, 0x8000, 0xffff,
The battle animation state, render objects and effect entries, and the palette buffer work.
s32 Field_IsRevealActive(struct ScriptInterpreter *interpreter)
Returns 1 while Reveal is active, else 0.
const s32 gObjectMotion_VariantScripts[97]
Squashes as many times as the variant (1 to 3): variant v starts at word (3 - v) * 32 and runs to the...
const s32 gBattleFx_MarkerParticleScript[]
const u32 gBattleFx_PulseScales[3]
Two scales that alternate ((gFrameTick >> 2) & 1); nothing reads the third word.
const u8 gBattleFx_QuadrantModes[4]
const u8 gField_TileMessageOffsets[6]
The message of each searchable tile code from 242 to 247, as an offset from MsgTileChecked and MsgTil...
const s32 gBattleFx_FragmentScript[]
const u16 gWorldMap_CursorDirectionAngles[16]
An angle for each +Control Pad direction (eight of them); 0xffff for none.
const s32 gBattleFx_LongEffectScript[]
const u8 gUnused_BattleFxBytes[4]
The same four bytes as gBattleFx_QuadrantModes; nothing reads them.
const struct BattleEffectEntry gBattleFx_DefinitionTable[131]
Speaker definitions: {sprite, portrait (0xff for none), idle line flags}.
const s32 gBattleFx_BurstParticleObjectScript[]
Word +4 is gBattleFx_HeavyImpactScript.
const struct SparkleFrame gFieldFx_SparkleFrames[32]
{dy, tile}
const s32 gBattleFx_ShortEffectScript[]
The three scripts of gEffectScripts.
const s16 gDisplayScroll_WaveSine[256]
Sine times 4096, 256 steps to a turn.
const s32 gBattleFx_HeavyImpactScript[]
const u8 gWorldMap_MarkerBlendCycle[32]
The brightness of the world map markers ((gFrameCount >> 1) & 31).
const s8 gBattleFx_RandomChildValues[8]
const s32 gBattleFx_SourceHoldScript[]
const u16 gBattlePalette_ChannelCurveContrast[32]
const u8 gAnimation_ChildPaletteCycle[8]
The palette cycle of Animation_ChildPaletteCycle ((gFrameCount >> 1) & 7).
const s8 gDisplayTransition_EdgeOffsets[32]
The wobble of the circle edge of window transition mode 8.
const s16 gFieldFx_GroundParticleFrames[80]
{dx, dy, tile, shape, size} for each of 16 frames.
const s32 gBattleFx_CommonParticleScript[]
[0] only frees the actor, +1 waits for it to arrive and frees it; +3 is gBattleFx_SourceHoldScript,...
const u8 gDisplayTransition_DitherTable[64]
0 to 63 shuffled: the order in which the dissolve sets the pixels.
const u16 gBattlePalette_ChannelCurveLight[32]
const u8 gDisplayTransition_NoiseWidths[34]
The width of the bars of window transition mode 0, by progress.
const s32 gBattleFx_RisingPulseScript[]
Pulses twice, then rests, over and over.
const s32 gBattleFx_ParticleScript[]
Rises for 60 frames, then disappears.
const s16 gBattleFx_TargetRangeByMode[25]
{field Psynergy kind, range in pixels}, ended by -1; a kind not listed reaches 16 pixels.
const s32 gBattleFx_MediumEffectScript[]
const u16 gBattlePalette_ChannelCurve[32]
Colour channel curves (0 to 31, to channels up to 0x7c00).
const u8 gObjectGroup_BlinkChildValues[4]
A child value by frame ((gFrameCount >> 1) & 3).
const s32 gBattleFx_ParticleEmitterScript[]
Grows from half size to full size, a step every 2 frames.
const u16 gBattleFx_CyclePatternWords[16]
An angle for each value of the right, left, up and down bits of the +Control Pad; 0xffff for none.
s32 SpawnHeavyImpactEffect(struct ScriptInterpreter *interpreter)
A heavy impact: places object 0x11b 32 pixels below the source and scatters 12 shards from it.
Field object scripts: one s32 command word, then its operands, as gScriptObject_CommandTable runs the...
#define SC_SET(w, v)
Write a work value.
#define SC_LOOP(n, to)
Repeat up to n times.
#define SC_FACE_LINK
Face the linked object.
#define SC_SYNC
Wait for arrival.
#define SC_WAIT(n)
Wait n frames.
#define SC_TOP
Script start.
#define SC_END
Return to the main script.
A speaker definition, a row of gBattleFx_DefinitionTable: a sprite, its portrait (0xff for none) and ...
One frame of a sparkle: its height offset and tile (fxdata.c).
The integer types, TRUE, UNUSED and the fixed-address macros.