src/field/field_engine_psynergy.c
Using Psynergy on the field. More…
Included by field_engine.c.
Macros
| Name | Description | |
|---|---|---|
#define | PSYNERGY_MESSAGE (user, ability, message) | Shows message with the user's and the Psynergy's names, and waits. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | fdUsePsynergy (Uint32 code) | Uses Psynergy on the field. code holds the Psynergy (bits 0 to 9), its user (bits 10 to 13; UNIT_NONE for the first party member) and ACT_PACKED to use it without paying PP. |
Sint32 | fdRunPsynergyScript (PENDING_CUE *event, Sint32 argument, Sint32 target) | Runs the script tied to a field Psynergy: an action below CUE_RESULT_MESSAGE_END is a message, shown at target; any other is a function, called with argument (the user, when a cast runs it) and target. |
Bool | fdHasPsynergyCue (Sint32 fieldPsynergy) | Returns whether the scene has a cue for the field Psynergy kind on what it would act on (fdSelectPsynergyTarget), at any stage. |
Uint32 | fdHasItemCue (Uint16 item) | Returns whether the scene has a script for item and what the leader faces. |
Description
Using Psynergy on the field. Part of field_engine.c.
Macros in detail
PSYNERGY_MESSAGE
#define PSYNERGY_MESSAGE(user, ability, message)
Shows message with the user's and the Psynergy's names, and waits.
Referenced by fdUsePsynergy().
Definition at line 6 of file field_engine_psynergy.c.
Functions in detail
fdUsePsynergy
Sint32 fdUsePsynergy(Uint32 code)
Uses Psynergy on the field. code holds the Psynergy (bits 0 to 9), its user
(bits 10 to 13; UNIT_NONE for the first party member) and ACT_PACKED to use
it without paying PP.
References fdActorLookup(), fdBattleEffectStopMainActor(), fdFindPsynergyCue(), fdLeaderStopMoving(), fdMapGridIsSandMetatile(), fdPartyGetLeaderActor(), fdPsynergyDispatch(), fdPsynergyEnd(), fdPsynergyFinishMindRead(), fdPsynergyLoadResources(), fdPsynergyRun(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), fdRunPsynergyEndScripts(), fdRunPsynergyScript(), fdSelectPsynergyTarget(), fdYesNoAsk(), gmAbilityGetDefinitionStub(), gmUnitAddPpStub(), gmUnitGet(), MainRoutineStateWork, mnFieldMessageShowStub(), mnMessageArgumentPushStub(), mnMessageCloseFinishedWindowsStub(), Sint32, syGameFlagClear(), syGameFlagGet() and syGameFlagSet().
Referenced by fdEngineRun().
Definition at line 14 of file field_engine_psynergy.c.
fdRunPsynergyScript
Sint32 fdRunPsynergyScript(PENDING_CUE *event, Sint32 argument, Sint32 target)
Runs the script tied to a field Psynergy: an action below
CUE_RESULT_MESSAGE_END is a message, shown at target; any other is a
function, called with argument (the user, when a cast runs it) and target.
With FLAG_NOTHING_HAPPENS set it then says "But nothing happens."
References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), mnFieldMessageShowStub(), Sint32 and syGameFlagGet().
Referenced by fdPsynergyBlaze(), fdPsynergyBurst(), fdPsynergyDouse(), fdPsynergyEndReveal(), fdPsynergyEndSand(), fdPsynergyForce(), fdPsynergyFrost(), fdPsynergyHover(), fdPsynergyParch(), fdPsynergyPound(), fdPsynergyReveal(), fdPsynergyRunTouchedScripts(), fdPsynergyScoop(), fdPsynergySteerPushedTarget(), fdRunPsynergyEndScripts() and fdUsePsynergy().
Definition at line 245 of file field_engine_psynergy.c.
fdHasPsynergyCue
Bool fdHasPsynergyCue(Sint32 fieldPsynergy)
Returns whether the scene has a cue for the field Psynergy kind on what it
would act on (fdSelectPsynergyTarget), at any stage.
References fdFindPsynergyCue(), fdSelectPsynergyTarget() and Sint32.
Definition at line 276 of file field_engine_psynergy.c.
fdHasItemCue
Uint32 fdHasItemCue(Uint16 item)
Returns whether the scene has a script for item and what the leader faces.
References fdFindItemCue().
Definition at line 286 of file field_engine_psynergy.c.