Skip to content

Attribute Reference

Justin Jacobs edited this page Apr 22, 2024 · 160 revisions

Attribute description

Attribute descriptions are in the following format: section.attributename, valuetype, short attribute description

This reference is generated from in-source documentation, so please do not edit it directly.

Valuetype syntax

[val1, ...], Multiple values between a set of square brackets denotes possible types/values for a single field.

"...", Anything between double quotes is a string literal. This is mostly used in conjunction with the above square brackets syntax.

list(...), Lists are a series of values that can repeat on a single line, separated by commas/semicolons. Example of list(int, bool): "1,false;2,true"

repeatable(...), Repeatable keys can be used for multiple lines. An example of this would be an item with multiple "bonus" lines.

List of available valuetypes

bool, a string value of true or false

int, a signed integer value

string, a text string value

float, a floating point number

item_id, specifies an integer item identifer (greater than 0)

power_id, specifies an integer power identifer (greater than 0)

icon_id, specifies an integer icon identifer (greater than or equal to 0)

point, defined as: int, int : X, Y

rectangle, defined as: int, int, int, int : X, Y, Width, Height

filename, a string path to a file relative to the base of the mod directory (e.g. "animations/hero.txt")

color, defined as: int, int, int : Red, Green, Blue

predefined_string, same as a string, but uses a value defined elsewhere

alignment, defined as: ["topleft", "top", "topright", "left", "center", "right", "bottomleft", "bottom", "bottomright", "frame_topleft", "frame_top", "frame_topright", "frame_left", "frame_center", "frame_right", "frame_bottomleft", "frame_bottom", "frame_bottomright"]

direction, defined as: ["N", "NE", "E", "SE", "S", "SW", "W", "NW", int]. If defined as an integer, the value must be between 0-7 inclusive, mapping to ["SW", "W", "NW", "N", "NE", "E", "SE", "S"] respectively.

duration, durations can be specified in seconds and milliseconds with integer suffix s, ms (eg. 20s, 20000ms)

label, defined as: "hidden" or int, int, ["left", "right", "center"], ["top", "center", "bottom"], string : X, Y, Justify, Vertical Align, Font style. The font style can be any style defined in engine/font_settings.txt.

loot, defined as: filename or ["currency", item_id], ["fixed", float], int, int : Item, Drop chance, Min quantity, Max quantity. There is a limitation when defining as part of a list(...): filenames can only be used in the first list element.

version, defined as: a string of three numbers, separated by dots (e.g. "1.2.03")

raw, This is plain text, including line breaks. It is used only for map layer data.

stat_id, a string that can be any of the following: A base stat (e.g. hp or avoidance); A min or max damage type from engine/damage_types.txt (e.g. dmg_melee_min or dmg_ment_max); An elemental resistance from engine/elements.txt. To use an element as a resistance, _resist is appened to the element id (e.g. fire_resist)

level_scaled_value, a string representing a key/value pair that is delimited by a colon (':'). The first half represents the scaling method, and can be one of the following values: base, player_level, item_level, or a primary stat ID. The second half is the value, which is a float. For convenience, it is possible to specify only the value part to define the 'base' value (e.g. price=10 is the same as price=base:10). Level scaling assumes level 1 is included in the base. So a level 5 item with price=item_level:1 would equate to 4, not 5.


AnimationSet

Description of animations in animations/

image | filename, string : Filename, ID | Filename of sprite-sheet image along with an identifier string. The identifier string may be omitted if there is only a single image.

render_size | int, int : Width, Height | Width and height of animation.

render_offset | int, int : X offset, Y offset | Render x/y offset.

blend_mode | ["normal", "add"] | The type of blending used when rendering this animation.

alpha_mod | int | Changes the default alpha of this animation. 255 is fully opaque.

color_mod | color | Changes the default color mod of this animation. "255,255,255" is no color mod.

animation.position | int | Number of frames to the right to use as the first frame. Unpacked animations only.

animation.frames | int | The total number of frames

animation.duration | duration | The duration of the entire animation in 'ms' or 's'.

animation.type | ["play_once", "back_forth", "looped"] | How to loop (or not loop) this animation.

animation.active_frame | [list(int), "all"] | A list of frames marked as "active". Also, "all" can be used to mark all frames as active.

animation.frame | int, int, int, int, int, int, int, int, string : Index, Direction, X, Y, Width, Height, X offset, Y offset, Image ID | A single frame of a compressed animation. The image ID may be omitted, in which case the first available image will be used.


Avatar: Step sounds

Description of items/step_sounds.txt

id | string | An identifier name for a set of step sounds.

step | filename | Filename of a step sound effect.


CombatText

Description of engine/combat_text.txt

duration | duration | Duration of the combat text in 'ms' or 's'.

speed | float | Motion speed of the combat text.

offset | int | The vertical offset for the combat text's starting position.

fade_duration | duration | How long the combat text will spend fading out in 'ms' or 's'.


CursorManager

Description of engine/mouse_cursor.txt

normal | filename | Filename of an image for the normal cursor.

interact | filename | Filename of an image for the object interaction cursor.

talk | filename | Filename of an image for the NPC interaction cursor.

attack | filename | Filename of an image for the cursor when attacking enemies.

lowhp_normal | filename | Filename of an image for the normal cursor when health is low.

lowhp_interact | filename | Filename of an image for the object interaction cursor when health is low.

lowhp_talk | filename | Filename of an image for the NPC interaction cursor when health is low.

lowhp_attack | filename | Filename of an image for the cursor when attacking enemies and health is low.


EnemyGroupManager

Description of enemies in enemies/

level | int | Level of the enemy

rarity | ["common", "uncommon", "rare"] | Enemy rarity

categories | list(predefined_string) | Comma separated list of enemy categories


EngineSettings: Misc

Description of engine/misc.txt

save_hpmp | bool | When saving the game, keep the hero's current HP and MP.

corpse_timeout | duration | Duration that a corpse can exist on the map in 'ms' or 's'. Use 0 to keep corpses indefinitely.

sell_without_vendor | bool | Allows selling items when not at a vendor via CTRL-Click.

aim_assist | int | The pixel offset for powers that use aim_assist.

window_title | string | Sets the text in the window's titlebar.

save_prefix | string | A string that's prepended to save filenames to prevent conflicts between mods.

sound_falloff | int | The maximum radius in tiles that any single sound is audible.

party_exp_percentage | float | The percentage of XP given to allies.

enable_ally_collision | bool | Allows allies to block the player's path.

enable_ally_collision_ai | bool | Allows allies to block the path of other AI creatures.

currency_id | item_id | An item id that will be used as currency.

interact_range | float | Distance where the player can interact with objects and NPCs.

menus_pause | bool | Opening any menu will pause the game.

save_onload | bool | Save the game upon changing maps.

save_onexit | bool | Save the game upon quitting to the title screen or desktop.

save_pos_onexit | bool | If the game gets saved on exiting, store the player's current position instead of the map spawn position.

save_oncutscene | bool | Saves the game when triggering any cutscene via an Event.

save_onstash | [bool, "private", "shared"] | Saves the game when changing the contents of a stash. The default is true (i.e. save when using both stash types). Use caution with the values "private" and false, since not saving shared stashes exposes an item duplication exploit.

save_anywhere | bool | Enables saving the game with a button in the pause menu.

camera_speed | float | Modifies how fast the camera moves to recenter on the player. Larger values mean a slower camera. Default value is 10.

save_buyback | bool | Saves the vendor buyback stock whenever the game is saved.

keep_buyback_on_map_change | bool | If true, NPC buyback stocks will persist when the map changes. If false, save_buyback is disabled.

sfx_unable_to_cast | filename | Sound to play when the player lacks the MP to cast a power.

combat_aborts_npc_interact | bool | If true, the NPC dialog and vendor menus will be closed if the player is attacked.

fogofwar | int | Set the fog of war type. 0-disabled, 1-minimap, 2-tint, 3-overlay.

save_fogofwar | bool | If true, the fog of war layer keeps track of the progress.

mouse_move_deadzone | float, float : Deadzone while moving, Deadzone while not moving | Adds a deadzone circle around the player to prevent erratic behavior when using mouse movement. Ideally, the deadzone when moving should be less than the deadzone when not moving. Defaults are 0.25 and 0.75 respectively.


EngineSettings: Resolution

Description of engine/resolutions.txt

menu_frame_width | int | Width of frame for New Game, Configuration, etc. menus.

menu_frame_height | int | Height of frame for New Game, Configuration, etc. menus.

icon_size | int | Size of icons.

required_width | int | Minimum window/screen resolution width.

required_height | int | Minimum window/screen resolution height.

virtual_height | list(int) | A list of heights (in pixels) that the game can use for its actual rendering area. The virtual height chosen is based on the current window height. The width will be resized to match the window's aspect ratio, and everything will be scaled up to fill the window.

virtual_dpi | float | A target diagonal screen DPI used to determine how much to scale the internal render resolution.

ignore_texture_filter | bool | If true, this ignores the "Texture Filtering" video setting and uses only nearest-neighbor scaling. This is good for games that use pixel art assets.


EngineSettings: Gameplay

Description of engine/gameplay.txt

enable_playgame | bool | Enables the "Play Game" button on the main menu.


EngineSettings: Combat

Description of engine/combat.txt

absorb_percent | float, float : Minimum, Maximum | Limits the percentage of damage that can be absorbed. A max value less than 100 will ensure that the target always takes at least 1 damage from non-elemental attacks.

resist_percent | float, float : Minimum, Maximum | Limits the percentage of damage that can be resisted. A max value less than 100 will ensure that the target always takes at least 1 damage from elemental attacks.

block_percent | float, float : Minimum, Maximum | Limits the percentage of damage that can be absorbed when the target is in the 'block' animation state. A max value less than 100 will ensure that the target always takes at least 1 damage from non-elemental attacks.

avoidance_percent | float, float : Minimum, Maximum | Limits the percentage chance that damage will be avoided.

miss_damage_percent | float, float : Minimum, Maximum | The percentage of damage dealt when a miss occurs.

crit_damage_percent | float, float : Minimum, Maximum | The percentage of damage dealt when a critical hit occurs.

overhit_damage_percent | float, float : Minimum, Maximum | The percentage of damage dealt when an overhit occurs.

resource_round_method | [none, round, floor, ceil] | Rounds the numbers for most combat events that affect HP/MP. For example: damage taken, HP healed, MP consumed. Defaults to 'round'.


EngineSettings: Elements

Description of engine/elements.txt

element.id | string | An identifier for this element. When used as a resistance, "_resist" is appended to the id. For example, if the id is "fire", the resist id is "fire_resist".

element.name | string | The displayed name of this element.


EngineSettings: Equip flags

Description of engine/equip_flags.txt

flag.id | string | An identifier for this equip flag.

flag.name | string | The displayed name of this equip flag.


EngineSettings: Primary Stats

Description of engine/primary_stats.txt

stat.id | string | An identifier for this primary stat.

stat.name | string | The displayed name of this primary stat.


EngineSettings: Classes

Description of engine/classes.txt

name | string | The displayed name of this class.

description | string | A description of this class.

currency | int | The amount of currency this class will start with.

