Skip to Content
The Alchemy Project

struct ACTOR

An actor on the field: its script, position, motion toward a target, sprites and update hook.

Declared in actor.h.

Fields

NameDescription
const Sint32 *scriptThe actor script it runs; null when it is free.
Sint16scriptCursorThe script cursor, in words.
Uint16facing1/65536 turns.
FIELD_COORDINATEx16.16 fixed-point pixels.
FIELD_COORDINATEy16.16 fixed-point pixels.
FIELD_COORDINATEz16.16 fixed-point pixels.
FIXEDgroundHeight16.16 fixed-point pixels.
FIXEDscaleX16.16 fixed point, toFIXED(1) full size.
FIXEDscaleY16.16 fixed point, toFIXED(1) full size.
Uint16radiusCollision radius in pixels.
Uint8layerThe map layer its ground height is read from.
Uint8priorityFlagsACTOR_PRIORITY_FLAG bits; fdActorSetSpritePriorityDirect clears ACTOR_PRIORITY_AUTOMATIC as it fixes its sprite's priority.
FIXEDvelocityX16.16 fixed-point pixels per tick.
FIXEDvelocityY16.16 fixed-point pixels per tick.
FIXEDvelocityZ16.16 fixed-point pixels per tick.
FIXEDspeedLimit16.16 fixed-point pixels per tick.
FIXEDaccelerationAdded toward the target each tick, or taken off the speed when there is none, in 16.16 fixed-point pixels per tick.
FIXEDtargetX16.16 fixed-point pixels; ACTOR_NO_TARGET when unset.
FIXEDtargetY16.16 fixed-point pixels; ACTOR_NO_TARGET when unset.
FIXEDtargetZ16.16 fixed-point pixels; ACTOR_NO_TARGET when unset.
FIXEDbounceThe share of its falling speed kept as it bounces on landing, 16.16 fixed point.
FIXEDgravityTaken off the vertical velocity each tick while it is above the ground, in 16.16 fixed-point pixels per tick.
Sint32sceneWordNot read by the motion update; field code keeps its own values here (a drifting speed, or the mark of a treasure spot that stands for a map metatile), and scene code a resting height.
struct SPR *spriteIts sprite for ACTOR_SPRITE_ONE (read as a FIELD_SPR or a struct Sprite), or its list of sprites for ACTOR_SPRITE_GROUP, which code that reads it converts.
Uint8spriteStorageKindACTOR_SPRITE_ONE or ACTOR_SPRITE_GROUP in the low four bits, which is all the field and the scenes test.
Uint8motionFlagsACTOR_MOTION_FLAG bits.
Uint8arrivalAxisThe ARRIVAL_AXIS_* watched for arrival at the target; ARRIVAL_AXIS_NONE once it arrives, and cleared with the target.
Uint8conditionResultThe actor script's last flag test.
Uint8snapToTargetNonzero lands it exactly on its target.
Uint8collisionFlagsACTOR_COLLISION_FLAG bits.
Uint8steeringFlagsACTOR_STEERING_FLAG bits.
Uint8paused
Uint8retainSpriteCacheACTOR_SPR_CACHE_FLAG bits: what its sprite keeps while the field is suspended or the actor is off screen (fdActorSystemPlaceSprites).
Uint8repeatCountThe actor script's loop count.
Sint16waitThe actor script's wait, in ticks.
union { void *callback, refused, frozen, sceneCount, sceneByte, unusedBeforeSandPuff, sandPuffTimer, puffDepth, unusedBeforeIconItem, iconItem, unusedBeforeSavedPriority, savedSpritePriority, unusedBeforeLookTimer, lookTimer, lookTurned, unusedBeforeChargeHeading, chargeHeading, chargeState, unusedBeforeCirclePhase, circlePhase, circleActorId, unusedBeforeToothPhase, toothPhase, unusedBeforeRollSide, rollSide, unusedBeforeFlameLevel, flameLevel, unusedBeforeStepsLeft, stepsLeft, unusedBeforeFlashMask, flashMask, unusedBeforeLaunchedActor, launchedActorId, unusedBeforeFlicker, flickerColor, flickerShift ; struct { Uint8 refused; Uint8 frozen; Uint8 sceneCount; Uint8 sceneByte; }; struct { Uint8 unusedBeforeSandPuff[2]; Uint8 sandPuffTimer; Uint8 puffDepth; }; struct { Uint8 unusedBeforeIconItem[2]; Uint8 iconItem; }; struct { Uint8 unusedBeforeSavedPriority[2]; Uint8 savedSpritePriority; }; struct { Uint8 unusedBeforeLookTimer[2]; Uint8 lookTimer; Uint8 lookTurned; }; struct { Uint8 unusedBeforeChargeHeading[2]; Uint8 chargeHeading; Uint8 chargeState; }; struct { Uint8 unusedBeforeCirclePhase[2]; Uint8 circlePhase; Uint8 circleActorId; }; struct { Uint8 unusedBeforeToothPhase[2]; Uint8 toothPhase; }; struct { Uint8 unusedBeforeRollSide[2]; Uint8 rollSide; }; struct { Uint8 unusedBeforeFlameLevel[2]; Uint8 flameLevel; }; struct { Uint8 unusedBeforeStepsLeft[2]; Uint8 stepsLeft; }; struct { Uint8 unusedBeforeFlashMask[3]; Uint8 flashMask; }; struct { Uint8 unusedBeforeLaunchedActor[2]; Uint8 launchedActorId; }; struct { Uint8 unusedBeforeFlicker[2]; Uint8 flickerColor; Uint8 flickerShift; }; }The field's effects keep a hook here;
union { struct { Sint16timer, userValue, songStep, songCommand, runningChildFlags, moteLifetime, moteTicksLeft, flag, lightFrame, circleAngle, circleTurn, unusedBeforeFireballPair, fireballPairFirst, spin, smokeDrift, shakeAngle, shakeAmount, flickerTicks, flickerFlipped, emoteTicks, emoteActorId, beamAngle, beamClimb, sandMoving, sandClimbing, ropeSavedMotionFlags, ropeSavedSpriteFlags, faceAngle, followDistance, savedFacing, unusedBeforeHostActorId, hostActorId, unusedBeforeLaunchFacing, launchFacing, startMetatile, chaseQuarry, footprintTicks, footprintSide, homeX, homeZ, arcPhase, arcTicks, orbitTicks, orbitAngle, swirlTicks, turnTicks, spinRampTicks, lookFacing, lookOtherFacing, chargeColumn, chargeRow ; Sint16 userValue; }; struct { Sint16 songStep; Sint16 songCommand; }; struct { Sint16 runningChildFlags; }; struct { Sint16 moteLifetime; Sint16 moteTicksLeft; }; struct { Sint16 flag; }; struct { Sint16 lightFrame; }; struct { Sint16 circleAngle; Sint16 circleTurn; }; struct { Sint16 unusedBeforeFireballPair; Sint16 fireballPairFirst; }; struct { Sint16 spin; }; struct { Sint16 smokeDrift; }; struct { Sint16 shakeAngle; Sint16 shakeAmount; }; struct { Sint16 flickerTicks; Sint16 flickerFlipped; }; struct { Sint16 emoteTicks; Sint16 emoteActorId; }; struct { Sint16 beamAngle; Sint16 beamClimb; }; struct { Sint16 sandMoving; Sint16 sandClimbing; }; struct { Sint16 ropeSavedMotionFlags; Sint16 ropeSavedSpriteFlags; }; struct { Sint16 faceAngle; }; struct { Sint16 followDistance; }; struct { Sint16 savedFacing; }; struct { Sint16 unusedBeforeHostActorId; Sint16 hostActorId; }; struct { Sint16 unusedBeforeLaunchFacing; Sint16 launchFacing; }; struct { Sint16 startMetatile; }; struct { Sint16 chaseQuarry; }; struct { Sint16 footprintTicks; Sint16 footprintSide; }; struct { Sint16 homeX; Sint16 homeZ; }; struct { Sint16 arcPhase; Sint16 arcTicks; }; struct { Uint16 orbitTicks; Sint16 orbitAngle; }; struct { Uint16 swirlTicks; Sint16 turnTicks; }; struct { Sint16 spinRampTicks; }; struct { Uint16 lookFacing; Uint16 lookOtherFacing; }; struct { Sint16 chargeColumn; Sint16 chargeRow; }; }Two halfwords whose meaning depends on what runs the actor.
union FIELD_OBJECT *watchedActorThe field object (an actor or a field effect) its actor script follows or faces.
void *updateThe actor's per-tick hook (an OBJECT_UPDATE), kept as a plain pointer as the effect options' hook is.
Sint32stepXWhat a carrier moved this tick, which fdActorMoveWithCarriers adds to an actor riding it, and that actor's carrier: the platform actor it stands on, held as a field object.
Sint32stepY
Sint32stepZ
union FIELD_OBJECT *carrier

