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; read by no code.
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]Added to ten times the Djinn set in each element to give the character's element levels (gmUnitGetElementLevels).
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() and gmPartyInitCharacters().

Definition at line 24 of file character.h.

Fields in detail

reserved

Uint8 reserved[80]

Twenty words, 0 in every row; read by no code.

hp

Sint16 hp[GROWTH_POINTS]

The growth curves: each stat at levels 0, 20, 40, 60, 80 and 100. A level up adds a twentieth of the step around the new level, with a random part; level 1 adds the first point (gmUnitLevelUp).

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]

Added to ten times the Djinn set in each element to give the character's element levels (gmUnitGetElementLevels).

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.