Skip to Content
The Alchemy Project

src/scene/shared/field_effect_duration_scripts.c

The three lifetimes scFieldEffectSpawn (field_effect_spawn.c) gives its effects through each scene's FieldEffectDurationScripts, which most scenes keep a copy of, as The Broken Seal's do (its shared/field_effect_duration_scripts.c). More…

Included by airs_rock.c, airs_rock_inside.c, anemos_inner_sanctum.c, anemos_inner_sanctum_dullahan.c, ankohl_ruins.c, apojii_islands.c, aqua_rock.c, aqua_rock_inside.c, caverns.c, contigo.c, dehkan_plateau.c, gabomba_statue.c, gaia_rock_inside.c, garoh.c, gondowan_cliffs.c, izumo_ruins.c, jupiter_lighthouse_aerie.c, jupiter_lighthouse_aerie_beacon.c, jupiter_lighthouse_basement.c, jupiter_lighthouse_central_room.c, jupiter_lighthouse_cracked_floor.c, jupiter_lighthouse_entrance.c, jupiter_lighthouse_ground_floor.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_locked_doors.c, jupiter_lighthouse_right_tower_lower.c, jupiter_lighthouse_right_tower_upper.c, jupiter_lighthouse_side_halls.c, jupiter_lighthouse_terraces.c, jupiter_lighthouse_upper_hall.c, kandorean_temple.c, magma_rock.c, magma_rock_inside.c, mars_lighthouse_entrance.c, mars_lighthouse_star_room.c, mars_lighthouse_towers.c, mt_aleph_summit.c, prox.c, sea_of_time.c, settlements.c, shaman_village.c, shrine_of_the_sea_god.c, treasure_isle.c, trial_road.c, tundaria_tower.c and yampi_desert.c.

Variables

NameDescription
FIELD_EFFECT_DURATION_SCRIPT_SECTION Uint32FieldEffectShortScript []
FIELD_EFFECT_DURATION_SCRIPT_SECTION Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
FIELD_EFFECT_DURATION_SCRIPT_SECTION Uint32FieldEffectLongScript []

Description

The three lifetimes scFieldEffectSpawn (field_effect_spawn.c) gives its effects through each scene's FieldEffectDurationScripts, which most scenes keep a copy of, as The Broken Seal's do (its shared/field_effect_duration_scripts.c). An effect lasts 24, 46 or 128 ticks: it waits a tick 22, 44 or 126 times, then twice more, placed at 0, 0, 0 and stopped between the two, and is released. The repeated one-tick wait keeps the count in each script's fourth word, by which scFieldEffectSpawn divides a change of scale so the effect reaches its scale by the end of the repeats.

An includer whose overlay places the scripts after its pictures defines FIELD_EFFECT_DURATION_SCRIPT_SECTION as LATE_DATA first.

Variables in detail

FieldEffectShortScript

FIELD_EFFECT_DURATION_SCRIPT_SECTION Uint32 FieldEffectShortScript[]

Referenced by FieldEffectDurationScripts.

Definition at line 17 of file field_effect_duration_scripts.c.

FieldEffectMediumScript

FIELD_EFFECT_DURATION_SCRIPT_SECTION Uint32 FieldEffectMediumScript[]

Referenced by FieldEffectDurationScripts, scAirsRockBlowGust(), scAirsRockInsideBlowGust(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scGabombaCatacombsGabombaBestowsPower() and scShamanVillageBlowAwaySand().

Definition at line 27 of file field_effect_duration_scripts.c.

FieldEffectLongScript

FIELD_EFFECT_DURATION_SCRIPT_SECTION Uint32 FieldEffectLongScript[]

Referenced by FieldEffectDurationScripts.

Definition at line 37 of file field_effect_duration_scripts.c.