Description

An actor on the field: its script, position, motion toward a target, sprites and update hook.

struct ACTOR

Referenced by btActionRunBuild(), btAutoBattleApplyDamage(), btAutoBattleRunApproachAttack(), btAutoBattleRunAttackOrItem(), btAutoBattleRunPsynergy(), btDjinnRecoveryCountDownSide(), btEffectHopBackToSpot(), btEffectRunAgingGas(), btEffectRunAstralBlast(), btEffectRunCharon(), btEffectRunDeathPlunge(), btEffectRunDragonCloud(), btEffectRunFireDance(), btEffectRunMineBall(), btEffectRunSerac(), btEffectRunStarMine(), btEffectRunVolleyWithAction(), btEffectSetApproachMotion(), btGeyserDraw(), btMotionCallBeast(), btMotionDestroyAllSlotObjects(), btMotionLeapToward(), btObjectMake(), btObjectReset(), btObjectUpdatePose(), btProcessTurnEnd(), btStagingRunAttack(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunPsynergyCast(), btUnitProcessActionEnd(), btUnitRemoveEnemy(), dbPsynergyTest2DropActor(), dbPsynergyTest2GrowActor(), dbPsynergyTest2RaiseStatue(), dbPsynergyTest2ScatterRocks(), dbPsynergyTestDropActor(), dbPsynergyTestGrowActor(), dbPsynergyTestRaiseStatue(), dbPsynergyTestStartRings(), dbPsynergyTestStopRings(), dbPsynergyTestUpdateRings(), dbShopTestDropActor(), dbShopTestGrowActor(), dbShopTestRaiseStatue(), DehkanPlateauDroppedPoundCube, EFFECT_SPAWN, fdActorAddSpriteAnimation(), fdActorAppearInSparks(), fdActorAppearInWhirlwind() and 1610 more.

Definition at line 153 of file actor.h.

Fields in detail

script

const Sint32 *script

The actor script it runs; null when it is free.

scriptCursor

Sint16 scriptCursor

The script cursor, in words.

facing

Uint16 facing

1/65536 turns.

x

FIELD_COORDINATE x

16.16 fixed-point pixels.

y

FIELD_COORDINATE y

16.16 fixed-point pixels.

z

FIELD_COORDINATE z

16.16 fixed-point pixels.

groundHeight

FIXED groundHeight

16.16 fixed-point pixels.

scaleX

FIXED scaleX

16.16 fixed point, toFIXED(1) full size.

scaleY

FIXED scaleY

16.16 fixed point, toFIXED(1) full size.

radius

Uint16 radius

Collision radius in pixels.

layer

Uint8 layer

The map layer its ground height is read from.

priorityFlags

Uint8 priorityFlags

ACTOR_PRIORITY_FLAG bits; fdActorSetSpritePriorityDirect clears ACTOR_PRIORITY_AUTOMATIC as it fixes its sprite's priority.

velocityX

FIXED velocityX

16.16 fixed-point pixels per tick.

velocityY

FIXED velocityY

16.16 fixed-point pixels per tick.

velocityZ

FIXED velocityZ

16.16 fixed-point pixels per tick.

speedLimit

FIXED speedLimit

16.16 fixed-point pixels per tick.

acceleration

FIXED acceleration

Added toward the target each tick, or taken off the speed when there is none, in 16.16 fixed-point pixels per tick.

targetX

FIXED targetX

16.16 fixed-point pixels; ACTOR_NO_TARGET when unset.

targetY

FIXED targetY

16.16 fixed-point pixels; ACTOR_NO_TARGET when unset.

targetZ

FIXED targetZ

16.16 fixed-point pixels; ACTOR_NO_TARGET when unset.

bounce

FIXED bounce

The share of its falling speed kept as it bounces on landing, 16.16 fixed point.

gravity

FIXED gravity

Taken off the vertical velocity each tick while it is above the ground, in 16.16 fixed-point pixels per tick.

sceneWord

Sint32 sceneWord

Not read by the motion update; field code keeps its own values here (a drifting speed, or the mark of a treasure spot that stands for a map metatile), and scene code a resting height.

sprite

struct SPR *sprite

Its sprite for ACTOR_SPRITE_ONE (read as a FIELD_SPR or a struct Sprite), or its list of sprites for ACTOR_SPRITE_GROUP, which code that reads it converts.

spriteStorageKind

Uint8 spriteStorageKind

ACTOR_SPRITE_ONE or ACTOR_SPRITE_GROUP in the low four bits, which is all the field and the scenes test.

motionFlags

Uint8 motionFlags

ACTOR_MOTION_FLAG bits.

arrivalAxis

Uint8 arrivalAxis

The ARRIVAL_AXIS_* watched for arrival at the target; ARRIVAL_AXIS_NONE once it arrives, and cleared with the target.

conditionResult

Uint8 conditionResult

The actor script's last flag test.

snapToTarget

Uint8 snapToTarget

Nonzero lands it exactly on its target.

collisionFlags

Uint8 collisionFlags

ACTOR_COLLISION_FLAG bits.

steeringFlags

Uint8 steeringFlags

ACTOR_STEERING_FLAG bits.

paused

Uint8 paused

retainSpriteCache

Uint8 retainSpriteCache

ACTOR_SPR_CACHE_FLAG bits: what its sprite keeps while the field is suspended or the actor is off screen (fdActorSystemPlaceSprites).

repeatCount

Uint8 repeatCount

The actor script's loop count.

wait

Sint16 wait

The actor script's wait, in ticks.

callback, refused, frozen, sceneCount, sceneByte, unusedBeforeSandPuff, sandPuffTimer, puffDepth, unusedBeforeIconItem, iconItem, unusedBeforeSavedPriority, savedSpritePriority, unusedBeforeLookTimer, lookTimer, lookTurned, unusedBeforeChargeHeading, chargeHeading, chargeState, unusedBeforeCirclePhase, circlePhase, circleActorId, unusedBeforeToothPhase, toothPhase, unusedBeforeRollSide, rollSide, unusedBeforeFlameLevel, flameLevel, unusedBeforeStepsLeft, stepsLeft, unusedBeforeFlashMask, flashMask, unusedBeforeLaunchedActor, launchedActorId, unusedBeforeFlicker, flickerColor, flickerShift

union { void *callback; struct { Uint8 refused; Uint8 frozen; Uint8 sceneCount; Uint8 sceneByte; }; struct { Uint8 unusedBeforeSandPuff[2]; Uint8 sandPuffTimer; Uint8 puffDepth; }; struct { Uint8 unusedBeforeIconItem[2]; Uint8 iconItem; }; struct { Uint8 unusedBeforeSavedPriority[2]; Uint8 savedSpritePriority; }; struct { Uint8 unusedBeforeLookTimer[2]; Uint8 lookTimer; Uint8 lookTurned; }; struct { Uint8 unusedBeforeChargeHeading[2]; Uint8 chargeHeading; Uint8 chargeState; }; struct { Uint8 unusedBeforeCirclePhase[2]; Uint8 circlePhase; Uint8 circleActorId; }; struct { Uint8 unusedBeforeToothPhase[2]; Uint8 toothPhase; }; struct { Uint8 unusedBeforeRollSide[2]; Uint8 rollSide; }; struct { Uint8 unusedBeforeFlameLevel[2]; Uint8 flameLevel; }; struct { Uint8 unusedBeforeStepsLeft[2]; Uint8 stepsLeft; }; struct { Uint8 unusedBeforeFlashMask[3]; Uint8 flashMask; }; struct { Uint8 unusedBeforeLaunchedActor[2]; Uint8 launchedActorId; }; struct { Uint8 unusedBeforeFlicker[2]; Uint8 flickerColor; Uint8 flickerShift; }; }

The field's effects keep a hook here;

a scene whose actor bobs keeps its

own tick count in the third byte

instead.

Ticks in a row a solid actor has refused its

move.

Ticks into the bob, its low six bits a cycle.

A block's: nonzero while it blocks the metatiles ahead of and behind it.

metatiles ahead of and behind it.

The leader moving as Sand (fdActorMoveAsSand,

fdActorMoveAsSandOnWorldMap) and the puffs of sand he leaves

behind (ActorSandPuffScript).

refused and frozen

The leader's ticks to his next puff, 5 after each.

A puff's draw depth (its sceneByte, read through

ACTOR_PRIORITY_OWN_DEPTH): 100 as it is made, then 15 counting

