Alchemy
Loading...
Searching...
No Matches

EffectOptions Struct Reference

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

#include <system/field_effect.h>

Data Fields

s32 priority
 the sprite's priority
s32 palette
 passed to ObjectGroup_SetChildValue
s32 startScaleX
 16.16 fixed point, 0x10000 full size
s32 startScaleY
 16.16 fixed point, 0x10000 full size
s32 targetScaleX
 16.16 fixed point, 0x10000 full size
s32 targetScaleY
 16.16 fixed point, 0x10000 full size
s16 type
 the object type to create; 222 without the flag
const s32 * script
 the object script, run in mode 1
u16 rotation
 1/65536 turns
u16 spin
 1/65536 turns per frame
void(*) update (union FieldObject *object)
 replaces the update hook

Detailed Description

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

Definition at line 91 of file field_effect.h.

Field Documentation

◆ priority

◆ palette

s32 EffectOptions::palette

passed to ObjectGroup_SetChildValue

Definition at line 93 of file field_effect.h.

Referenced by BabiLighthouse_LandWithParticles(), BattleFx_SpawnRadialParticleRing(), CrossboneIslePillarRooms_SpawnFrostParticle(), CrossboneIslePillarRooms_SpawnThawParticle(), CrossboneIslePillarRooms_SpawnUnusedLeaderParticle(), Event_MonkLetsPartyIntoGrotto(), Event_MoveEastObjectIntoHole(), Event_MoveWestObjectIntoHole(), Event_SinkPillarA(), Event_SinkPillarB(), FuchinTemple_AnimateRevealLesson(), FuchinTemple_SpawnGrottoEntryParticle(), ImilFuchinFalls_SpawnDust(), MercuryLighthouse_CloseStoneDoor(), MercuryLighthouse_OpenFountainWithSpray(), MercuryLighthouse_OpenStoneDoor(), MercuryLighthouse_OpenThreeStepStair(), MercuryLighthouse_PlyOpensWaterfallPassage(), MercuryLighthouse_RaiseActorWithSparks(), MercuryLighthouse_StopFountainSpray(), MercuryLighthouse_TrailSparks(), MercuryLighthouseAerie_SaturosAndAlexWarpIn(), MercuryLighthouseAerie_SaturosAndAlexWarpOut(), MercuryLighthouseEntrance_Initialize(), SceneEffect_SpawnNineRadialEffects(), SceneEffect_SpawnParticleEveryFourthFrame(), SceneEffect_SpawnParticleRowsAndDrawTiles(), SceneEffect_SpawnRandomEveryFourFrames(), SceneEffect_SpawnRandomizedBurst(), SceneEffect_SpawnWithRandomOffset(), SolSanctumElementalStarRoom_AnimateAlexTeleport(), TretTreeInteriors_RunLandingDustScene(), TunnelRuins_SplashDousedPillar(), VenusLighthouse_EmitRisingParticles(), VenusLighthouse_LandWithRadialDust(), VenusLighthouse_UpdateRisingSpray(), VenusLighthouseAerie_CombineSaturosAndMenardi(), and Xian_SpawnTrainingParticles().

◆ startScaleX

s32 EffectOptions::startScaleX

16.16 fixed point, 0x10000 full size

Definition at line 94 of file field_effect.h.

