Skip to Content
The Alchemy Project

include/field/field_engine_script.h

The field engine's script functions (field_engine_script.c, field_engine_items.c and field_engine_psynergy.c).

Included by level.c, psynergy_test.c, psynergy_test_2.c, shop_test.c, field_engine_internal.h, script_commands_internal.h, alhafra.c, alhafra_manor.c, alhafra_rooms.c, alhafran_cave.c, anemos_inner_sanctum.c, apojii_islands_cave.c, atteka_inlet.c, champa_cliff_caves.c, champa_rooms.c, champa_sanctum.c, clear.c, contigo.c, daila_rooms.c, eastern_alhafra_ship.c, gabomba_catacombs.c, gabomba_statue_chamber.c, gaia_rock.c, garoh_rooms.c, gondowan_cliffs_hideout.c, islet_cave.c, islets.c, izumo_rooms.c, kibombo.c, lemuria.c, lemuria_entrance.c, lemuria_spring.c, lemurian_ship_deck.c, loho.c, madra_catacombs.c, madra_drawbridge.c, madra_rooms.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c, mercury_lighthouse.c, mikasalla.c, mikasalla_rooms.c, naribwe_rooms.c, northern_reaches.c, shaman_village_cave.c, world_map_objects.c, staff_credit.c, suhalla_gate.c, taopo_swamp.c, title.c and 6 more.

Structures

NameDescription
structPENDING_CUECUE (scene_tables.h), a row of the scene's cue table, as the Psynergy and item cues run it: its control word as key, its subject as flags, its condition unsigned, and its value as action (a message below 0x10000, else a function).

Functions

NameDescription
voidfdScriptRunMessage (Sint32 actor, Sint32 msg)Runs message as a script of its own, shown at actor.
Sint32fdRunPsynergyEndScripts (Uint32 action)Runs the scene's scripts for Psynergy without paying its PP or showing its usual effect (PSYNERGY_PHASE_BEFORE_END and PSYNERGY_PHASE_AFTER_END, around the kind's ending), as for a Psynergy that ends by itself: packed holds the Psynergy (bits 0 to 9) and its user (bits 10 to 13).
Sint32fdRunPsynergyScript (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.
voidfdScriptUpdateDebugSkip (void)Debug only: while debug mode is on, R makes every script wait (fdScriptWait) end at once and L restores normal waits.
voidfdScriptNoOperationCallback (void)An empty function nothing calls.

Description

The field engine's script functions (field_engine_script.c, field_engine_items.c and field_engine_psynergy.c).