down as ActorSandPuffScript runs.

An actor showing an item (fdActorSetItemIcon).

refused and frozen

the item whose icon its sprite shows

shows

The leader while it crosses a rope or tightrope.

refused and frozen

its sprite's priority, given back after

back after

A member of the party looking about in the Gabomba Statue

(scGabombaStatueLookAround).

refused and frozen

ticks to its next turn

nonzero while it faces lookOtherFacing

lookOtherFacing

A magical charge running along the Gabomba Statue's channel

(scGabombaStatueMoveCharge).

Refused and frozen.

The quarter turn it runs toward.

1 while it runs, 2 as it sinks or rises off the channel (its

script then sets 0), 7 once it reaches the metatile (24, 14).

A magical charge circling its orb statue in the Gabomba Statue

(scGabombaStatueSendCharge): its place on the circle, in

256ths of a turn, and its own actor id.

refused and frozen

A tooth of a cog in the Gabomba Statue

(scGabombaStatueTurnTooth): its place in its turn.

refused and frozen

A fireball flying between a pair of statues at Magma Rock

(scMagmaRockMoveFireball).

refused and frozen

0 or 1: which statue of its pair it flies toward

it flies toward

A part of a statue's rising flame at Magma Rock

(scMagmaRockRaiseFlamePart).