equipment | list(item_id) | A list of items that are equipped when starting with this class.

carried | list(item_id) | A list of items that are placed in the normal inventorty when starting with this class.

primary | predefined_string, int : Primary stat name, Default value | Class starts with this value for the specified stat.

actionbar | list(power_id) | A list of powers to place in the action bar for the class.

powers | list(power_id) | A list of powers that are unlocked when starting this class.

campaign | list(string) | A list of campaign statuses that are set when starting this class.

power_tree | string | Power tree that will be loaded by MenuPowers

hero_options | list(int) | A list of indicies of the hero options this class can use.

default_power_tab | int | Index of the tab to switch to when opening the Powers menu


EngineSettings: Damage Types

Description of engine/damage_types.txt

damage_type.id | string | The identifier used for Item damage_type and Power base_damage.

damage_type.name | string | The displayed name for the value of this damage type.

damage_type.name_min | string | The displayed name for the minimum value of this damage type.

damage_type.name_max | string | The displayed name for the maximum value of this damage type.

damage_type.description | string | The description that will be displayed in the Character menu tooltips.

damage_type.min | string | The identifier used as a Stat type and an Effect type, for the minimum damage of this type.

damage_type.max | string | The identifier used as a Stat type and an Effect type, for the maximum damage of this type.


EngineSettings: Death penalty

Description of engine/death_penalty.txt

enable | bool | Enable the death penalty.

permadeath | bool | Force permadeath for all new saves.

currency | float | Remove this percentage of currency.

xp_total | float | Remove this percentage of total XP.

xp_current_level | float | Remove this percentage of the XP gained since the last level.

random_item | bool | Removes a random item from the player's inventory.


EngineSettings: Tooltips

Description of engine/tooltips.txt

tooltip_offset | int | Offset in pixels from the origin point (usually mouse cursor).

tooltip_width | int | Maximum width of tooltip in pixels.

tooltip_margin | int | Padding between the text and the tooltip borders.

npc_tooltip_margin | int | Vertical offset for NPC labels.

tooltip_background_border | int | The pixel size of the border in "images/menus/tooltips.png".

tooltip_visible_max | int | The maximum number of floating tooltips on screen at once. Defaults to 3.


EngineSettings: Loot

Description of engine/loot.txt

tooltip_margin | int | Vertical offset of the loot tooltip from the loot itself.

autopickup_currency | bool | Enable autopickup for currency

autopickup_range | float | Minimum distance the player must be from loot to trigger autopickup.

currency_name | string | Define the name of currency in game

vendor_ratio_buy | float | Global multiplier for item prices on the "Buy" tab of vendors. Defaults to 1.0.

vendor_ratio_sell | float | Global multiplier for the currency gained when selling an item and the price of items on the "Sell" tab of vendors. Defaults to 0.25.

vendor_ratio_sell_old | float | Global multiplier for item prices on the "Sell" tab of vendors after the player has left the map or quit the game. Falls back to the value of vendor_ratio_sell by default.

sfx_loot | filename | Filename of a sound effect to play for dropping loot.

drop_max | int | The maximum number of random item stacks that can drop at once

drop_radius | int | The distance (in tiles) away from the origin that loot can drop

hide_radius | float | If an entity is within this radius relative to a piece of loot, the label will be hidden unless highlighted with the cursor.

vendor_ratio | int | (Deprecated in v1.12.85; use 'vendor_ratio_sell' instead) Percentage of item buying price to use as selling price. Also used as the buyback price until the player leaves the map.

vendor_ratio_buyback | int | (Deprecated in v1.12.85; use 'vendor_ratio_sell_old' instead) Percentage of item buying price to use as the buying price for previously sold items.

extended_items_offset | item_id | Sets the starting item ID that extended items will be stored at. The default value, 0, will place extended items at the directly after the last item ID defined in items/items.txt.


EngineSettings: Tileset config

Description of engine/tileset_config.txt

tile_size | int, int : Width, Height | The width and height of a tile.

orientation | ["isometric", "orthogonal"] | The perspective of tiles; isometric or orthogonal.


EngineSettings: Widgets

Description of engine/widget_settings.txt

misc.selection_rect_color | color, int : Color, Alpha | Color of the selection rectangle when navigating widgets without a mouse.

misc.selection_rect_corner_size | int | Size of the corners on the selection rectangle shown when navigating widgets. Set to 0 to drawn the entire rectangle instead.

misc.colorblind_highlight_offset | int, int : X offset, Y offset | The pixel offset of the '*' marker on highlighted icons in colorblind mode.

tab.padding | int, int : Left/right padding, Top padding | The pixel padding around tabs. Controls how the left and right edges are drawn.

slot.quantity_label | label | Setting for the slot quantity text.

slot.quantity_color | color | Text color for the slot quantity text.

slot.quantity_bg_color | color, int : Color, Alpha | If a slot has a quantity, a rectangle filled with this color will be placed beneath the text.

slot.hotkey_label | label | Setting for the slot hotkey text.

slot.hotkey_color | color | Text color for the slot hotkey text.

slot.hotkey_bg_color | color, int : Color, Alpha | If a slot has a hotkey, a rectangle filled with this color will be placed beneath the text.

listbox.text_margin | int, int : Left margin, Right margin | The pixel margin to leave on the left and right sides of listbox element text.

horizontal_list.text_width | int | The pixel width of the text area that displays the currently selected item. Default is 150 pixels;

scrollbar.bg_color | color, int : Color, Alpha | The background color for the entire scrollbar.


EngineSettings: XP table

Description of engine/xp_table.txt

level | int, int : Level, XP | The amount of XP required for this level.


EngineSettings: Number Format

Description of engine/number_format.txt

player_statbar | int | Number of digits after the decimal place to display for values in the player's statbars (HP/MP).

enemy_statbar | int | Number of digits after the decimal place to display for values in the enemy HP statbar.

combat_text | int | Number of digits after the decimal place to display for values in combat text.

character_menu | int | Number of digits after the decimal place to display for values in the 'Character' menu.

item_tooltips | int | Number of digits after the decimal place to display for values in item tooltips.

power_tooltips | int | Number of digits after the decimal place to display for values in power tooltips (except durations).

durations | int | Number of digits after the decimal place to display for durations.

death_penalty | int | Number of digits after the decimal place to display for death penalty messages.


EngineSettings: Resource Stats

Description of engine/resource_stats.txt

resource_stat.stat_base | string | The identifier used for the base ("Max") stat.

resource_stat.stat_regen | string | The identifier used for the regeneration stat.

resource_stat.stat_steal | string | The identifier used for steal stat.

resource_stat.stat_resist_steal | string | The identifier used for the resistance to steal stat.

resource_stat.stat_heal | string | The identifier used for heal-over-time effects.

resource_stat.stat_heal_percent | string | The identifier used for percentage-based heal-over-time effects.

resource_stat.menu_filename | filename | The MenuStatBar definition file to use for displaying this stat.

resource_stat.text_base | string | The printed name of the base ("Max") stat as seen in-game.

resource_stat.text_base_desc | string | The printed description of the base ("Max") stat as seen in-game.

resource_stat.text_regen | string | The name of the regeneration stat as seen in-game.

resource_stat.text_regen_desc | string | The description of the regeneration stat as seen in-game.

resource_stat.text_steal | string | The name of the steal stat as seen in-game.

resource_stat.text_steal_desc | string | The description of the steal stat as seen in-game.

resource_stat.text_resist_steal | string | The name of the resistance to steal stat as seen in-game.

resource_stat.text_resist_steal_desc | string | The description of the resistance to steal stat as seen in-game.

resource_stat.text_combat_heal | string | The name of the stat in combat text as seen during heal-over-time.

resource_stat.text_log_restore | string | The text in the player's log when this stat is restored via EventManager's 'restore' property.

resource_stat.text_log_low | string | The text in the player's log when trying to use a Power that requires more than the available amount of this resource.

resource_stat.text_tooltip_heal | string | The text in Power tooltips used for heal-over-time Effects.

resource_stat.text_tooltip_cost | string | The text in Power tooltips that describes the casting cost of this resource.


EventManager

Description of events in maps/ and npcs/

event.type | string | (IGNORED BY ENGINE) The "type" field, as used by Tiled and other mapping tools.

event.activate | ["on_trigger", "on_interact", "on_load", "on_leave", "on_mapexit", "on_clear", "static"] | Set the state in which the event will be activated (map events only). on_trigger = the player is standing in the event area or the player interacts with the hotspot. on_interact = the player ineracts with the hotspot. on_mapexit = as the player leaves the map. on_leave = as the player steps outside of an event area they were previously inside of. on_load = as the player enters a map. on_clear = all of the enemies on a map have been defeated. static = constantly, every frame.

event.location | rectangle | Defines the location area for the event.

event.hotspot | ["location", rectangle] | Event uses location as hotspot or defined by rect.

event.cooldown | duration | Duration for event cooldown in 'ms' or 's'.

event.delay | duration | Event will execute after a specified duration.

event.reachable_from | rectangle | If the hero is inside this rectangle, they can activate the event.

event.tooltip | string | Tooltip for event

event.power_path | int, int, ["hero", point] : Source X, Source Y, Destination | Path that an event power will take.

event.power_damage | float, float : Min, Max | Range of power damage

event.intermap | filename, int, int : Map file, X, Y | Jump to specific map at location specified.

event.intermap_random | filename | Pick a random map from a map list file and teleport to it.

event.intramap | int, int : X, Y | Jump to specific position within current map.

event.mapmod | list(predefined_string, int, int, int) : Layer, X, Y, Tile ID | Modify map tiles

event.soundfx | filename, int, int, bool : Sound file, X, Y, loop | Filename of a sound to play. Optionally, it can be played at a specific location and/or looped.

event.loot | list(loot) | Add loot to the event.

event.loot_count | int, int : Min, Max | Sets the minimum (and optionally, the maximum) amount of loot this event can drop. Overrides the global drop_max setting.

event.msg | string | Adds a message to be displayed for the event.

event.shakycam | duration | Makes the camera shake for this duration in 'ms' or 's'.

event.requires_status | list(string) | Event requires list of statuses

event.requires_not_status | list(string) | Event requires not list of statuses

event.requires_level | int | Event requires hero level

event.requires_not_level | int | Event requires not hero level

event.requires_currency | int | Event requires atleast this much currency

event.requires_not_currency | int | Event requires no more than this much currency

event.requires_item | list(item_id) | Event requires specific item (not equipped). Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

event.requires_not_item | list(item_id) | Event requires not having a specific item (not equipped). Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

event.requires_class | predefined_string | Event requires this base class

event.requires_not_class | predefined_string | Event requires not this base class

event.set_status | list(string) | Sets specified statuses

event.unset_status | list(string) | Unsets specified statuses

event.remove_currency | int | Removes specified amount of currency from hero inventory

event.remove_item | list(item_id) | Removes specified item from hero inventory. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

event.reward_xp | int | Reward hero with specified amount of experience points.

event.reward_currency | int | Reward hero with specified amount of currency.

