Skip to Content
The Alchemy Project

src/field/script_commands_force.c

Included by script_commands.c.

Macros

NameDescription
#defineFORCE_RING_PARTICLES 12Force's ring of particles round the caster, one every 2 ticks, and the ticks it waits at most for the fist to strike.
#defineFORCE_STRIKE_TICKS 60

Functions

NameDescription
voidfdPsynergyForceOnTarget (Sint32 unused)Runs Force cast on a target, through fdPsynergyForce.
voidfdPsynergyForce (void)Force: a ring of particles round the caster, then a fist (SPRITE_MOVE_HAND) grows in front of them and strikes 56 pixels ahead, or at the target, with three afterimages; the target is pushed 16 pixels the way the fist flew (and thrown up when its option asks), and the scene's Force script runs.

Macros in detail

FORCE_RING_PARTICLES

#define FORCE_RING_PARTICLES 12

Force's ring of particles round the caster, one every 2 ticks, and the ticks it waits at most for the fist to strike.

Referenced by fdPsynergyForce().

Definition at line 11 of file script_commands_force.c.

FORCE_STRIKE_TICKS

#define FORCE_STRIKE_TICKS 60

Referenced by fdPsynergyForce().

Definition at line 12 of file script_commands_force.c.

Functions in detail

fdPsynergyForceOnTarget

void fdPsynergyForceOnTarget(Sint32 unused)

Runs Force cast on a target, through fdPsynergyForce.

References fdPsynergyForce() and Sint32.

Referenced by fdPsynergyDispatch().

Definition at line 4 of file script_commands_force.c.

fdPsynergyForce

void fdPsynergyForce(void)

Force: a ring of particles round the caster, then a fist (SPRITE_MOVE_HAND) grows in front of them and strikes 56 pixels ahead, or at the target, with three afterimages; the target is pushed 16 pixels the way the fist flew (and thrown up when its option asks), and the scene's Force script runs.

References fdActorScriptCheckOverlapStub(), fdActorSelectAnimationStub(), fdActorSetSpriteColorModeStub(), fdActorSpawn(), fdActorStartScriptStub(), fdCameraWorldToScreen(), fdEffectUpdateRadialBurst(), fdFindPsynergyCue(), fdMapGridCheckCollisionStub(), fdParticleInit(), fdParticleSetAnimation(), fdParticleSetCallback(), fdPsynergyFadeFromCastColor(), fdPsynergyFadeToCastColor(), fdRunPsynergyScript(), fdSelectPsynergyTarget(), fdSpriteSetAnimationColorModesStub(), fdSpriteShareVRAMCacheEntry(), FieldEffectReleaseScript, ForceFistScript, Sint32, sySoundPlayStub(), sySynch(), syVectorAddPolarOffset() and syVRAMCacheFreeEntry().

Referenced by fdPsynergyForceOnTarget() and fdPsynergyRun().

Definition at line 18 of file script_commands_force.c.