refused and frozen

its height in the column, 16 pixels a level

pixels a level

A spark circling in to its centre, at Magma Rock's Blaze

tablet (scMagmaRockInsideOrbitParent).

refused and frozen

its steps left before it is released

released

An actor that blinks, as Magma Rock's statues and blasted wall

do (scStatueFlashUnderBurst).

refused, frozen and sceneCount

its sprite flashes while TickCount & this is set

TickCount & this is set

A statue that launches a fireball (fdActorLaunchAhead), or the

fireball an attached actor sends rolling (scActorAttach).

refused and frozen

the actor sent rolling ahead

An actor whose update flickers its colour

(scShamanVillageFlickerRock).

refused and frozen

the colour attribute shown on its lit ticks

lit ticks

lit every other tick at 0, every other two * at 1

other two * at 1

timer, userValue, songStep, songCommand, runningChildFlags, moteLifetime, moteTicksLeft, flag, lightFrame, circleAngle, circleTurn, unusedBeforeFireballPair, fireballPairFirst, spin, smokeDrift, shakeAngle, shakeAmount, flickerTicks, flickerFlipped, emoteTicks, emoteActorId, beamAngle, beamClimb, sandMoving, sandClimbing, ropeSavedMotionFlags, ropeSavedSpriteFlags, faceAngle, followDistance, savedFacing, unusedBeforeHostActorId, hostActorId, unusedBeforeLaunchFacing, launchFacing, startMetatile, chaseQuarry, footprintTicks, footprintSide, homeX, homeZ, arcPhase, arcTicks, orbitTicks, orbitAngle, swirlTicks, turnTicks, spinRampTicks, lookFacing, lookOtherFacing, chargeColumn, chargeRow