Referenced by BabiLighthouse_LandWithParticles(), BattleFx_SpawnRadialParticleRing(), CollapseFromHeat(), CrossboneIslePillarRooms_SpawnFrostParticle(), CrossboneIslePillarRooms_SpawnThawParticle(), CrossboneIslePillarRooms_SpawnUnusedLeaderParticle(), Event_MoveEastObjectIntoHole(), Event_MoveWestObjectIntoHole(), Event_SinkPillarA(), Event_SinkPillarB(), Event_StepOnEastWallSwitch(), Event_StepOnWallSwitch(), Event_StepOnWestWallSwitch(), FuchinTemple_SpawnGrottoEntryParticle(), GomaCaveEntrance_LeapStump(), GomaCaveWaterway_LeapStump(), HeatGauge_CountStep(), ImilFuchinFalls_SpawnDust(), Leader_SpraySand(), MercuryLighthouse_CloseStoneDoor(), MercuryLighthouse_OpenFountainWithSpray(), MercuryLighthouse_OpenStoneDoor(), MercuryLighthouse_OpenThreeStepStair(), MercuryLighthouse_PlyOpensWaterfallPassage(), MercuryLighthouse_StopFountainSpray(), MercuryLighthouse_TrailSparks(), MercuryLighthouseAerie_SaturosAndAlexWarpIn(), MercuryLighthouseAerie_SaturosAndAlexWarpOut(), Rubble_SetScaleAndSpin(), SceneEffect_SpawnParticleEveryFourthFrame(), SceneEffect_SpawnParticleRowsAndDrawTiles(), SceneEffect_SpawnRandomEveryFourFrames(), SceneEffect_SpawnRandomizedBurst(), SceneEffect_SpawnWithRandomOffset(), SolSanctumElementalStarRoom_AnimateAlexTeleport(), SuhallaDesert_ChaseLeader(), TretTreeInteriors_RunLandingDustScene(), TunnelRuins_SplashDousedPillar(), VenusLighthouse_EmitGateParticles(), VenusLighthouse_EmitPassageSparkTrail(), VenusLighthouse_EmitRisingParticles(), VenusLighthouse_LandWithRadialDust(), VenusLighthouse_SpawnRandomParticles(), and VenusLighthouseAerie_CombineSaturosAndMenardi().

◆ startScaleY

s32 EffectOptions::startScaleY

16.16 fixed point, 0x10000 full size

Definition at line 95 of file field_effect.h.

Referenced by BabiLighthouse_LandWithParticles(), BattleFx_SpawnRadialParticleRing(), CollapseFromHeat(), CrossboneIslePillarRooms_SpawnFrostParticle(), CrossboneIslePillarRooms_SpawnThawParticle(), CrossboneIslePillarRooms_SpawnUnusedLeaderParticle(), Event_MoveEastObjectIntoHole(), Event_MoveWestObjectIntoHole(), Event_SinkPillarA(), Event_SinkPillarB(), Event_StepOnEastWallSwitch(), Event_StepOnWallSwitch(), Event_StepOnWestWallSwitch(), FuchinTemple_SpawnGrottoEntryParticle(), GomaCaveEntrance_LeapStump(), GomaCaveWaterway_LeapStump(), HeatGauge_CountStep(), ImilFuchinFalls_SpawnDust(), Leader_SpraySand(), MercuryLighthouse_CloseStoneDoor(), MercuryLighthouse_OpenFountainWithSpray(), MercuryLighthouse_OpenStoneDoor(), MercuryLighthouse_OpenThreeStepStair(), MercuryLighthouse_PlyOpensWaterfallPassage(), MercuryLighthouse_StopFountainSpray(), MercuryLighthouse_TrailSparks(), MercuryLighthouseAerie_SaturosAndAlexWarpIn(), MercuryLighthouseAerie_SaturosAndAlexWarpOut(), Rubble_SetScaleAndSpin(), SceneEffect_SpawnParticleEveryFourthFrame(), SceneEffect_SpawnParticleRowsAndDrawTiles(), SceneEffect_SpawnRandomEveryFourFrames(), SceneEffect_SpawnRandomizedBurst(), SceneEffect_SpawnWithRandomOffset(), SolSanctumElementalStarRoom_AnimateAlexTeleport(), SuhallaDesert_ChaseLeader(), TretTreeInteriors_RunLandingDustScene(), TunnelRuins_SplashDousedPillar(), VenusLighthouse_EmitGateParticles(), VenusLighthouse_EmitPassageSparkTrail(), VenusLighthouse_EmitRisingParticles(), VenusLighthouse_LandWithRadialDust(), VenusLighthouse_SpawnRandomParticles(), and VenusLighthouseAerie_CombineSaturosAndMenardi().

◆ targetScaleX

◆ targetScaleY

◆ type

◆ script

◆ rotation

u16 EffectOptions::rotation

1/65536 turns

Definition at line 100 of file field_effect.h.

Referenced by CrossboneIslePillarRooms_SpawnFrostParticle(), and Xian_TalkToKungFuStudent().

◆ spin

◆ update