Alchemy

object

games/tbs/include/unit/object on GitHub

battle_cue.h

games/tbs/include/unit/object/battle_cue.h

Globals, without a comment: gEncounter_BattleMusic.

colorfx.h

games/tbs/include/unit/object/colorfx.h

Globals, without a comment: gReelGame_SparkCellOffsets, gReelGame_SymbolPrizes, gReelGame_FrameSpriteX, gReelGame_FrameSpriteY.

object.h

games/tbs/include/unit/object/object.h

Structures

EffectDescriptor

struct EffectDescriptor

One of the scene's events (the same 12 bytes as struct SceneEvent).

FieldDeclared as
flagss32 flagsthe low 4 bits are the kind (SceneEventKind; 7 talks to the actor the party stopped)
valueu8 valuethe target (an actor or a tile code)
unused05u8 unused05
conditions16 conditionas for GameFlag_IsConditionActive
results32 resultbelow 0x10000 a message, else a function to call

Used by Field_RunEventAction, Scene_FindActorTalkEvent, Scene_FindEvent, Scene_RunRaisedEvent, Scene_RunTouchOrExit, Scene_TalkToActor.

Line 62

Macros, without a comment: OBJ_LAST, MARKER_MAX, MODE_WORLD_MAP.

Declarations, without a comment: BattleFx_ShrinkObjectAndDestroySlow, BattleFx_ShrinkObjectAndDestroyFast, FieldFx_RunLift, FieldFx_RunCarry.

psynergy_effects.h

games/tbs/include/unit/object/psynergy_effects.h

Structures

SparkleFrame

struct SparkleFrame

One frame of a sparkle: its height offset and tile (fxdata.c).

FieldDeclared as
dys16 dy
tileu16 tile

Used by gFieldFx_SparkleFrames.

Line 37

Enumerations

FieldKind

enum FieldKind

A field Psynergy's effect, as the field kind: the type column of games/tbs/src/game/actions.tsv, named for the abilities that have it. The effect scene keeps it as its animation.

Value=
FIELD_KIND_MOVE1
FIELD_KIND_MIND_READ2
FIELD_KIND_PLY3
FIELD_KIND_FORCE4
FIELD_KIND_DOUSE5
FIELD_KIND_FROST6
FIELD_KIND_LIFT7
FIELD_KIND_REVEAL8
FIELD_KIND_HALT9
FIELD_KIND_CLOAK10
FIELD_KIND_CARRY11
FIELD_KIND_GROWTH12
FIELD_KIND_CATCH13
FIELD_KIND_WHIRLWIND14Whirlwind and Gale.
FIELD_KIND_RETREAT15
FIELD_KIND_AVOID16

Line 16

Macros

DJINN_NO_HOP

#define DJINN_NO_HOP 0x800

Field_RequestDjinnBattle's flag: the Djinni does not hop first.

Used by Event_MeetCorona, Event_MeetHail, Event_MeetVine, Field_RequestDjinnBattle.

Line 76

ACTOR_ACTION_RESET

#define ACTOR_ACTION_RESET 7

Clears child and collision flags, then returns to the idle script.

Line 97

Also, macros without a comment: ACTOR_ACTION_IDLE, ACTOR_ACTION_FOLLOW_LINKED_OBJECT, ACTOR_ACTION_FACE_SELECTED_ACTOR.

Globals, without a comment: gFieldFx_SparkleFrames.

Declarations, without a comment: FieldFx_StepRatioTransition, BattleFx_ScheduleRatioTransition, Event_WaitForZoomTransition, BattleFx_CopyLinkedObjectPosition, BattleFx_SpawnLinked, BattleFx_ConfigureLinkedObject, Field_StartEncounterTransition, ObjectEffect_PrepareContextEffect, ObjectEffect_BeginContextEffect26, ObjectEffect_BeginContextEffect25, ObjectEffect_EndContextEffect, ObjectEffect_RunPendingFlagEvent, Camera_WorldToScreen.

zonedata.h

games/tbs/include/unit/object/zonedata.h

Globals, without a comment: gWorldMap_EncounterRules, gEncounter_AreaEntryTable.

On this page