union { struct { Sint16 timer; Sint16 userValue; }; struct { Sint16 songStep; Sint16 songCommand; }; struct { Sint16 runningChildFlags; }; struct { Sint16 moteLifetime; Sint16 moteTicksLeft; }; struct { Sint16 flag; }; struct { Sint16 lightFrame; }; struct { Sint16 circleAngle; Sint16 circleTurn; }; struct { Sint16 unusedBeforeFireballPair; Sint16 fireballPairFirst; }; struct { Sint16 spin; }; struct { Sint16 smokeDrift; }; struct { Sint16 shakeAngle; Sint16 shakeAmount; }; struct { Sint16 flickerTicks; Sint16 flickerFlipped; }; struct { Sint16 emoteTicks; Sint16 emoteActorId; }; struct { Sint16 beamAngle; Sint16 beamClimb; }; struct { Sint16 sandMoving; Sint16 sandClimbing; }; struct { Sint16 ropeSavedMotionFlags; Sint16 ropeSavedSpriteFlags; }; struct { Sint16 faceAngle; }; struct { Sint16 followDistance; }; struct { Sint16 savedFacing; }; struct { Sint16 unusedBeforeHostActorId; Sint16 hostActorId; }; struct { Sint16 unusedBeforeLaunchFacing; Sint16 launchFacing; }; struct { Sint16 startMetatile; }; struct { Sint16 chaseQuarry; }; struct { Sint16 footprintTicks; Sint16 footprintSide; }; struct { Sint16 homeX; Sint16 homeZ; }; struct { Sint16 arcPhase; Sint16 arcTicks; }; struct { Uint16 orbitTicks; Sint16 orbitAngle; }; struct { Uint16 swirlTicks; Sint16 turnTicks; }; struct { Sint16 spinRampTicks; }; struct { Uint16 lookFacing; Uint16 lookOtherFacing; }; struct { Sint16 chargeColumn; Sint16 chargeRow; }; }

