Skip to Content
The Alchemy Project

include/field/field_script.h

Creating actors and starting their scripts and animations from a scene.

Included by battle_internal.h, battle_effect_internal.h, field_engine_internal.h, field_psynergy_internal.h, menu_internal.h, ancient_lemuria.c, apojii_islands.c, champa.c, daila.c, eastern_alhafra.c, idejima.c, izumo.c, kibombo_mountains.c, lemuria_rooms.c, madra.c, mars_lighthouse_aerie.c, actor_create_silhouette.c, actor_stop_where_it_stands.c, emote_pop_tilted.c, field_effect_set_sprite_priority.c, shop_internal.h and field_effect.h.

Structures

NameDescription
structFIELD_ACTORACTOR with its timer unsigned, as the two scene functions that keep a flag number in it store it: Tundaria Tower's and the Mars Lighthouse entrance's placing of their actors from a table.

Functions

NameDescription
voidsyImportScriptSetExitRequest (Sint32 exit)Sets the field's exit request (fdScriptSetExitRequest, through the overlay's own import row).
ACTOR *syImportActorCreate (Sint32 type, Sint32 x, Sint32 y, Sint32 z)Creates an actor at (x, y, z), 16.16 pixels, or returns 0 when every slot is taken (fdActorCreate, through the overlay's own import row).
voidsyImportActorSelectAnimation (ACTOR *actor, Sint32 animation)Starts an animation on an actor's sprite (fdActorSelectAnimation, through the overlay's own import row).
voidsyImportActorStartScript (ACTOR *actor, const void *script)Gives an actor a script and starts it from the top (fdActorStartScript, through the overlay's own import row).

Description

Creating actors and starting their scripts and animations from a scene.

Functions in detail

syImportActorSelectAnimation

void syImportActorSelectAnimation(ACTOR *actor, Sint32 animation)

Starts an animation on an actor's sprite (fdActorSelectAnimation, through the overlay's own import row).

Referenced by scEmotePopTilted(), scShamanVillageBlowAwaySand() and scShamanVillageSpawnSmoke().

Definition at line 31 of file field_script.h.

syImportActorStartScript

void syImportActorStartScript(ACTOR *actor, const void *script)

Gives an actor a script and starts it from the top (fdActorStartScript, through the overlay's own import row).

Referenced by scEmotePopTilted() and scShamanVillageBlowAwaySand().

Definition at line 34 of file field_script.h.