Skip to Content
The Alchemy Project

struct EFFECT_OPTIONS

The options of a spawned field effect, each used when its EFFECT_USE_ flag (or EFFECT_SCALE_TO_TARGET) is set.

The options of a spawned field effect, each used when its EFFECT_USE_ flag (or EFFECT_SCALE_TO_TARGET) is set.

Declared in field_effect.h.

Fields

NameDescription
Sint32prioritythe sprite's priority
Sint32palettepassed to fdActorSetSpriteColor
FIXEDstartScaleX16.16 fixed point, toFIXED(1) full size
FIXEDstartScaleY16.16 fixed point, toFIXED(1) full size
FIXEDtargetScaleX16.16 fixed point, toFIXED(1) full size
FIXEDtargetScaleY16.16 fixed point, toFIXED(1) full size
Sint16typethe object type to create
const Sint32 *scriptthe object script, run in mode 1
Uint16rotation1/65536 turns
Uint16spin1/65536 turns per tick
void *updatereplaces the update hook

Description

The options of a spawned field effect, each used when its EFFECT_USE_ flag (or EFFECT_SCALE_TO_TARGET) is set.

struct EFFECT_OPTIONS

Referenced by EFFECT_SPAWN, fdEffectSpawnRadialParticleRing(), fdEffectSpawnResident(), scActorEmitMist(), scActorEmitSmoke(), scActorEmitSmokeUnused(), scActorEmitSparkles(), scAirsRockBlowGust(), scAirsRockCrumbleRock(), scAirsRockInsideBlowGust(), scAirsRockInsideBurstDust(), scAirsRockInsideLandInHall(), scAirsRockInsideScatterSparks(), scAirsRockInsideStatueBreathesPooledWhirlwind(), scAirsRockInsideStatueBreathesWhirlwind(), scAirsRockStatueBreathesWhirlwind(), scAirsRockWhirlwindClearsWall(), scAnemosInnerSanctumLightPlate(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPourSand(), scCavernsFinishMovingAngaraBlock(), scContigoForceFreesDjinni(), scCrackedTileDropIn(), scDehkanPlateauLandFromFall(), scFieldEffectSpawn(), scFieldEffectSpawnLocal(), scGabombaStatueLandFromFall(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideRingOfDust(), scGarohScatterDustRing(), scGondowanCliffsLeapStumpIntoWater(), scJupiterLighthouseAlexAppears(), scKandoreanTempleLandFromAbove(), scMagmaRockBurnStatue(), scMagmaRockDropLeaderFromSummit(), scMagmaRockFireFromStatue(), scMagmaRockInsideDrainLava(), scMagmaRockInsideFireFromStatue(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideReleaseRocks(), scMagmaRockInsideSmokeEmber(), scMagmaRockInsideTrailEmbers(), scMagmaRockInsideTrailSparks(), scMagmaRockKnockLeaderOffWall(), scMagmaRockLeaveEmbers(), scMagmaRockRaiseFlameTop(), scMagmaRockScatterEmbers(), scMagmaRockThrowEmbers(), scMarsLighthouseEntrancePoundIceCone(), scMtAlephSummitScatterDustRing() and 22 more.

Definition at line 153 of file field_effect.h.

Fields in detail

priority

Sint32 priority

the sprite's priority

palette

Sint32 palette

passed to fdActorSetSpriteColor

startScaleX

FIXED startScaleX

16.16 fixed point, toFIXED(1) full size

startScaleY

FIXED startScaleY

16.16 fixed point, toFIXED(1) full size

targetScaleX

FIXED targetScaleX

16.16 fixed point, toFIXED(1) full size

targetScaleY

FIXED targetScaleY

16.16 fixed point, toFIXED(1) full size

type

Sint16 type

the object type to create

script

const Sint32 *script

the object script, run in mode 1

rotation

Uint16 rotation

1/65536 turns

spin

Uint16 spin

1/65536 turns per tick

update

void *update

replaces the update hook