Two halfwords whose meaning depends on what runs the actor.

A tick count its update or script keeps (SW_TIMER).

(SW_TIMER).

A value a script or scene keeps for itself (SW_USER_VALUE).

(SW_USER_VALUE).

A runner of Yallam's song game (scYallamRunSongPath): how far

along its path it is, and the song leader's command to every

runner, SONG_GAME_GO to SONG_GAME_HALT_AND_STAND.

A child running round Yallam's big tree

(scYallamUpdateRunningChild).

CHILD_CHASES_GAME_CHILD, CHILD_TALKING

A mote of light drifting up through a room

(scAirsRockInsideDriftMote): its lifetime,

PARTICLE_SLOW_LIFETIME or PARTICLE_QUICK_LIFETIME ticks, and

the ticks left of this drift.

The game flag it stands for: a stake Pound drives in, a switch

or a cone that sets or reads it.

An actor on the glow list (scLightSpritesAdd): the picture its

glow shows.

Something circling a centre (a spark round an Adept, an orb, a

flame round a beacon): its angle round it and, where it turns

by its own speed, its turn each tick, in 1/65536 turns.

A fireball flying between a pair of Magma Rock's statues

(scMagmaRockMoveFireball): the first statue's actor of its

pair, rollSide picking the one it flies toward.

A field effect's spin, added to its sprite's rotation each

tick in 1/65536 turns, as FIELD_EFFECT.spin is.

A puff of smoke (scSmokeDrift): how fast it drifts sideways,

in 1/256 pixels a tick.

A Moai shaking or rocking (scAquaRockShakeMoai): where it is

in the shake, in 1/65536 turns, and how far the shake tips it.

A flame that turns about now and then (scKibomboFlickerFlame):

ticks until it next turns, and 1 while it faces west.

A figure that shows an emote now and then

(scKandoreanTempleMeditate): ticks until the next, and the

actor it shows over.

A light circling up a beam of Jupiter Lighthouse

(scJupiterLighthouseCircleTheBeam): its angle round the beam,

in 1/65536 turns, and the steps it has climbed, three pixels

each.

The player as sand (fdActorMoveAsSand).

1 while it moves to the target set onto a ledge or down a face

ledge or down a face

1 while it clings to a climbable face

The leader's motion and sprite flags, kept while it crosses a

rope or tightrope.

What an actor script steers by: the angle fdActorStepAngle

turns it to, in 1/65536 turns, or the distance in pixels it

keeps behind the actor it follows.

The caster's facing, kept while Cyclone spins it

(fdActorUpdateSpin).

An emote bubble or attached effect riding an actor

(fdEffectCopyWatchedActorPos): the id of the actor it rides.

An actor carrying another to launch (scActorAttach): the way

it launches it, in 1/65536 turns.

A pillar sliding across Tundaria Tower's floor: the metatile

