Skip to Content
The Alchemy Project

struct CHARACTER_DEFINITION

A character's definition: the growth curves of its stats, its element bonus, starting level and starting equipment.

Declared in character.h.

Fields

NameDescription
Uint8reserved [80]Twenty words, 0 in every row.
Sint16hp [GROWTH_POINTS]The growth curves: each stat at levels 0, 20, 40, 60, 80 and 100.
Sint16pp [GROWTH_POINTS]
Uint16attack [GROWTH_POINTS]
Uint16defense [GROWTH_POINTS]
Uint16agility [GROWTH_POINTS]
Uint8luck [GROWTH_POINTS]
Uint8elementBonus [4]The character's own level in each element before any Djinn, in tenths of a level (54 is level 5.4); each Djinni set adds a whole level.
Uint8startingLevelThe level a new game raises the character to.
Uint8paddingBeforeItems
Uint16items [13]The starting items, each added and equipped at a
Uint8paddingAfterItems [2]new game; the low nine bits are the item.

Description

A character's definition: the growth curves of its stats, its element bonus, starting level and starting equipment.

struct CHARACTER_DEFINITION

Referenced by CharacterDefinitionTable, gmCharacterGetDefinition(), gmPartyInitCharacters() and gmUnitGetElementLevels().

Definition at line 20 of file character.h.

Fields in detail

reserved

Uint8 reserved[80]

Twenty words, 0 in every row.

hp

Sint16 hp[GROWTH_POINTS]

The growth curves: each stat at levels 0, 20, 40, 60, 80 and 100.

pp

Sint16 pp[GROWTH_POINTS]

attack

Uint16 attack[GROWTH_POINTS]

defense

Uint16 defense[GROWTH_POINTS]

agility

Uint16 agility[GROWTH_POINTS]

luck

Uint8 luck[GROWTH_POINTS]

elementBonus

Uint8 elementBonus[4]

The character's own level in each element before any Djinn, in tenths of a level (54 is level 5.4); each Djinni set adds a whole level.

startingLevel

Uint8 startingLevel

The level a new game raises the character to.

paddingBeforeItems

Uint8 paddingBeforeItems

items

Uint16 items[13]

The starting items, each added and equipped at a

paddingAfterItems

Uint8 paddingAfterItems[2]

new game; the low nine bits are the item.