Skip to Content
The Alchemy Project

src/field/script_commands_force.c

Force: a fist flies out from the caster and knocks what it hits back a metatile. More…

Included by script_commands.c.

Macros

NameDescription
#defineFORCE_FLASHES 12The flashes that burst from over the caster's head, one every 2 ticks.

Functions

NameDescription
voidfdPsynergyForceOnTarget (Sint32 unused)Runs Force cast on a target, through fdPsynergyForce.
static __inline__ voidfdEffectGetPosAboveActor (ACTOR *actor, VECTOR3 *pos)Writes the position 16 pixels above the actor.
voidfdPsynergyForce (void)Flashes burst from over the caster's head, then a fist (SPRITE_MOVE_HAND) appears in front of it, grows and flies forward with three afterimages; what it hits (effectState->target) is pushed 16 pixels.

Description

Force: a fist flies out from the caster and knocks what it hits back a metatile. Part of script_commands.c.

Macros in detail

FORCE_FLASHES

#define FORCE_FLASHES 12

The flashes that burst from over the caster's head, one every 2 ticks.

Referenced by fdPsynergyForce().

Definition at line 13 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 7 of file script_commands_force.c.

fdEffectGetPosAboveActor

static __inline__ void fdEffectGetPosAboveActor(ACTOR *actor, VECTOR3 *pos)

Writes the position 16 pixels above the actor.

Referenced by fdPsynergyForce().

Definition at line 16 of file script_commands_force.c.

fdPsynergyForce

void fdPsynergyForce(void)

Flashes burst from over the caster's head, then a fist (SPRITE_MOVE_HAND) appears in front of it, grows and flies forward with three afterimages; what it hits (effectState->target) is pushed 16 pixels.

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

Referenced by fdPsynergyForceOnTarget() and fdPsynergyRun().

Definition at line 27 of file script_commands_force.c.