it started from, its column over its row's byte

(START_METATILE_ROW_MASK).

A child at chase in Prox (CHASE_QUARRY): the child it runs

after.

The player's footprints, and the splashes that take their

place in shallow water.

ticks until the next footprint or splash may be left

may be left

the foot that leaves the next one, FOOTPRINT_BOTH_FEET after a stop

FOOTPRINT_BOTH_FEET after a stop

Where it was created or placed, in pixels: what SC_WANDER_HOME

wanders around, and the spot a scene measures from or puts it

back on.

Avoid's caster (fdEffectUpdateAvoidCaster).

1 spins the caster 3/64 turn a tick

ticks since the arcs started

A particle on a spiral that shrinks as its ticks run out: a

Venus Djinni's falling motes

(fdEffectUpdateDescendingOrbitActor), Frost's and Ply's

particles.

ticks left of the spiral

its start on the circle, 1/65536 turns

A Whirlwind particle (fdEffectCircleAnchor,

fdEffectWanderAroundAnchor).

ticks it has circled or wandered so far

ticks left of a sharp turn

A spin that speeds up (fdEffectAdvanceAngleWithRamp).

ticks the spin has been speeding up for

The two headings a member of the party looking about turns

between (scGabombaStatueLookAround), 1/65536 turns.

A charge's metatile of the channel

(scGabombaStatueMoveCharge).

watchedActor

union FIELD_OBJECT *watchedActor

The field object (an actor or a field effect) its actor script follows or faces. Scenes also hang other things on it: a rope or tightrope node, a hook to call, a sparkle state, a VRAM address or a tick count.

update

void *update

The actor's per-tick hook (an OBJECT_UPDATE), kept as a plain pointer as the effect options' hook is.

stepX

Sint32 stepX

What a carrier moved this tick, which fdActorMoveWithCarriers adds to an actor riding it, and that actor's carrier: the platform actor it stands on, held as a field object.

stepY

Sint32 stepY

stepZ

Sint32 stepZ

carrier

union FIELD_OBJECT *carrier

On this page

FieldsDescriptionFields in detailscriptscriptCursorfacingxyzgroundHeightscaleXscaleYradiuslayerpriorityFlagsvelocityXvelocityYvelocityZspeedLimitaccelerationtargetXtargetYtargetZbouncegravitysceneWordspritespriteStorageKindmotionFlagsarrivalAxisconditionResultsnapToTargetcollisionFlagssteeringFlagspausedretainSpriteCacherepeatCountwaitcallback, refused, frozen, sceneCount, sceneByte, unusedBeforeSandPuff, sandPuffTimer, puffDepth, unusedBeforeIconItem, iconItem, unusedBeforeSavedPriority, savedSpritePriority, unusedBeforeLookTimer, lookTimer, lookTurned, unusedBeforeChargeHeading, chargeHeading, chargeState, unusedBeforeCirclePhase, circlePhase, circleActorId, unusedBeforeToothPhase, toothPhase, unusedBeforeRollSide, rollSide, unusedBeforeFlameLevel, flameLevel, unusedBeforeStepsLeft, stepsLeft, unusedBeforeFlashMask, flashMask, unusedBeforeLaunchedActor, launchedActorId, unusedBeforeFlicker, flickerColor, flickerShifttimer, userValue, songStep, songCommand, runningChildFlags, moteLifetime, moteTicksLeft, flag, lightFrame, circleAngle, circleTurn, unusedBeforeFireballPair, fireballPairFirst, spin, smokeDrift, shakeAngle, shakeAmount, flickerTicks, flickerFlipped, emoteTicks, emoteActorId, beamAngle, beamClimb, sandMoving, sandClimbing, ropeSavedMotionFlags, ropeSavedSpriteFlags, faceAngle, followDistance, savedFacing, unusedBeforeHostActorId, hostActorId, unusedBeforeLaunchFacing, launchFacing, startMetatile, chaseQuarry, footprintTicks, footprintSide, homeX, homeZ, arcPhase, arcTicks, orbitTicks, orbitAngle, swirlTicks, turnTicks, spinRampTicks, lookFacing, lookOtherFacing, chargeColumn, chargeRowwatchedActorupdatestepXstepYstepZcarrier