event.reward_item | (list(item_id) | Reward hero with a specified item. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer. To maintain backwards compatibility, the quantity must be defined for at least the first item in the list in order to use this syntax.

event.reward_item | item_id, int : Item, Quantity | Reward hero with y number of item x. NOTE: This syntax is maintained for backwards compatibility. It is recommended to use the above syntax instead.

event.reward_loot | list(loot) | Reward hero with random loot.

event.reward_loot_count | int, int : Min, Max | Sets the minimum (and optionally, the maximum) amount of loot that reward_loot can give the hero. Defaults to 1.

event.restore | list(["hp", "mp", "hpmp", "status", "all", predefined_string]) | Restore the hero's HP, MP, and/or status. Resource stat base IDs are also valid.

event.power | power_id | Specify power coupled with event.

event.spawn | list(predefined_string, int, int) : Enemy category, X, Y | Spawn an enemy from this category at location

event.stash | bool | If true, the Stash menu if opened.

event.npc | filename | Filename of an NPC to start dialog with.

event.music | filename | Change background music to specified file.

event.cutscene | filename | Show specified cutscene by filename.

event.repeat | bool | If true, the event to be triggered again.

event.save_game | bool | If true, the game is saved when the event is triggered. The respawn position is set to where the player is standing.

event.book | filename | Opens a book by filename.

event.script | filename | Loads and executes an Event from a file.

event.chance_exec | float | Percentage chance that this event will execute when triggered.

event.respec | ["xp", "stats", "powers"], bool : Respec mode, Ignore class defaults | Resets various aspects of the character's progression. Resetting "xp" also resets "stats". Resetting "stats" also resets "powers".

event.show_on_minimap | bool | If true, this event will be shown on the minimap if it is the appropriate type (e.g. an intermap teleport).

event.parallax_layers | filename | Filename of a parallax layers definition to load.

event.random_status | repeatable(["append", "clear", "roll", "set", "unset"], list(string)) : Action, Statuses (append action only) | Used to randomly pick a status from a list, and then set or unset it. Statuses are added to the list with the "append" action. The "roll" action will randomly pick from the list and set it as the current random status. The "set" and "unset" commands will function like set_status and unset_status, with the parameter being the current random status. Lastly, the "clear" action will empty the pool of random statuses. It is recommended to clear the list before you use it, as well as after you're done to prevent unintended side-effects.


EventManager: Random Map List

Description of maps/random/lists/

map | filename, int, int : Map file, X, Y | Adds a map and optional spawn position to the random list of maps to teleport to.


FogOfWar

Description of engine/fow_mask.txt

header.radius | int | Fog of war mask radius, also how far the player can see.

header.bits_per_tile | int | How may bits(subdivisions) a tile is made of. In powers of two. Example: if it is set to 4 then the tile will be subdivided in 4, let's say North, South, East, West.

header.color_dark | color | Tint color for dark tiles. Used by fog of war type 2-tint.

header.color_fog | color | Tint color for fog tiles. Used by fog of war type 2-tint.

header.tileset_dark | filename | Filename of a tileset definition to use for unvisited areas. Used by fog of war type 3-overlay.

header.tileset_fog | filename | Filename of a tileset definition to use for foggy areas. Used by fog of war type 3-overlay.

bits.bit | string, int : Name, Value | A fog of war bit definition can have any name. Better to keep it simple and short. There must be a bit definition that has the value 0. Example: If we have 4 bits per tile then we define: bit=BIT_0,0, bit=BIT_N,1, bit=BIT_W,2, bit=BIT_S,3, bit=BIT_E,4.

tiles.tile | string, repeatable(predefined_string) : Name, Bit definitions | A fog of war tile definition can have any name. Better to keep it simple and short. There must be a tile definition that contains no bits and a tile definition that contains all bits. Example: A tile containing North and West bits will be tile=NW,BIT_N,BIT_W.

mask.data | raw | The mask definition is a matrix (2*radius+1 by 2*radius+1) that contains fog of war tile definitions. All the margins of the matrix must be the tile definition that contains all bits.


FontEngine: Font colors

Description of engine/font_colors.txt

menu_normal | color | Basic menu text color. Recommended: white.

menu_bonus | color | Positive menu text color. Recommended: green.

menu_penalty | color | Negative menu text color. Recommended: red.

widget_normal | color | Basic widget text color. Recommended: white.

widget_disabled | color | Disabled widget text color. Recommended: grey.

combat_givedmg | color | Enemy damage text color. Recommended: white.

combat_takedmg | color | Player damage text color. Recommended: red.

combat_crit | color | Enemy critical damage text color. Recommended: yellow.

combat_buff | color | Healing/buff text color. Recommended: green.

combat_miss | color | Missed attack text color. Recommended: grey.

requirements_not_met | color | Unmet requirements text color. Recommended: red.

item_bonus | color | Item bonus text color. Recommended: green.

item_penalty | color | Item penalty text color. Recommended: red.

item_flavor | color | Item flavor text color. Recommended: grey.

hardcore_color_name | color | Permadeath save slot player name color. Recommended: red.


Cutscene

Description of cutscenes in cutscenes/

caption_margins | float, float : X margin, Y margin | Percentage-based margins for the caption text based on screen size

caption_background | color, int : Color, Alpha | Color (RGBA) of the caption area background.

vscroll_speed | float | The speed at which elements will scroll in 'vscroll' scenes. Defaults to 0.5.

menu_backgrounds | bool | This cutscene will use a random fullscreen background image, like the title screen does

music | filename | The music file that will play during this cutscene.

scene.caption | string | A caption that will be shown.

scene.image | filename, int : Filename, Scaling type | Filename of an image that will be shown. The scaling type is a value between 0-2, corresponding to: none, fit height, fit screen.

scene.pause | duration | Pause before next component in 'ms' or 's'. A value of '-1' may be used to pause indefinitely.

scene.soundfx | filename | Filename of a sound that will be played

vscroll.text | string | A single, non-wrapping line of text.

vscroll.image | filename | Filename of an image that will be shown.

vscroll.separator | int | Places an invisible gap of a specified height between elements.


GameStateLoad

Description of menus/gameload.txt

button_new | int, int, alignment : X, Y, Alignment | Position of the "New Game" button.

button_load | int, int, alignment : X, Y, Alignment | Position of the "Load Game" button.

button_delete | int, int, alignment : X, Y, Alignment | Position of the "Delete Save" button.

button_exit | int, int, alignment : X, Y, Alignment | Position of the "Exit to Title" button.

portrait | rectangle | Position and dimensions of the portrait image.

gameslot | rectangle | Position and dimensions of the first game slot.

name | label | The label for the hero's name. Position is relative to game slot position.

level | label | The label for the hero's level. Position is relative to game slot position.

class | label | The label for the hero's class. Position is relative to game slot position.

map | label | The label for the hero's current location. Position is relative to game slot position.

slot_number | label | The label for the save slot index. Position is relative to game slot position.

loading_label | label | The label for the "Entering game world..."/"Loading saved game..." text.

sprite | point | Position for the avatar preview image in each slot

visible_slots | int | The maximum numbers of visible save slots.

text_trim_boundary | int | The position of the right-side boundary where text will be shortened with an ellipsis. Position is relative to game slot position.


GameStateNew: Layout

Description of menus/gamenew.txt

button_prev | int, int, alignment : X, Y, Alignment | Position of button to choose the previous preset hero.

button_next | int, int, alignment : X, Y, Alignment | Position of button to choose the next preset hero.

button_exit | int, int, alignment : X, Y, Alignment | Position of "Cancel" button.

button_create | int, int, alignment : X, Y, Alignment | Position of "Create" button.

button_permadeath | int, int, alignment : X, Y, Alignment | Position of checkbox for toggling permadeath.

button_randomize | int, int, alignment : X, Y, Alignment | Position of the "Randomize" button.

name_input | int, int, alignment : X, Y, Alignment | Position of the hero name textbox.

portrait_label | label | Label for the "Choose a Portrait" text.

name_label | label | Label for the "Choose a Name" text.

permadeath_label | label | Label for the "Permadeath?" text.

classlist_label | label | Label for the "Choose a Class" text.

classlist_height | int | Number of visible rows for the class list widget.

portrait | rectangle | Position and dimensions of the portrait image.

class_list | int, int, alignment : X, Y, Alignment | Position of the class list.

show_classlist | bool | Allows hiding the class list.

show_randomize | bool | Toggles the visibility of the "Randomize" button.

random_option | bool | Initially picks a random character option (aka portrait/name).

random_class | bool | Initially picks a random character class.


GameStateNew: Hero options

Description of engine/hero_options.txt

option | int, string, string, filename, string : Index, Base, Head, Portrait, Name | A default body, head, portrait, and name for a hero.


GameStatePlay: Titles

Description of engine/titles.txt

title.title | string | The displayed title.

title.level | int | Requires level.

title.power | power_id | Requires power.

title.requires_status | list(string) | Requires status.

title.requires_not_status | list(string) | Requires not status.

title.primary_stat | predefined_string, predefined_string : Primary stat, Lesser primary stat | Required primary stat(s). The lesser stat is optional.


GameStateTitle

Description of menus/gametitle.txt

logo | filename, int, int, alignment : Image file, X, Y, Alignment | Filename and position of the main logo image.

play_pos | int, int, alignment : X, Y, Alignment | Position of the "Play Game" button.

config_pos | int, int, alignment : X, Y, Alignment | Position of the "Configuration" button.

credits_pos | int, int, alignment : X, Y, Alignment | Position of the "Credits" button.

exit_pos | int, int, alignment : X, Y, Alignment | Position of the "Exit Game" button.


GameSwitcher: Default music

Description of engine/default_music.txt

music | filename | Filename of a music file to play during game states that don't already have music.


GameSwitcher: Background images

Description of engine/menu_backgrounds.txt

background | repeatable(filename) | Filename of a background image to be added to the pool of random menu backgrounds


GameSwitcher: FPS counter

Description of menus/fps.txt

position | int, int, alignment : X, Y, Alignment | Position of the fps counter.

color | color | Color of the fps counter text.


IconManager

Description of engine/icons.txt

icon_set | repeatable(icon_id, filename) : First ID, Image file | Defines an icon graphics file to load, as well as the index of the first icon.

text_offset | point | A pixel offset from the top-left to place item quantity text on icons.


InputState: Default Keybindings

Description of engine/default_keybindings.txt. Use a bind value of '-1' to clear all bindings for an action. Type may be any of the follwing: 0 = Keyboard, 1 = Mouse, 2 = Gamepad button, 3 = Gamepad Axis. Human-readable key and gamepad mapping names may be used by prefixing the bind with "SDL:" (e.g. "SDL:space" or "SDL:leftstick"). If using the "SDL:" prefix for a gamepad axis, add ":-" to the end of the bind to get the negative direction (e.g. "SDL:leftx:-").

default.cancel | [int, string], int : Bind, Type | Bindings for "Cancel".

default.accept | [int, string], int : Bind, Type | Bindings for "Accept".

default.up | [int, string], int : Bind, Type | Bindings for "Up".

default.down | [int, string], int : Bind, Type | Bindings for "Down".

default.left | [int, string], int : Bind, Type | Bindings for "Left".

default.right | [int, string], int : Bind, Type | Bindings for "Right".

default.bar1 | [int, string], int : Bind, Type | Bindings for "Bar1".

default.bar2 | [int, string], int : Bind, Type | Bindings for "Bar2".

default.bar3 | [int, string], int : Bind, Type | Bindings for "Bar3".

default.bar4 | [int, string], int : Bind, Type | Bindings for "Bar4".

default.bar5 | [int, string], int : Bind, Type | Bindings for "Bar5".

default.bar6 | [int, string], int : Bind, Type | Bindings for "Bar6".

default.bar7 | [int, string], int : Bind, Type | Bindings for "Bar7".

default.bar8 | [int, string], int : Bind, Type | Bindings for "Bar8".

default.bar9 | [int, string], int : Bind, Type | Bindings for "Bar9".

default.bar0 | [int, string], int : Bind, Type | Bindings for "Bar0".

default.main1 | [int, string], int : Bind, Type | Bindings for "Main1".

default.main2 | [int, string], int : Bind, Type | Bindings for "Main2".

default.character | [int, string], int : Bind, Type | Bindings for "Character".

default.inventory | [int, string], int : Bind, Type | Bindings for "Inventory".

default.powers | [int, string], int : Bind, Type | Bindings for "Powers".

default.log | [int, string], int : Bind, Type | Bindings for "Log".

default.equipment_swap | [int, string], int : Bind, Type | Bindings for "Next Equip Set".

default.equipment_swap_prev | [int, string], int : Bind, Type | Bindings for "Previous Equip Set".

default.minimap_mode | [int, string], int : Bind, Type | Bindings for "Mini-map Mode".

default.loot_tooltip_mode | [int, string], int : Bind, Type | Bindings for "Loot Tooltip Mode".

default.actionbar | [int, string], int : Bind, Type | Bindings for "Action Bar".

default.menu_page_next | [int, string], int : Bind, Type | Bindings for "Menu: Next Page".

default.menu_page_prev | [int, string], int : Bind, Type | Bindings for "Menu: Previous Page".

default.menu_activate | [int, string], int : Bind, Type | Bindings for "Menu: Activate".

default.pause | [int, string], int : Bind, Type | Bindings for "Pause Game".

default.aim_up | [int, string], int : Bind, Type | Bindings for "Aim Up".

default.aim_down | [int, string], int : Bind, Type | Bindings for "Aim Down".

default.aim_left | [int, string], int : Bind, Type | Bindings for "Aim Left".

default.aim_right | [int, string], int : Bind, Type | Bindings for "Aim Right".

default.developer_menu | [int, string], int : Bind, Type | Bindings for "Developer Menu".

default.developer_cmd_1 | [int, string], int : Bind, Type | Bindings for "Developer Command 1".

default.developer_cmd_2 | [int, string], int : Bind, Type | Bindings for "Developer Command 2".

default.developer_cmd_3 | [int, string], int : Bind, Type | Bindings for "Developer Command 3".


ItemManager: Items

Description of Items in items/items.txt.

id | item_id | An uniq id of the item used as reference from other classes.

name | string | Item name displayed on long and short tooltips.

flavor | string | A description of the item.

level | int | The item's level.

icon | icon_id | An id for the icon to display for this item.

book | filename | A book file to open when this item is activated.

book_is_readable | bool | If true, "read" is displayed in the tooltip instead of "use". Defaults to true.

quality | predefined_string | Item quality matching an id in items/qualities.txt

item_type | predefined_string | Equipment slot matching an id in items/types.txt

equip_flags | list(predefined_string) | A comma separated list of flags to set when this item is equipped. See engine/equip_flags.txt.

dmg | predefined_string, float, float : Damage type, Min, Max | Defines the item's base damage type and range. Max may be ommitted and will default to Min.

abs | float, float : Min, Max | Defines the item absorb value, if only min is specified the absorb value is fixed.

requires_level | list(level_scaled_value) | The hero's level must match or exceed this value in order to equip this item.

requires_stat | repeatable(predefined_string, list(level_scaled_value)) : Primary stat name, Value | Make item require specific stat level ex. requires_stat=physical,6 will require hero to have level 6 in physical stats

requires_class | predefined_string | The hero's base class (engine/classes.txt) must match for this item to be equipped.

bonus | repeatable(stat_id, list(level_scaled_value)) : Stat ID, Value | Adds a bonus to the item by stat ID, example: bonus=hp,50

bonus_power_level | repeatable(power_id, list(level_scaled_value)) : Base power, Bonus levels | Grants bonus levels to a given base power.

soundfx | filename | Sound effect filename to play for the specific item.

gfx | filename | Filename of an animation set to display when the item is equipped.

loot_animation | repeatable(filename, int, int) : Loot image, Min quantity, Max quantity | Specifies the loot animation file for the item. The max quantity, or both quantity values, may be omitted.

power | power_id | Adds a specific power to the item which makes it usable as a power and can be placed in action bar.

replace_power | repeatable(power_id, power_id) : Old power, New power | Replaces the old power id with the new power id in the action bar when equipped.

power_desc | string | A string describing the additional power.

price | list(level_scaled_value) | The amount of currency the item costs, if set to 0 the item cannot be sold.

price_per_level | int | (Deprecated in v1.14.17; Use 'price=player_level:{value}' instead). Additional price for each player level above 1

price_sell | list(level_scaled_value) | The amount of currency the item is sold for, if set to 0 the sell prices is prices*vendor_ratio.

max_quantity | int | Max item count per stack.

pickup_status | string | Set a campaign status when item is picked up, this is used for quest items.

stepfx | predefined_string | Sound effect when walking, this applies only to armors.

disable_slots | list(predefined_string) | A comma separated list of equip slot types to disable when this item is equipped.

quest_item | bool | If true, this item is a quest item and can not be dropped or sold. The item also can't be stashed, unless the no_stash property is set to something other than "all".

no_stash | ["ignore", "private", "shared", "all"] | If not set to 'ignore', this item will not be able to be put in the corresponding stash.

script | filename | Loads and executes a script file when the item is activated from the player's inventory.

loot_drops_max | int | The number of instances of this item that can drop during a single loot event.

randomizer_def | filename | Randomizer definition file for this item. See "ItemManager: Randomizer Definition".


ItemManager: Types

Definition of a item types, items/types.txt...

type.id | string | Item type identifier.

type.name | string | Item type name.


ItemManager: Qualities

Definition of a item qualities, items/types.txt...

quality.id | string | Item quality identifier.

quality.name | string | Item quality name.

quality.color | color | Item quality color.

quality.overlay_icon | icon_id | The icon to be used as an overlay.


ItemManager: Sets

Definition of a item sets, items/sets.txt...

id | int | A uniq id for the item set.

name | string | Name of the item set.

items | list(item_id) | List of item id's that is part of the set.

color | color | A specific of color for the set.

bonus | repeatable(int, stat_id, list(level_scaled_value)) : Required set item count, Stat ID, Value | Bonus to append to items in the set.

bonus_power_level | repeatable(int, power_id, list(level_scaled_value)) : Required set item count, Base power, Bonus levels | Grants bonus levels to a given base power.


ItemManager: Randomizer Definition

Description of item randomizer configuration in items/random/...

option.chance | float | Percent chance that this option will be picked when generating an item.

option.quality | predefined_string | The quality ID that will be assigned to the item.

option.bonus_count | int, int : Minimum count, Maximum count | The range used to determine the number of bonuses for the item.

option.level_src | ["base", "hero"] | Determines how option.level_range will be applied. If "base", the source item's level will be used. If "hero", the player's current level will be used.

option.level_range | int, int : Minimum level, Maximum level | The range used to determine the item level. The resulting item level is relative, depending on the value of option.level_src.

bonuses.bonus | repeatable(stat_id, list(level_scaled_value)) : Stat ID, Value | Adds a bonus to the item by stat ID. The level_scaled_value here is extended for randomization to also support the maximum value and the step. These additional values are delimited by colons. Example: bonus=hp,base:50:100:1

bonuses.bonus_power_level | repeatable(power_id, list(level_scaled_value)) : Base power, Bonus levels | Grants bonus levels to a given base power. The level_scaled_value here is extended for randomization to also support the maximum value and the step. These additional values are delimited by colons. Example: bonus=1,base:1:5:1


LootManger

Description of loot tables in loot/

loot | loot | Compact form of defining a loot table entry.

status_loot | string, loot : Required status, Loot definition | Compact form of defining a loot table entry with a required campaign status.

loot.id | [item_id, "currency"] | The ID of the loot item. "currency" will use the item ID defined as currency_id in engine/misc.txt.

loot.chance | [float, "fixed"] | The chance that the item will drop. "fixed" will drop the item no matter what before the random items are picked. This is different than setting a chance of 100, in which the item could be replaced with another random item.

loot.quantity | int, int : Min quantity, Max quantity (optional) | The quantity of item in the dropped loot stack.

loot.requires_status | string | A single campaign status that is required for the item to be able to drop.


Map

Description of maps/

title | string | Title of map

width | int | Width of map

height | int | Height of map

tileset | filename | Filename of a tileset definition to use for map

music | filename | Filename of background music to use for map

hero_pos | point | The player will spawn in this location if no point was previously given.

parallax_layers | filename | Filename of a parallax layers definition.

background_color | color, int : Color, alpha | Background color for the map.

fogofwar | int | Set the fog of war type. 0-disabled, 1-minimap, 2-tint, 3-overlay. Overrides engine settings.

save_fogofwar | bool | If true, the fog of war layer keeps track of the progress. Overrides engine settings.

tilewidth | int | Inherited from Tiled map file. Unused by engine.

tileheight | int | Inherited from Tiled map file. Unused by engine.

layer.type | string | Map layer type.

layer.format | string | Format for map layer, must be 'dec'

layer.data | raw | Raw map layer data

enemygroup.type | string | (IGNORED BY ENGINE) The "type" field, as used by Tiled and other mapping tools.

enemygroup.category | predefined_string | The category of enemies that will spawn in this group.

enemygroup.level | int, int : Min, Max | Defines the level range of enemies in group. If only one number is given, it's the exact level.

enemygroup.location | rectangle | Location area for enemygroup

enemygroup.number | int, int : Min, Max | Defines the range of enemies in group. If only one number is given, it's the exact amount.

enemygroup.chance | float | Initial percentage chance that this enemy group will be able to spawn enemies.

enemygroup.direction | direction | Direction that enemies will initially face.

enemygroup.waypoints | list(point) | Enemy waypoints; single enemy only; negates wander_radius

enemygroup.wander_radius | int | The radius (in tiles) that an enemy will wander around randomly; negates waypoints

enemygroup.requires_status | list(string) | Statuses required to be set for enemy group to load

enemygroup.requires_not_status | list(string) | Statuses required to be unset for enemy group to load

enemygroup.requires_level | int | Player level must be equal or greater to load enemy group

enemygroup.requires_not_level | int | Player level must be lesser to load enemy group

enemygroup.requires_currency | int | Player currency must be equal or greater to load enemy group

enemygroup.requires_not_currency | int | Player currency must be lesser to load enemy group

enemygroup.requires_item | list(item_id) | Item required to exist in player inventory to load enemy group. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

enemygroup.requires_not_item | list(item_id) | Item required to not exist in player inventory to load enemy group. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

enemygroup.requires_class | predefined_string | Player base class required to load enemy group

enemygroup.requires_not_class | predefined_string | Player base class not required to load enemy group

enemygroup.invincible_requires_status | list(string) | Enemies in this group are invincible to hero attacks when these statuses are set.

enemygroup.invincible_requires_not_status | list(string) | Enemies in this group are invincible to hero attacks when these statuses are not set.

enemygroup.spawn_level | ["default", "fixed", "level", "stat"], int, int, predefined_string : Mode, Enemy Level, Ratio, Primary stat | The level of spawned creatures. The need for the last three parameters depends on the mode being used. The "default" mode will just use the entity's normal level and doesn't require any additional parameters. The "fixed" mode only requires the enemy level as a parameter. The "stat" and "level" modes also require the ratio as a parameter. The ratio adjusts the scaling of the entity level. For example, spawn_level=stat,1,2,physical will set the spawned entity level to 1/2 the player's Physical stat. Only the "stat" mode requires the last parameter, which is simply the ID of the primary stat that should be used for scaling.

npc.type | string | (IGNORED BY ENGINE) The "type" field, as used by Tiled and other mapping tools.

npc.filename | string | Filename of an NPC definition.

npc.location | point | Location of NPC

npc.requires_status | list(string) | Statuses required to be set for NPC load

npc.requires_not_status | list(string) | Statuses required to be unset for NPC load

npc.requires_level | int | Player level must be equal or greater to load NPC

npc.requires_not_level | int | Player level must be lesser to load NPC

npc.requires_currency | int | Player currency must be equal or greater to load NPC

npc.requires_not_currency | int | Player currency must be lesser to load NPC

npc.requires_item | list(item_id) | Item required to exist in player inventory to load NPC. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

npc.requires_not_item | list(item_id) | Item required to not exist in player inventory to load NPC. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

npc.requires_class | predefined_string | Player base class required to load NPC

npc.requires_not_class | predefined_string | Player base class not required to load NPC

npc.direction | direction | Direction that NPC will initially face.

npc.waypoints | list(point) | NPC waypoints; negates wander_radius

npc.wander_radius | int | The radius (in tiles) that an NPC will wander around randomly; negates waypoints


MapParallax

Description of maps/parallax/

layer.image | filename | Image file to use as a scrolling background.

layer.speed | float | Speed at which the background will move relative to the camera.

layer.fixed_speed | float, float : X speed, Y speed | Speed at which the background will move independent of the camera movement.

layer.map_layer | string | The tile map layer that this parallax layer will be rendered on top of.


MenuActionBar

Description of menus/actionbar.txt

slot | repeatable(int, int, int, bool) : Index, X, Y, Locked | Index (max 10) and position for power slot. If a slot is locked, its Power can't be changed by the player.

slot_M1 | point, bool : Position, Locked | Position for the primary action slot. If the slot is locked, its Power can't be changed by the player.

slot_M2 | point, bool : Position Locked | Position for the secondary action slot. If the slot is locked, its Power can't be changed by the player.

char_menu | point | Position for the Character menu button.

inv_menu | point | Position for the Inventory menu button.

powers_menu | point | Position for the Powers menu button.

log_menu | point | Position for the Log menu button.

tooltip_length | ["short", "long_menu", "long_all"] | The length of power descriptions in tooltips. 'short' will display only the power name. 'long_menu' (the default setting) will display full tooltips, but only for powers that are in the Powers menu. 'long_all' will display full tooltips for all powers.


MenuActiveEffects

Description of menus/activeeffects.txt

vertical | bool | True is vertical orientation; False is horizontal orientation.


MenuBook

Description of books in books/

close | point | Position of the close button.

image.image_pos | point | Position of the image.

image.image | filename | Filename of the image.

image.image_icon | icon_id | Use an icon as the image instead of a file.

image.requires_status | list(string) | Image requires these campaign statuses in order to be visible.

image.requires_not_status | list(string) | Image must not have any of these campaign statuses in order to be visible.

text.text_pos | int, int, int, ["left", "center", "right"] : X, Y, Width, Text justify | Position of the text.

text.text_font | color, string : Font color, Font style | Font color and style.

text.text_shadow | bool | If true, the text will have a black shadow like the text labels in various menus.

text.text | string | The text to be displayed.

text.requires_status | list(string) | Text requires these campaign statuses in order to be visible.

text.requires_not_status | list(string) | Text must not have any of these campaign statuses in order to be visible.

button.button_pos | point | Position of the button.

button.button_image | filename | Image file to use for this button. Default is the normal menu button.

button.text | string | Optional text label for the button.

button.${EVENT_COMPONENT} | Event components to execute when the button is clicked. See the definitions in EventManager for possible attributes. |

event_open.${EVENT_COMPONENT} | Event components to execute when the book is opened. See the definitions in EventManager for possible attributes. |

event_close.${EVENT_COMPONENT} | Event components to execute when the book is closed. See the definitions in EventManager for possible attributes. |


MenuCharacter

Description of menus/character.txt

close | point | Position of the close button.

label_title | label | Position of the "Character" text.

upgrade_primary | predefined_string, point : Primary stat name, Button position | Position of the button used to add a stat point to this primary stat.

statlist | point | Position of the scrollbox containing non-primary stats.

statlist_rows | int | The height of the statlist in rows.

statlist_scrollbar_offset | int | Right margin in pixels for the statlist's scrollbar.

label_name | label | Position of the "Name" text.

label_level | label | Position of the "Level" text.

label_primary | predefined_string, label : Primary stat name, Text positioning | Position of the text label for this primary stat.

name | rectangle | Position of the player's name and dimensions of the tooltip hotspot.

level | rectangle | Position of the player's level and dimensions of the tooltip hotspot.

primary | predefined_string, rectangle : Primary stat name, Hotspot position | Position of this primary stat value display and dimensions of its tooltip hotspot.

unspent | label | Position of the label showing the number of unspent stat points.

show_resists | bool | Hide the elemental "Resistance" stats in the statlist if set to false.

show_stat | stat_id, bool : Stat ID, Visible | Hide the matching stat ID in the statlist if set to false.

name_max_width | int | The maxiumum width, in pixels, that the character name can occupy until it is abbreviated.


MenuConfig

Description of menus/config.txt

button_ok | int, int, alignment : X, Y, Alignment | Position of the "OK" button. Not used in the pause menu.

button_defaults | int, int, alignment : X, Y, Alignment | Position of the "Defaults" button. Not used in the pause menu.

button_cancel | int, int, alignment : X, Y, Alignment | Position of the "Cancel" button. Not used in the pause menu.

listbox_scrollbar_offset | int | Horizontal offset from the right of listboxes (mods, languages, etc) to place the scrollbar.

frame_offset | point | Offset for all the widgets contained under each tab.

tab_offset | point | Offset for the row of tabs.

activemods | int, int, int, int : Label X, Label Y, Widget X, Widget Y | Position of the "Active Mods" list box relative to the frame.

activemods_height | int | Number of visible rows for the "Active Mods" list box.

inactivemods | int, int, int, int : Label X, Label Y, Widget X, Widget Y | Position of the "Available Mods" list box relative to the frame.

inactivemods_height | int | Number of visible rows for the "Available Mods" list box.

activemods_shiftup | point | Position of the button to shift mods up in "Active Mods" relative to the frame.

activemods_shiftdown | point | Position of the button to shift mods down in "Active Mods" relative to the frame.

activemods_deactivate | point | Position of the "Disable" button relative to the frame.

inactivemods_activate | point | Position of the "Enable" button relative to the frame.

scrollpane | rectangle | Position of the keybinding scrollbox relative to the frame.

scrollpane_padding | int, int : Horizontal padding, Vertical padding | Pixel padding for each item listed in a tab's scroll box.

scrollpane_separator_color | color | Color of the separator line in between scroll box items.

keybinds_bg_color | color, int : Color, Alpha | Background color and alpha for the keybindings scrollbox.


MenuConfirm

Description of menus/confirm.txt

close | point | Position of the close button.

label_title | label | Position of the title text.

action_list | point | Position of the action selector widget.


Menu

Description of menus in menus/

pos | rectangle | Menu position and dimensions

align | alignment | Position relative to screen edges

soundfx_open | filename | Filename of a sound to play when opening this menu.

soundfx_close | filename | Filename of a sound to play when closing this menu.

background | filename | Filename of the background image for this menu.


MenuDevConsole

Description of menus/devconsole.txt

close | point | Position of the close button.

label_title | label | Position of the "Developer Console" label.

confirm | point | Position of the "Execute" button.

input | point | Position of the command entry widget.

history | rectangle | Position and dimensions of the command history.


MenuEnemy

Description of menus/enemy.txt

bar_pos | rectangle | Position and dimensions of the health bar.

text_pos | label | Position of the text displaying the enemy's name and level.

bar_fill_offset | point | Offset of the bar's fill graphics relative to the bar_pos X/Y.

bar_fill_size | int, int : Width, Height | Size of the bar's fill graphics. If not defined, the width/height of bar_pos is used.

bar_gfx | filename | Filename of the image to use for the "fill" of the bar.


MenuGameOver

Description of menus/game_over.txt

label_title | label | Position of the "Game Over" text.

button_continue | point | Position of the "Continue" button.

button_exit | point | Position of the "Exit" button.


MenuHUDLog

Description of menus/hudlog.txt

enable_overlay | bool | If true, shows an overlay of the last message on top of other menus.

start_at_bottom | bool | If true, messages start at the bottom and get pushed up. If false, messages start at the top and get pushed down.

overlay_at_bottom | bool | If true, the overlay message will be at the bottom of the HUD log area. If false, it will be at the top.


MenuInventory

Description of menus/inventory.txt

close | point | Position of the close button.

set_button | int, int, int, filename : ID, Widget X, Widget Y, Image file | Set number, position and image filename for an equipment swap set button.

set_previous | int, int, filename : Widget X, Widget Y, Image file | Position and image filename for an equipment swap set previous button.

set_next | int, int, filename : Widget X, Widget Y, Image file | Position and image filename for an equipment swap set next button.

label_equipment_set | label | Label showing the active equipment set.

equipment_slot | repeatable(int, int, string, int) : X, Y, Slot Type, Equipment set | Position, item type and equipment set number of an equipment slot. Equipment set number is "0" for shared items."

carried_area | point | Position of the first normal inventory slot.

carried_cols | int | The number of columns for the normal inventory.

carried_rows | int | The number of rows for the normal inventory.

label_title | label | Position of the "Inventory" label.

currency | label | Position of the label that displays the total currency being carried.

help | rectangle | A mouse-over area that displays some help text for inventory shortcuts.


MenuLog

Description of menus/log.txt

label_title | label | Position of the "Log" text.

close | point | Position of the close button.

tab_area | rectangle | The position of the row of tabs, followed by the dimensions of the log text area.


MenuMiniMap

Description of menus/minimap.txt

map_pos | rectangle | Position and dimensions of the map.

text_pos | label | Position of the text label with the map name.

color_wall | color, int : Color, Alpha | Color used for walls.

color_obst | color, int : Color, Alpha | Color used for small obstacles and pits.

color_hero | color, int : Color, Alpha | Color used for the player character.

color_enemy | color, int : Color, Alpha | Color used for enemies engaged in combat.

color_ally | color, int : Color, Alpha | Color used for allies.

color_npc | color, int : Color, Alpha | Color used for NPCs.

color_teleport | color, int : Color, Alpha | Color used for intermap teleports.

button_config | point | Position of the 'Configuration' button. The button will be hidden if not defined.

default_zoom_level | int | Zoom level of the map when viewed at "1x". By default, this is 1, which equates to each tile being 1 pixel tall.


MenuMovementType

Description of menus/movement_type.txt

label_title | label | Position of the "Select a Movement Type" text.

label_config_hint | label | Position of the "Can be changed later in the Configuration menu" text.

button_keyboard | point | Position of the "Keyboard" button.

button_mouse | point | Position of the "Mouse" button.

button_joystick | point | Position of the "Joystick" button.

icon_keyboard | point | Position of the keyboard icon.

icon_mouse | point | Position of the mouse icon.

icon_joystick | point | Position of the joystick icon.


MenuNumPicker

Description of menus/num_picker.txt

label_title | label | Position of the "Enter amount:" text.

confirm | point | Position of the "OK" button.

increase | point | Position of the button used to increase the value.

decrease | point | Position of the button used to decrease the value.

close | point | Position of the button used to close the number picker window.

input | point | Position of the text input box.


MenuPowers: Menu layout

Description of menus/powers.txt

label_title | label | Position of the "Powers" text.

unspent_points | label | Position of the text that displays the amount of unused power points.

close | point | Position of the close button.

tab_area | rectangle | Position and dimensions of the tree pages.


MenuPowers: Power tree layout

Description of powers/trees/

background | filename | Filename of the default background image

tab.title | string | The name of this power tree tab

tab.background | filename | Filename of the background image for this tab's power tree

power.id | power_id | A power id from powers/powers.txt for this slot.

power.tab | int | Tab index to place this power on, starting from 0.

power.position | point | Position of this power icon; relative to MenuPowers "pos".

power.requires_point | bool | Power requires a power point to unlock.

power.requires_primary | predefined_string, int : Primary stat name, Required value | Power requires this primary stat to be at least the specificed value.

power.requires_level | int | Power requires at least this level for the hero.

power.requires_power | power_id | Power requires another power id.

power.requires_status | repeatable(string) | Power requires this campaign status.

power.requires_not_status | repeatable(string) | Power requires not having this campaign status.

power.visible_requires_status | repeatable(string) | (Deprecated as of v1.11.75) Hide the power if we don't have this campaign status.

power.visible_requires_not_status | repeatable(string) | (Deprecated as of v1.11.75) Hide the power if we have this campaign status.

power.upgrades | list(power_id) | A list of upgrade power ids that this power slot can upgrade to. Each of these powers should have a matching upgrade section.

power.visible | bool | Controls whether or not a power is visible or hidden regardless of unlocked state. Defaults to true.

power.visible_check_locked | bool | When set to true, the power will be hidden if it is locked. Defaults to false.

power.visible_check_status | bool | When set to true, the power will be hidden if its status requirements are not met. Defaults to false.

upgrade.id | power_id | A power id from powers/powers.txt for this upgrade.

upgrade.requires_primary | predefined_string, int : Primary stat name, Required value | Upgrade requires this primary stat to be at least the specificed value.

upgrade.requires_point | bool | Upgrade requires a power point to unlock.

upgrade.requires_level | int | Upgrade requires at least this level for the hero.

upgrade.requires_power | int | Upgrade requires another power id.

upgrade.requires_status | repeatable(string) | Upgrade requires this campaign status.

upgrade.requires_not_status | repeatable(string) | Upgrade requires not having this campaign status.

upgrade.visible_requires_status | repeatable(string) | (Deprecated as of v1.11.75) Hide the upgrade if we don't have this campaign status.

upgrade.visible_requires_not_status | repeatable(string) | (Deprecated as of v1.11.75) Hide the upgrade if we have this campaign status.

upgrade.visible | bool | Controls whether or not a power is visible or hidden regardless of unlocked state. Defaults to true.

upgrade.visible_check_locked | bool | When set to true, the power will be hidden if it is locked. Defaults to false.

upgrade.visible_check_status | bool | When set to true, the power will be hidden if its status requirements are not met. Defaults to false.


MenuStash

Description of menus/stash.txt

close | point | Position of the close button.

slots_area | point | Position of the top-left slot.

stash_cols | int | The number of columns for the grid of slots.

stash_rows | int | The number of rows for the grid of slots.

label_title | label | Position of the "Stash" label.

currency | label | Position of the label displaying the amount of currency stored in the stash.

tab.name | ["Private", "Shared", string] | The displayed name of this tab. It is also used to determine the filename of the stash file that the engine will create. 'Private' and 'Shared' will use their legacy filenames for compatibility.

tab.is_private | bool | If true, this stash will not be shared across other saves.


MenuStatBar

Description of menus/hp.txt, menus/mp.txt, menus/xp.txt

bar_pos | rectangle | Position and dimensions of the bar graphics.

text_pos | label | Position of the text displaying the current value of the relevant stat.

orientation | bool | True is vertical orientation; false is horizontal.

bar_gfx | filename | Filename of the image to use for the "fill" of the bar.

bar_gfx_background | filename | Filename of the image to use for the base of the bar.

hide_timeout | duration | Hide HP and MP bar if full mana or health, after given amount of seconds; Hide XP bar if no changes in XP points for given amount of seconds. 0 disable hiding.

bar_fill_offset | point | Offset of the bar's fill graphics relative to the bar_pos X/Y.

bar_fill_size | int, int : Width, Height | Size of the bar's fill graphics. If not defined, the width/height of bar_pos is used.

enabled | bool | Determines if the bar will be rendered. Disable the bar completely by setting this to false.


MenuTalker

Description of menus/talker.txt

close | point | Position of the close button.

advance | point | Position of the button to advance dialog.

dialogbox | rectangle | Position and dimensions of the text box graphics.

dialogtext | rectangle | Rectangle where the dialog text is placed.

text_offset | point | Margins for the left/right and top/bottom of the dialog text.

portrait_he | rectangle | Position and dimensions of the NPC portrait graphics.

portrait_you | rectangle | Position and dimensions of the player's portrait graphics.

font_who | predefined_string | Font style to use for the name of the currently talking person.

font_dialog | predefined_string | Font style to use for the dialog text.

topic_color_normal | color | The normal color for topic text.

topic_color_hover | color | The color for topic text when highlighted.

topic_color_normal | color | The color for topic text when clicked.

trade_color_normal | color | The normal color for the "Trade" text.

trade_color_hover | color | The color for the "Trade" text when highlighted.

trade_color_normal | color | The color for the "Trade" text when clicked.


MenuVendor

Description of menus/vendor.txt

close | point | Position of the close button.

slots_area | point | Position of the top-left slot.

vendor_cols | int | The number of columns in the grid of slots.

vendor_rows | int | The number of rows in the grid of slots.

label_title | label | The position of the text that displays the NPC's name.


ModManager

Description of mod settings.txt

description | string | Some text describing the mod.

description_locale | string, string : Language, Translated description | A translated description for a language (specified by 2-letter code).

version | version | The version number of this mod.

requires | list(string) | A comma-separated list of the mods that are required in order to use this mod. The dependency version requirements can also be specified and separated by colons (e.g. fantasycore:0.1:2.0).

game | string | The game which this mod belongs to (e.g. flare-game).

engine_version_min | version | The minimum engine version required to use this mod.

engine_version_max | version | The maximum engine version required to use this mod.


NPC

Description of NPCs in npcs/

dialog.id | string | A unique identifer used to reference this dialog.

dialog.him | repeatable(string) | A line of dialog from the NPC.

dialog.her | repeatable(string) | A line of dialog from the NPC.

dialog.you | repeatable(string) | A line of dialog from the player.

dialog.voice | repeatable(string) | Filename of a voice sound file to play.

dialog.topic | string | The name of this dialog topic. Displayed when picking a dialog tree.

dialog.group | string | Dialog group.

dialog.allow_movement | bool | Restrict the player's mvoement during dialog.

dialog.portrait_him | repeatable(filename) | Filename of a portrait to display for the NPC during this dialog.

dialog.portrait_her | repeatable(filename) | Filename of a portrait to display for the NPC during this dialog.

dialog.portrait_you | repeatable(filename) | Filename of a portrait to display for the player during this dialog.

dialog.take_a_party | bool | Start/stop taking a party with player.

dialog.response | repeatable(string) | A dialog ID to present as a selectable response. This key must precede the dialog text line.

dialog.response_only | bool | If true, this dialog topic will only appear when explicitly referenced with the "response" key.

npc.name | string | NPC's name.

npc.direction | direction | The direction to use for this NPC's stance animation.

npc.show_on_minimap | bool | If true, this NPC will be shown on the minimap. The default is true.

npc.talker | bool | Allows this NPC to be talked to.

npc.portrait | filename | Filename of the default portrait image.

npc.vendor | bool | Allows this NPC to buy/sell items.

npc.vendor_requires_status | list(string) | The player must have these statuses in order to use this NPC as a vendor.

npc.vendor_requires_not_status | list(string) | The player must not have these statuses in order to use this NPC as a vendor.

npc.constant_stock | repeatable(list(item_id)) | A list of items this vendor has for sale. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

npc.status_stock | repeatable(string, list(item_id)) : Required status, Item(s) | A list of items this vendor will have for sale if the required status is met. Quantity can be specified by appending ":Q" to the item_id, where Q is an integer.

npc.random_stock | list(loot) | Use a loot table to add random items to the stock; either a filename or an inline definition.

npc.random_stock_count | int, int : Min, Max | Sets the minimum (and optionally, the maximum) amount of random items this npc can have.

npc.vendor_ratio_buy | float | NPC-specific version of vendor_ratio_buy from engine/loot.txt. Uses the global setting when set to 0.

npc.vendor_ratio_sell | float | NPC-specific version of vendor_ratio_sell from engine/loot.txt. Uses the global setting when set to 0.

npc.vendor_ratio_sell_old | float | NPC-specific version of vendor_ratio_sell_old from engine/loot.txt. Uses the global setting when set to 0.

npc.vox_intro | repeatable(filename) | Filename of a sound file to play when initially interacting with the NPC.


PowerManager: Effects

Description of powers/effects.txt

effect.id | string | Unique identifier for the effect definition.

effect.type | string | Defines the type of effect

effect.name | string | A displayed name that is shown when hovering the mouse over the effect icon.

effect.icon | icon_id | The icon to visually represent the effect in the status area

effect.animation | filename | The filename of effect animation.

effect.can_stack | bool | Allows multiple instances of this effect

effect.max_stacks | int | Maximum allowed instances of this effect, -1 for no limits

effect.group_stack | bool | For effects that can stack, setting this to true will combine those effects into a single status icon.

effect.render_above | bool | Effect is rendered above

effect.color_mod | color | Changes the color of the afflicted entity.

effect.alpha_mod | int | Changes the alpha of the afflicted entity.

effect.attack_speed_anim | string | If the type of Effect is attack_speed, this defines the attack animation that will have its speed changed.


PowerManager: Powers

Description of powers/powers.txt

power.id | power_id | Uniq identifier for the power definition.

power.type | ["fixed", "missile", "repeater", "spawn", "transform", "block"] | Defines the type of power definiton

power.name | string | The name of the power

power.description | string | Description of the power

power.icon | icon_id | The icon to visually represent the power eg. in skill tree or action bar.

power.new_state | predefined_string | When power is used, hero or enemy will change to this state. Must be one of the states ["instant", user defined]

power.state_duration | duration | Sets the length of time the caster is in their state animation. A time longer than the animation length will cause the animation to pause on the last frame. Times shorter than the state animation length will have no effect.

power.prevent_interrupt | bool | Prevents the caster from being interrupted by a hit when casting this power.

power.face | bool | Power will make hero or enemy to face the target location.

power.source_type | ["hero", "neutral", "enemy"] | Determines which entities the power can effect.

power.beacon | bool | True if enemy is calling its allies.

power.count | int | The count of hazards/effect or spawns to be created by this power.

power.passive | bool | If power is unlocked when the hero or enemy spawns it will be automatically activated.

power.passive_trigger | ["on_block", "on_hit", "on_halfdeath", "on_joincombat", "on_death"] | This will only activate a passive power under a certain condition.

power.meta_power | bool | If true, this power can not be used on it's own. Instead, it should be replaced via an item with a replace_power entry.

power.no_actionbar | bool | If true, this power is prevented from being placed on the actionbar.

power.requires_flags | list(predefined_string) | A comma separated list of equip flags that are required to use this power. See engine/equip_flags.txt

power.requires_mp | float | Require an amount of MP to use the power. The amount will be consumed on usage.

power.requires_hp | float | Require an amount of HP to use the power. The amount will be consumed on usage.

power.requires_resource_stat | repeatable(predefined_string, float) : Resource stat ID, Required amount | Requires an amount of a given resource to use the power. The amount will be consumed on usage.

power.sacrifice | bool | If the power has requires_hp, allow it to kill the caster.

power.requires_los | bool | Requires a line-of-sight to target.

power.requires_empty_target | bool | The power can only be cast when target tile is empty.

power.requires_item | repeatable(item_id, int) : Item, Quantity | Requires a specific item of a specific quantity in inventory. If quantity > 0, then the item will be removed.

power.requires_equipped_item | repeatable(item_id, int) : Item, Quantity | Requires a specific item of a specific quantity to be equipped on hero. If quantity > 0, then the item will be removed.

power.requires_targeting | bool | Power is only used when targeting using click-to-target.

power.requires_spawns | int | The caster must have at least this many summoned creatures to use this power.

power.cooldown | duration | Specify the duration for cooldown of the power in 'ms' or 's'.

power.requires_hpmp_state | ["all", "any"], ["percent", "not_percent", "ignore"], float , ["percent", "not_percent", "ignore"], float : Mode, HP state, HP Percentage value, MP state, MP Percentage value | Power can only be used when HP/MP matches the specified state. In 'all' mode, both HP and MP must meet the requirements, where as only one must in 'any' mode. To check a single stat, use 'all' mode and set the 'ignore' state for the other stat.

power.requires_resource_stat_state | predefined_string, ["percent", "not_percent", "ignore"], float : Resource stat ID, State, Percentage value | Power can only be used when the resource stat matches the specified state. See 'requires_resource_stat_state_mode' for combining multiple resource states and, optionally, HP/MP state.

power.requires_resource_stat_state_mode | ["all", "any", "any_hpmp"] | Determines how required resource state is handled for multiple resources. "all" means that HP/MP state AND all resource stat states must pass. "any" means that HP/MP state must pass AND at least one resource stat state must pass. "any_hpmp" means that HP/MP state OR at least one resource stat state is required to pass.

power.animation | filename | The filename of the power animation.

power.soundfx | filename | Filename of a sound effect to play when the power is used.

power.soundfx_hit | filename | Filename of a sound effect to play when the power's hazard hits a valid target.

power.directional | bool | The animation sprite sheet contains 8 directions, one per row.

power.visual_random | int | The animation sprite sheet contains rows of random options

power.visual_option | int | The animation sprite sheet containers rows of similar effects, use a specific option. If using visual_random, this serves as an offset for the lowest random index.

power.aim_assist | bool | If true, power targeting will be offset vertically by the number of pixels set with "aim_assist" in engine/misc.txt.

power.speed | float | The speed of missile hazard, the unit is defined as map units per frame.

power.lifespan | duration | How long the hazard/animation lasts in 'ms' or 's'.

power.floor | bool | The hazard is drawn between the background and the object layer.

power.complete_animation | bool | For hazards; Play the entire animation, even if the hazard has hit a target.

power.charge_speed | float | Moves the caster at this speed in the direction they are facing until the state animation is finished.

power.attack_speed | float | Changes attack animation speed for this Power. A value of 100 is 100% speed (aka normal speed).

power.use_hazard | bool | Power uses hazard.

power.no_attack | bool | Hazard won't affect other entities.

power.no_aggro | bool | If true, the Hazard won't put its target in a combat state.

power.radius | float | Radius in map units

power.base_damage | predefined_string : Damage type ID | Determines which damage stat will be used to calculate damage.

power.starting_pos | ["source", "target", "melee"] | Start position for hazard

power.relative_pos | bool | Hazard will move relative to the caster's position.

power.multitarget | bool | Allows a hazard power to hit more than one entity.

power.multihit | bool | Allows a hazard power to hit the same entity more than once.

power.expire_with_caster | bool | If true, hazard will disappear when the caster dies.

power.ignore_zero_damage | bool | If true, hazard can still hit the player when damage is 0, triggering post_power and post_effects.

power.lock_target_to_direction | bool | If true, the target is "snapped" to one of the 8 directions.

power.movement_type | ["ground", "flying", "intangible"] | For moving hazards (missile/repeater), this defines which parts of the map it can collide with. The default is "flying".

power.trait_armor_penetration | bool | Ignores the target's Absorbtion stat

power.trait_avoidance_ignore | bool | Ignores the target's Avoidance stat

power.trait_crits_impaired | int | Increases critical hit percentage for slowed/immobile targets

power.trait_elemental | predefined_string | Damage done is elemental. See engine/elements.txt

power.target_range | float | The distance from the caster that the power can be activated

power.hp_steal | float | Percentage of damage to steal into HP

power.mp_steal | float | Percentage of damage to steal into MP

power.resource_steal | repeatable(predefined_string, float) : Resource stat ID, Steal amount | Percentage of damage to steal into the specified resource

power.missile_angle | float | Angle of missile

power.angle_variance | float | Percentage of variance added to missile angle

power.speed_variance | float | Percentage of variance added to missile speed

power.delay | duration | Delay between repeats in 'ms' or 's'.

power.transform_duration | duration | Duration for transform in 'ms' or 's'.

power.manual_untransform | bool | Force manual untranform

power.keep_equipment | bool | Keep equipment while transformed

power.untransform_on_hit | bool | Force untransform when the player is hit

power.buff | bool | Power is cast upon the caster.

power.buff_teleport | bool | Power is a teleportation power.

power.buff_party | bool | Power is cast upon party members

power.buff_party_power_id | power_id | Only party members that were spawned with this power ID are affected by "buff_party=true". Setting this to 0 will affect all party members.

power.post_effect | predefined_string, float, duration , float : Effect ID, Magnitude, Duration, Chance to apply | Post effect to apply to target. Duration is in 'ms' or 's'.

power.post_effect_src | predefined_string, float, duration , float : Effect ID, Magnitude, Duration, Chance to apply | Post effect to apply to caster. Duration is in 'ms' or 's'.

power.pre_power | repeatable(power_id, float) : Power, Chance to cast | Trigger a power immediately when casting this one.

power.post_power | repeatable(power_id, int) : Power, Chance to cast | Trigger a power if the hazard did damage. For 'block' type powers, this power will be triggered when the blocker takes damage.

power.wall_power | repeatable(power_id, int) : Power, Chance to cast | Trigger a power if the hazard hit a wall.

power.wall_reflect | bool | Moving power will bounce off walls and keep going

power.spawn_type | predefined_string | For non-transform powers, an enemy is spawned from this category. For transform powers, the caster will transform into a creature from this category.

power.target_neighbor | int | Target is changed to an adjacent tile within a radius.

power.spawn_limit | ["unlimited", "fixed", "stat"], int, float, predefined_string : Mode, Entity Level, Ratio, Primary stat | The maximum number of creatures that can be spawned and alive from this power. The need for the last three parameters depends on the mode being used. The "unlimited" mode requires no parameters and will remove any spawn limit requirements. The "fixed" mode takes one parameter as the spawn limit. The "stat" mode also requires the ratio and primary stat ID as parameters. The ratio adjusts the scaling of the spawn limit. For example, spawn_limit=stat,1,2,physical will set the spawn limit to 1/2 the summoner's Physical stat.

power.spawn_level | ["default", "fixed", "level", "stat"], int, float, predefined_string : Mode, Entity Level, Ratio, Primary stat | The level of spawned creatures. The need for the last three parameters depends on the mode being used. The "default" mode will just use the entity's normal level and doesn't require any additional parameters. The "fixed" mode only requires the entity level as a parameter. The "stat" and "level" modes also require the ratio as a parameter. The ratio adjusts the scaling of the entity level. For example, spawn_level=stat,1,2,physical will set the spawned entity level to 1/2 the summoner's Physical stat. Only the "stat" mode requires the last parameter, which is simply the ID of the primary stat that should be used for scaling.

power.target_party | bool | Hazard will only affect party members.

power.target_categories | list(predefined_string) | Hazard will only affect enemies in these categories.

power.modifier_accuracy | ["multiply", "add", "absolute"], float : Mode, Value | Changes this power's accuracy.

power.modifier_damage | ["multiply", "add", "absolute"], float, float : Mode, Min, Max | Changes this power's damage. The "Max" value is ignored, except in the case of "absolute" modifiers.

power.modifier_critical | ["multiply", "add", "absolute"], float : Mode, Value | Changes the chance that this power will land a critical hit.

power.target_movement_normal | bool | Power can affect entities with normal movement (aka walking on ground)

power.target_movement_flying | bool | Power can affect flying entities

power.target_movement_intangible | bool | Power can affect intangible entities

power.walls_block_aoe | bool | When true, prevents hazard aoe from hitting targets that are behind walls/pits.

power.script | ["on_cast", "on_hit", "on_wall"], filename : Trigger, Filename | Loads and executes a script file when the trigger is activated.

power.remove_effect | repeatable(predefined_string, int) : Effect ID, Number of Effect instances | Removes a number of instances of a specific Effect ID. Omitting the number of instances, or setting it to zero, will remove all instances/stacks.

power.replace_by_effect | repeatable(power_id, predefined_string, int) : Power ID, Effect ID, Number of Effect instances | If the caster has at least the number of instances of the Effect ID, the defined Power ID will be cast instead.

power.requires_corpse | ["consume", bool] | If true, a corpse must be targeted for this power to be used. If "consume", then the corpse is also consumed on Power use.

power.target_nearest | float | Will automatically target the nearest enemy within the specified range.

power.disable_equip_slots | list(predefined_string) | Passive powers only. A comma separated list of equip slot types to disable when this power is active.


QuestLog

Description of quest files in quests/

name | string | A displayed name for this quest.

complete_status | string | If this status is set, the quest will be displayed as completed.

quest.requires_status | list(string) | Quest requires this campaign status

quest.requires_not_status | list(string) | Quest requires not having this campaign status.

quest.requires_level | int | Quest requires hero level

quest.requires_not_level | int | Quest requires not hero level

quest.requires_currency | int | Quest requires atleast this much currency

quest.requires_not_currency | int | Quest requires no more than this much currency

quest.requires_item | list(item_id) | Quest requires specific item (not equipped)

quest.requires_not_item | list(item_id) | Quest requires not having a specific item (not equipped)

quest.requires_class | predefined_string | Quest requires this base class

quest.requires_not_class | predefined_string | Quest requires not this base class

quest.quest_text | string | Text that gets displayed in the Quest log when this quest is active.


SDLFontEngine: Font settings

Description of engine/font_settings.txt

font.id | string | An identifier used to reference this font.

font.style | repeatable(["default", predefined_string], filename, int, bool) : Language, Font file, Point size, Blending | Filename, point size, and blend mode of the font to use for this language. Language can be "default" or a 2-letter region code.


StatBlock: Core stats

Description of engine/stats.txt, enemies/..., and npcs/...

speed | float | Movement speed

cooldown | duration | Cooldown between attacks in 'ms' or 's'.

cooldown_hit | duration | Duration of cooldown after being hit in 'ms' or 's'.

stat | stat_id, float : Stat ID, Value | The starting value for this stat.

stat_per_level | stat_id, float : Stat ID, Value | The value for this stat added per level.

stat_per_primary | predefined_string, stat_id, float : Primary Stat, Stat ID, Value | The value for this stat added for every point allocated to this primary stat.

vulnerable | predefined_string, float : Element, Value | (Deprecated in v1.12.91; use a '..._resist' value with 'stat' instead) Percentage weakness to this element.

power_filter | list(power_id) | Only these powers are allowed to hit this entity.

categories | list(string) | Categories that this entity belongs to.

melee_range | float | Determines the distance from the caster that some powers will be placed. For AI entities, it also means the minimum distance from target required to use melee powers.


StatBlock: Sound effects

Description of sound effect properties in engine/stats.txt, enemies/..., and npcs/...

sfx_attack | repeatable(predefined_string, filename) : Animation name, Sound file | Filename of sound effect for the specified attack animation.

sfx_hit | repeatable(filename) | Filename of sound effect for being hit.

sfx_die | repeatable(filename) | Filename of sound effect for dying.

sfx_critdie | repeatable(filename) | Filename of sound effect for dying to a critical hit.

sfx_block | repeatable(filename) | Filename of sound effect for blocking an incoming hit.

sfx_levelup | filename | Filename of sound effect for leveling up.

sfx_lowhp | filename, bool : Sound file, loop | Filename of sound effect for low health warning. Optionally, it can be looped.


StatBlock: Render layers

Description of 'render_layers' section in engine/stats.txt, enemies/..., and npcs/...

render_layers.layer | direction, list(string) : Direction, Layer name(s) | Defines the layer order of slots for a given direction.


StatBlock: Animation slots

Description of 'animation_slots' section in enemies/... and npcs/...

animation_slots.slot | string, filename : Slot name, Animation filename | Assigns an animation to one of the slots defined in the render_layers section.


StatBlock: Enemies

Description of enemies in enemies/

name | string | Name

humanoid | bool | This creature gives human traits when transformed into, such as the ability to talk with NPCs.

lifeform | bool | Determines whether or not this entity is referred to as a living thing, such as displaying "Dead" vs "Destroyed" when their HP is 0.

level | int | Level

xp | int | XP awarded upon death.

xp_scaling | filename | XP multiplier table file. See: "XPScaling".

loot | repeatable(loot) | Possible loot that can be dropped on death.

loot_count | int, int : Min, Max | Sets the minimum (and optionally, the maximum) amount of loot this creature can drop. Overrides the global drop_max setting.

defeat_status | string | Campaign status to set upon death.

convert_status | string | Campaign status to set upon being converted to a player ally.

first_defeat_loot | item_id | Drops this item upon first death (requires defeat_status to be set).

quest_loot | string, string, item_id : Required status, Required not status, Item | Drops this item when campaign status is met. Can't drop at the same time as first_defeat_loot.

flying | bool | Creature can move over gaps/water.

intangible | bool | Creature can move through walls.

facing | bool | Creature can turn to face their target.

waypoint_pause | duration | Duration to wait at each waypoint in 'ms' or 's'.

turn_delay | duration | Duration it takes for this creature to turn and face their target in 'ms' or 's'.

chance_pursue | float | Percentage change that the creature will chase their target.

chance_flee | float | Percentage chance that the creature will run away from their target.

power | ["melee", "ranged", "beacon", "on_hit", "on_death", "on_half_dead", "on_join_combat", "on_debuff"], power_id, int : State, Power, Chance | A power that has a chance of being triggered in a certain state.

passive_powers | list(power_id) | A list of passive powers this creature has.

threat_range | float, float : Engage distance, Stop distance | The first value is the radius of the area this creature will be able to start chasing the hero. The second, optional, value is the radius at which this creature will stop pursuing their target and defaults to double the first value.

flee_range | float | The radius at which this creature will start moving to a safe distance. Defaults to half of the threat_range.

combat_style | ["default", "aggressive", "passive"] | How the creature will enter combat. Default is within range of the hero; Aggressive is always in combat; Passive must be attacked to enter combat.

animations | filename | Filename of an animation definition.

suppress_hp | bool | Hides the enemy HP bar for this creature.

flee_duration | duration | The minimum amount of time that this creature will flee. They may flee longer than the specified time.

flee_cooldown | duration | The amount of time this creature must wait before they can start fleeing again.


StatBlock: Hero stats

Description of engine/stats.txt

max_points_per_stat | int | Maximum points for each primary stat.

sfx_step | string | An id for a set of step sound effects. See items/step_sounds.txt.

stat_points_per_level | int | The amount of stat points awarded each level.

power_points_per_level | int | The amount of power points awarded each level.


Subtitles

Description of soundfx/subtitles.txt

style.text_pos | label | Position and style of the subtitle text.

style.pos | point | Position of the subtitle text relative to alignment.

style.align | alignment | Alignment of the subtitle text.

style.background_color | color, int : Color, Alpha | Color and alpha of the subtitle background rectangle.

subtitle.id | filename | Filename of the sound file that will trigger this subtitle.

subtitle.text | string | The subtitle text that will be displayed.


TileSet

Description of tilesets in tilesets/

tileset.img | filename | Filename of a tile sheet image.

tileset.tile | int, int, int, int, int, int, int : Index, X, Y, Width, Height, X offset, Y offset | A single tile definition.

tileset.animation | list(int, int, int, duration) : Tile index, X, Y, duration | An animation for a tile. Durations are in 'ms' or 's'.


XPScaling

Description of enemies/xp_scaling/

absolute.level | int, float : Level, Multiplier | The multiplier that will be applied to the rewarded XP when an enemy is at a specific level. If the enemy's level is outside the defined scaling levels, the min or max level is used (whichever is closer).

relative.level | int, float : Level, Multiplier | The multiplier that will be applied to the rewarded XP when an enemy's level is X levels apart from the player's level. If the enemy's level is outside the defined scaling levels, the min or max level is used (whichever is closer).


Predefined Strings

Below are some strings that are used in various attributes.


EffectManager

Description of "type" in powers/effects.txt

death_sentence | Causes sudden death at the end of the effect duration.

damage | Damage per second

damage_percent | Damage per second (percentage of max HP)

hpot | HP restored per second

hpot_percent | HP restored per second (percentage of max HP)

mpot | MP restored per second

mpot_percent | MP restored per second (percentage of max MP)

speed | Changes movement speed. A magnitude of 100 is 100% speed (aka normal speed).

attack_speed | Changes attack speed. A magnitude of 100 is 100% speed (aka normal speed).

resist_all | Applies a bonus to all of the non-elemental resistance stats.

stun | Can't move or attack. Being attacked breaks stun.

revive | Revives the player. Typically attached to a power that triggers when the player dies.

convert | Causes an enemy or an ally to switch allegiance

fear | Causes enemies to run away

knockback | Pushes the target away from the source caster. Speed is the given value divided by the framerate cap.

${STAT} | Increases ${STAT}, where ${STAT} is any valid stat_id.

${PRIMARYSTAT} | Increases ${PRIMARYSTAT}, where ${PRIMARYSTAT} is any of the primary stats defined in engine/primary_stats.txt. Example: physical

shield | Create a damage absorbing barrier based on Mental damage stat. Duration is ignored.

heal | Restore HP based on Mental damage stat.


ItemManager

Description of "bonus" attribute in items/items.txt

speed | Movement speed. A value of 100 is 100% speed (aka normal speed).

attack_speed | Attack animation speed. A value of 100 is 100% speed (aka normal speed).

${STAT} | Increases ${STAT}, where ${STAT} is any valid stat_id.

${PRIMARYSTAT} | Increases ${PRIMARYSTAT}, where ${PRIMARYSTAT} is any of the primary stats defined in engine/primary_stats.txt. Example: physical


Stats

Description of the base stats which may be used wherever a stat_id is required.

hp | Hit points

hp_regen | HP restored per minute

mp | Magic points

mp_regen | MP restored per minute

accuracy | Accuracy %. Higher values mean less likely to miss.

avoidance | Avoidance %. Higher values means more likely to not get hit.

absorb_min | Minimum damage absorption

absorb_max | Maximum damage absorption

crit | Critical hit chance %

xp_gain | Percentage boost to the amount of experience points gained per kill.

currency_find | Percentage boost to the amount of gold dropped per loot event.

item_find | Increases the chance of finding items in loot.

stealth | Decrease the distance required to alert enemies by %

poise | Reduced % chance of entering "hit" animation when damaged

reflect_chance | Percentage chance to reflect missiles

return_damage | Deals a percentage of the damage taken back to the attacker

hp_steal | Percentage of HP stolen when damaging a target

mp_steal | Percentage of MP stolen when damaging a target

resist_damage_over_time | Percentage chance that damage-over-time effects will be negated

resist_slow | Percentage chance that slow effects will be negated

resist_stun | Percentage chance that stun effects will be negated

resist_knockback | Percentage chance that knockback effects will be negated

resist_stat_debuff | Percentage chance that stat debuff effects will be negated

resist_damage_reflect | Percentage chance that damage reflection will be negated

resist_hp_steal | Percentage chance that HP steal will be negated

resist_mp_steal | Percentage chance that MP steal will be negated

Clone this wiki locally