File Formats Reference

This document will eventually be a complete reference for all the different GalaxyMage config file formats. Unfortunately, it's currently incomplete... some options aren't yet documented. We're working on it. :) But some documentation is better than no documentation, and you'll probably do just fine if you look at some examples and work from those.

Scenario Files

Sample file

KeyReq.TypeComments
MAPXstringName of the map file to load.
ENDING_CONDITIONSXlist of enumerations For now, this should always be set as follows:
ENDING_CONDITIONS = [Battle.PLAYER_DEFEATED,
                     Battle.DEFEAT_ALL_ENEMIES]
FACTIONSXlist of Faction objectsUndocumented
LIGHTING-Light.Environment objectUndocumented
MUSIC-stringFilename of a music file to play during the battle.

Units

Sample file

KeyReq.TypeComments
CLASSESXlist of listsUndocumented
GENDERXenumerationSet to MALE, FEMALE, or NEUTER.

Classes

Sample file

KeyReq.TypeComments
NAMEXstringThe class name that is displayed to the player.
MOVEXintegerBase movement distance for a unit that has this class.
JUMPXintegerBase jump height for a unit that has this class.
*_BASEXintegerBase stat value for a unit that starts in this class.
*_GROWTHXfloatThe average amount that this stat increases by every time a unit levels in this class.
*_MULTXfloatWill be used for multi-classing; always set to 1.0 for now.
SPRITE_ROOTXstringUsed to determine which sprites to load to display the unit. For example, if SPRITE_ROOT is set to "squire", the default standing pose for the unit will be squire-male-standing-1.png (assuming the unit is male).
ABILITIESXlist of listsUndocumented

Abilities

Sample file

KeyReq.TypeComments
NAMEXstringThe ability name that is displayed to the player.
DESCRIPTIONXstringA description of the ability. Also displayed to the player.
COSTXintegerThe cost of the ability, in SP. Can be set to 0 for abilities that don't require SP.
ABILITY_TYPEXenumerationAlways set this to ACTION for now.
TARGET_TYPEXenumerationSet to one of: HOSTILE, FRIENDLY, FRIENDLY_AND_HOSTILE.
RANGEXRange objectRange of the attack. Valid values are currently undocumented... sorry.
AOEXRange objectArea-of-effect of the attack. Valid values are currently undocumented... sorry.
EFFECTSXlist of Effect objectsUndocumented
SOUND-stringFilename of a sound file that should be played when the ability is used.