Skip to content

GameplayConfig ​

Inherits: Resource

Configuration for gameplay rules and mechanics

Properties ​

intmax_active_quests20
boolquest_markers_enabledtrue
QuestFailureRuledefault_quest_failureQuestFailureRule.RETRY
floatquest_game_over_delay3.0
boolallow_quest_abandontrue
boolshow_quest_levelstrue
intquest_level_trivial_gap5
intquest_level_easy_gap2
intquest_level_hard_gap3
intquest_level_deadly_gap6
boolauto_track_quest_objectivestrue
boolfootsteps_from_movementtrue
floatfootstep_stride_walk0.8
floatfootstep_stride_run1.5
boolfootprints_enabledtrue
intfootprint_limit96
floatfootprint_view_distance40.0
floatfootstep_swim_interval1.3
booldeveloper_commandsfalse
boolfog_of_war_enabledtrue
intfog_layers2
boolfog_persist_explorationtrue
Colorfog_shroud_colorColor(0.0, 0.0, 0.0, 1.0)
Colorfog_explored_colorColor(0.0, 0.0, 0.0, 0.6)
FogEdgeQualityfog_edge_qualityFogEdgeQuality.MEDIUM
floatfog_edge_softness0.3
floatfog_blur_radius1.0
intfog_pixels_per_unit4
floatfog_update_interval0.1
FogEntityHideModefog_entity_hide_modeFogEntityHideMode.RIG_HIDE
floatfog_fade_duration0.3
boolfog_keep_collision_activetrue
boolfog_hide_nameplatestrue
boolfog_hide_map_markerstrue
boolallow_manual_savetrue
boolallow_save_during_combatfalse
intmax_save_slots10
Stringsave_directory"user://saves/"
boolsave_on_area_transitionfalse
BreathUsersbreath_usersBreathUsers.PLAYERS
floatbreath_duration20.0
floatbreath_recovery_speed4.0
intdrowning_effect_id0
boolitem_weight_enabledfalse
booldropped_items_enabledtrue
intnpc_loot_delivery0
intobject_loot_delivery0
DroppedItemsVisualSytledropped_items_visual_styleDroppedItemsVisualSytle.MESH
DroppedItemsPhysicsdropped_items_physicsDroppedItemsPhysics.SETTLE_THEN_FREEZE
booldropped_items_pickup_walk_overtrue
booldropped_items_pickup_interacttrue
booldropped_items_pickup_mouse_overfalse
booldropped_items_pickup_look_atfalse
floatdropped_items_walk_over_radius1.2
floatdropped_items_mouse_range5.0
floatdropped_items_pickup_delay1.0
floatdropped_items_lifetime0.0
DroppedItemsLabelModedropped_items_label_modeDroppedItemsLabelMode.HOVER_AND_TARGET
floatdropped_items_scatter_radius1.0
intdropped_items_max_in_world0
booldroped_items_saved_to_maptrue
PackedScenedropped_items_scene
DurabilityModedurability_modeDurabilityMode.OFF
floatdurability_loss_per_hit1.0
floatdurability_loss_chance1.0
booldurability_one_piece_per_hitfalse
BrokenBehaviordurability_broken_behaviorBrokenBehavior.NO_EFFECT
floatdurability_repair_cost_multiplier0.25
InventoryStylecharacter_inventory_styleInventoryStyle.new()
InventoryStylecontainer_inventory_styleInventoryStyle.new()
CalculationFormulaitem_budget_formula
LootLevelSource.Sourcedefault_npc_loot_levelLootLevelSource.Source.HOLDER
LootLevelSource.Sourcedefault_object_loot_levelLootLevelSource.Source.PARTY
intfallback_item_level1
Texture2Dhitbox_outline_texturenull
Texture2Dselection_marker_texturenull
Texture2Dtarget_marker_texturenull
Materialhover_outline_materialnull
Materialselection_outline_materialnull
Texture2Dmax_distance_circle_markernull
Materialattack_ribbon_materialnull
Materialpath_materialnull
Texture2Ddestination_materialnull
Array[Resource]ability_target_textures[]
intmax_party_size4
boolreserve_experience_enabledtrue
floatreserve_experience_percentage0.5
intmax_reserve_companions6
InventorySharinginventory_sharingInventorySharing.PER_CHARACTER
intshared_bag_slots40
ProfessionsScopeprofessions_scopeProfessionsScope.PARTY
boolallow_character_switchingtrue
boolallow_switching_in_combattrue
boolhas_main_charactertrue
floatcompanion_follow_distance3.0
floatcompanion_assist_range25.0
boolcompanions_use_abilitiestrue
booluse_character_creation_uitrue
Array[CharacterDefinition]starting_party_composition[]
intstarting_map_id5754345
intmax_level50
Dictionaryexperience_per_level{}
KillExperienceModekill_experience_modeKillExperienceMode.FIXED
boolkill_experience_fallofffalse
NpcScalingModenpc_level_scalingNpcScalingMode.OFF
ScalingReferencescaling_referenceScalingReference.PARTY_AVERAGE
intscale_up_within_levels3
intscale_down_within_levels3
boolrescale_npcs_on_respawntrue
boolrescale_npcs_on_party_changetrue
intdefault_npc_growth_profile_idGrowthProfile.ID_DEFAULT
intaction_bar_slot_count30
ActionBarArrangementaction_bar_arrangementActionBarArrangement.FREE
boolaction_bar_auto_fillfalse
PlayerBasicAttackplayer_basic_attackPlayerBasicAttack.AUTO_ATTACK
floatlook_drag_threshold10.0
boollog_input_routingfalse
ControllerLogicplayer_controller_logicnull
CameraLogiccamera_logicnull
CombatStylecombat_styleCombatStyle.REAL_TIME
booldraw_weapons_in_combatfalse
DeathBehaviordeath_behaviorDeathBehavior.RESPAWN_CHECKPOINT
Array[DeathCurrencyLoss]death_currency_losses[]
floatdeath_experience_penalty0.0
DeathItemLossdeath_item_lossDeathItemLoss.KEEP
DeathItemLossdeath_equipment_lossDeathItemLoss.KEEP
floatdeath_item_loss_chance1.0
floatdeath_durability_loss0.0
booluse_threat_systemtrue
floatheal_threat_multiplier0.5
floatdamage_threat_multiplier1.0
DamageResult.DamageBasisthreat_basisDamageResult.DamageBasis.AFTER_TAKEN
DamageResult.DamageBasisleech_basisDamageResult.DamageBasis.HEALTH_ONLY
DamageResult.DamageBasisreflect_basisDamageResult.DamageBasis.HEALTH_ONLY
intmax_reflect_chain1
intmax_effect_depth16
boolzero_damage_counts_as_hittrue
floatminimum_damage0.0
boolround_damagefalse
CapacityRulecapacity_change_ruleCapacityRule.KEEP_PERCENTAGE
CapacityRulelevel_up_capacity_ruleCapacityRule.ADD_GAIN
CombatEvent.Detailcombat_log_detailCombatEvent.Detail.NORMAL
CombatLogKeepcombat_log_keepCombatLogKeep.DISCARD
intcombat_log_keep_fights5
intcombat_log_events_per_fight2000
booluse_hit_systemfalse
floatmelee_range5.0
floatbase_melee_hit_chance95.0
floatbase_ranged_hit_chance95.0
floatminimum_hit_chance5.0
floatmaximum_hit_chance100.0
LevelGapModelevel_gap_modeLevelGapMode.NONE
boolglancing_hits_enabledfalse
floatglancing_chance30.0
floatglancing_reduction40.0
boolglancing_other_effects_applytrue
AudioPreloadModeaudio_preload_modeAudioPreloadMode.BACKGROUND
floataudio_default_fade_seconds3.0
floataudio_combat_fade_seconds1.5
floataudio_combat_music_end_delay4.0
SoundSourcemain_menu_music
SoundSourcecharacter_creation_music
SoundSourceloading_screen_music
SoundSourcepause_menu_music
boolnpc_lod_enabledtrue
boollod_follows_view_distancefalse
floatlod_distance_high30.0
floatlod_distance_medium100.0
floatlod_distance_low250.0
floatlod_distance_minimal400.0
boollod_lock_outside_terraintrue
floatlod_interval_high0.1
floatlod_interval_medium0.5
floatlod_interval_low1.0
floatlod_interval_minimal2.0
floatlod_optimization_interval1.0
intlod_controllers_per_batch10

Methods ​

floatget_fog_edge_threshold()
floatget_fog_edge_range()
floatget_lod_distance( level: LODLevel )
floatget_lod_interval( level: LODLevel )
Array[String]get_lod_terrain_warnings( solid_radius: float = ChronicleTerrain.DEFAULT_COLLISION_RADIUS )
LODLevelcalculate_lod_level( distance: float )
boolmain_character_exists()
floatget_kill_experience( npc_level: int, fixed_worth: int = 0 )
floatget_kill_experience_falloff_factor( levels_below: int )
floatget_item_budget( item_level: int )
intget_scaled_npc_level( base_level: int, reference_level: int, rank_types: Array = [] )
intget_experience_for_level( level: int )
intget_total_experience_for_level( level: int )
voidset_experience_for_level( level: int, xp: int )
voidreset_experience_to_defaults()
boolhas_custom_experience( level: int )
GameplayConfigcreate_default() static
GameplayConfigget_config() static
Array[String]get_input_setup_warnings()

Enumerations ​

enum KillExperienceMode ​

How much experience a defeated NPC gives

  • FIXED = 0 - Each NPC says: its Experience worth (the amount does not change with its level)
  • PER_LEVEL_TABLE = 1 - A table: the experience of an NPC of each level
  • FORMULA = 2 - A formula (a curve) that gets the level of the NPC and returns the experience

enum NpcScalingMode ​

Whether the levels of NPCs follow the level of the player

  • OFF = 0 - NPCs keep the level of their definition
  • SCALE_UP = 1 - NPCs weaker than the player are raised towards the player's level
  • SCALE_DOWN = 2 - NPCs stronger than the player are lowered towards the player's level
  • BOTH = 3 - Both

enum ScalingReference ​

Whose level the NPCs scale to

  • PARTY_AVERAGE = 0 - The average level of the party (rounded)
  • PARTY_HIGHEST = 1 - The highest level in the party
  • CURRENT_PLAYER = 2 - The character the player controls

enum DroppedItemsVisualSytle ​

What a dropped item looks like: its model, or a flat picture of its icon that always faces the camera.

  • MESH = 0
  • SPRITE = 1

enum DroppedItemsPhysics ​

What physics does to a dropped item. Place on ground: it is put on the ground under where it is dropped and stays still. Settle then freeze: it is thrown, falls and bounces, and is frozen once it comes to rest. Always simulated: it stays a physics body for as long as it lies there.

  • PLACE_ON_GROUND = 0
  • SETTLE_THEN_FREEZE = 1
  • ALWAYS_SIMULATED = 2

enum DroppedItemsLabelMode ​

When the name of a dropped item is shown above it: never, only when it is hovered, looked at or the interact target, or always.

  • NEVER = 0
  • HOVER_AND_TARGET = 1
  • ALWAYS = 2

enum CombatStyle ​

The options of combat style: real time, turn based.

  • REAL_TIME = 0
  • TURN_BASED = 1

enum InventorySharing ​

What the members of the party share

  • PER_CHARACTER = 0 - Every character has a bag and money of their own
  • SHARED_CURRENCY = 1 - One purse for the whole party; every character keeps their own bag
  • SHARED_CURRENCY_AND_BAG = 2 - One purse and one bag for the whole party (equipment stays on the character)

enum ProfessionsScope ​

Who owns the professions

  • PARTY = 0 - The whole party shares one set of professions, recipes and levels
  • CHARACTER = 1 - Every character has professions, recipes and levels of their own

enum ActionBarArrangement ​

Who arranges the action bar

  • FREE = 0 - The player drags abilities and items on and off the slots (the plan of a class and the effects can lock slots)
  • FIXED = 1 - The player cannot change any slot: only the plan of the class, effects and events fill the bar

enum PlayerBasicAttack ​

What the built-in basic attack of the player (and of the party members) is

  • AUTO_ATTACK = 0 - The basic attack of the weapon: an auto attack when the player clicks an enemy or holds the attack button
  • OFF = 1 - There is no built-in basic attack: the first slot of the action bar is an ordinary slot, and the attacks are whatever the game puts on the slots

enum DeathBehavior ​

The options of death behavior: game over, respawn checkpoint, permadeath.

  • GAME_OVER = 0
  • RESPAWN_CHECKPOINT = 1
  • PERMADEATH = 2

enum CombatLogKeep ​

What happens to the record of a fight when it ends (combat_log_keep)

  • DISCARD = 0
  • LAST_FIGHTS = 1
  • PLAY_SESSION = 2

enum QuestFailureRule ​

What a failed quest means by default (a quest can say otherwise itself)

  • FINAL = 0
  • RETRY = 1

enum QuestLevelDifficulty ​

How hard a quest is for a player, by the quest's level against the player's

  • TRIVIAL = 0
  • EASY = 1
  • NORMAL = 2
  • HARD = 3
  • DEADLY = 4

enum LevelGapMode ​

What happens to the current value of a pool when its maximum changes How the difference in level between the attacker and the target changes the chance to hit (Hit Rules)

  • NONE = 0 - Levels do not matter
  • PER_LEVEL = 1 - A number of points for every level the target is above the attacker, and optionally for every level it is below
  • TABLE = 2 - A table: the change in chance for each size of the gap
  • FORMULA = 3 - A formula that gets the gap (and can read both levels) and returns the change in chance

enum CapacityRule ​

The options of capacity rule: keep percentage, add gain, keep current, full restore.

  • KEEP_PERCENTAGE = 0 - Current stays the same share of the maximum (equipping +50 health at 60/100 gives 90/150; unequipping undoes it)
  • ADD_GAIN = 1 - A gained maximum is added to the current value (60/100 + 50 = 110/150); a lost maximum only caps it
  • KEEP_CURRENT = 2 - Current is untouched unless it exceeds the new maximum
  • FULL_RESTORE = 3 - A gained maximum fills the pool

enum LODLevel ​

LOD levels for NPC behavior optimization (distance-based)

  • HIGH_DETAIL = 0 - Full behavior, close to player
  • MEDIUM_DETAIL = 1 - Reduced updates, medium distance
  • LOW_DETAIL = 2 - Basic behavior only, far distance
  • MINIMAL_DETAIL = 3 - Very basic updates, very far
  • CULLED = 4 - Paused behavior, extremely far

enum FogState ​

Fog visibility states (fog-based)

  • VISIBLE = 0 - In player vision range - fully visible
  • EXPLORED = 1 - Previously seen but not in vision - greyed/hidden
  • SHROUDED = 2 - Never seen - completely hidden

enum FogEntityHideMode ​

How entities are hidden when in fog

  • RIG_HIDE = 0 - Hide the rig node (fast, keeps collision)
  • SHADER_FADE = 1 - Animate transparency (smooth, more expensive)
  • FULL_HIDE = 2 - Hide entire entity (may affect collision)

enum FogEdgeQuality ​

Fog edge quality - controls smoothness of fog boundaries

  • SHARP = 0 - No smoothing - pixelated edges (fastest)
  • LOW = 1 - Basic smoothing - slight blur
  • MEDIUM = 2 - Moderate smoothing - balanced
  • HIGH = 3 - High quality smoothing - smooth edges
  • ULTRA = 4 - Maximum quality - very smooth (most expensive)

enum BreathUsers ​

Who has to hold its breath where a movement volume asks for it (under water): nobody (breath is off), only the players, or everyone

  • NOBODY = 0
  • PLAYERS = 1
  • EVERYONE = 2

enum DurabilityMode ​

Whether equipment wears out: off, or it loses durability when its owner deals and takes damage.

  • OFF = 0
  • ON_HITS = 1

enum BrokenBehavior ​

What happens to a piece of equipment that reaches 0 durability: it stops giving anything until repaired, it is taken off into the bag, or it is destroyed.

  • NO_EFFECT = 0
  • UNEQUIP = 1
  • DESTROY = 2

enum DeathItemLoss ​

What happens to the items of a player who dies: they are kept, dropped on the ground around the body, or destroyed.

  • KEEP = 0
  • DROP = 1
  • DESTROY = 2

enum AudioPreloadMode ​

How the tracks of a world are loaded. Background: the world asks for every track its zones, weather, encounters and events can play when it starts, and the game goes on while they load. Wait: the loading screen waits until they are all loaded (more memory used at the start, no pause later)

  • BACKGROUND = 0
  • WAIT = 1

Constants ​

  • const CONFIG_PATH = "res://src/data/config_data/gameplay_config.tres" - The file the settings are saved in.
  • float DEFAULT_BUDGET_PER_LEVEL = 20.0 - The budget per item level when the project has no formula of its own
  • Dictionary SETTING_DESCRIPTIONS = { - Dictionary of setting descriptions for tooltips and help text

Property descriptions ​

Quests

int max_active_quests = 20 ​

Maximum active quests allowed

bool quest_markers_enabled = true ​

Show quest markers on map/minimap

QuestFailureRule default_quest_failure = QuestFailureRule.RETRY ​

What happens to a quest that fails when the quest does not say (FINAL: it is over; RETRY: it can be taken again)

float quest_game_over_delay = 3.0 ​

Seconds between failing a quest that ends the game and the game over, so the player sees the quest fail first (0 = at once)

bool allow_quest_abandon = true ​

Players may give up a quest they are on (a quest can say otherwise itself)

bool show_quest_levels = true ​

Show the level of a quest next to its name (quests without a level never show one)

int quest_level_trivial_gap = 5 ​

Player levels above the quest's level from which the quest is trivial

int quest_level_easy_gap = 2 ​

Player levels above the quest's level from which the quest is easy

int quest_level_hard_gap = 3 ​

Quest levels above the player's level from which the quest is hard

int quest_level_deadly_gap = 6 ​

Quest levels above the player's level from which the quest is deadly

bool auto_track_quest_objectives = true ​

Quest objectives tracked automatically

Footsteps

bool footsteps_from_movement = true ​

Make the footstep, jump and landing sounds from the movement of the entities (a footstep every stride of ground walked). Turn it off if your animations call for the sounds themselves (a method track on the walk and run animations calling _on_animation_walk_footstep_emit and _on_animation_run_footstep_emit of the animation player). An animation that does so silences this for itself anyway

float footstep_stride_walk = 0.8 ​

The distance in metres between two footsteps while walking (or crouching)

float footstep_stride_run = 1.5 ​

The distance in metres between two footsteps while running

bool footprints_enabled = true ​

The feet leave footprints on ground that takes them (sand, mud, snow ...: the terrain textures and the weather say which), and the Ground Mark effect and scripts can put marks on the ground

int footprint_limit = 96 ​

The most marks (footprints, tracks, scorches ...) there can be on the ground at once: the oldest is used again

float footprint_view_distance = 40.0 ​

How far from the camera the marks on the ground are drawn, in metres

float footstep_swim_interval = 1.3 ​

The time in seconds between two swim sounds (a stroke) while swimming and moving

Developer

bool developer_commands = false ​

The developer commands of the chat box (/give, /xp, /level, /money, /addtime, /settime, /quest). Turn them off for a release

Fog of War

bool fog_of_war_enabled = true ​

Enable fog of war system

int fog_layers = 2 ​

Number of fog layers (1 = just shroud, 2 = shroud + explored fog)

bool fog_persist_exploration = true ​

Persist explored areas between sessions

Color fog_shroud_color = Color(0.0, 0.0, 0.0, 1.0) ​

Shroud color (unexplored areas) - RGB used, alpha controls intensity

Color fog_explored_color = Color(0.0, 0.0, 0.0, 0.6) ​

Fog color (explored but not visible) - RGB used, alpha controls intensity

FogEdgeQuality fog_edge_quality = FogEdgeQuality.MEDIUM ​

Edge quality - higher = smoother edges but more expensive

float fog_edge_softness = 0.3 ​

Edge softness - how gradual the fog edge transition is (0.0 = sharp, 1.0 = very soft)

float fog_blur_radius = 1.0 ​

Blur radius - controls fog edge smoothness (0.5 = sharp, 3.0 = very blurred)

int fog_pixels_per_unit = 4 ​

Fog texture resolution (pixels per world unit) - higher = sharper but more memory

float fog_update_interval = 0.1 ​

Fog update interval (seconds) - how often vision circles update position

FogEntityHideMode fog_entity_hide_mode = FogEntityHideMode.RIG_HIDE ​

How entities are hidden when in fog

float fog_fade_duration = 0.3 ​

Fade duration when entering/exiting fog (for SHADER_FADE mode)

bool fog_keep_collision_active = true ​

Keep collision active when hidden in fog

bool fog_hide_nameplates = true ​

Hide nameplates when entity is in fog

bool fog_hide_map_markers = true ​

Hide map markers when entity is in fog

Save/Load Rules

bool allow_manual_save = true ​

Allow manual saving

bool allow_save_during_combat = false ​

Allow saving during combat

int max_save_slots = 10 ​

Maximum number of save slots (0 = unlimited)

String save_directory = "user://saves/" ​

Save directory path

bool save_on_area_transition = false ​

Save on area transition

Breath

BreathUsers breath_users = BreathUsers.PLAYERS ​

Who has to hold its breath under water (see Movement Volumes). Nobody: swimming is free

float breath_duration = 20.0 ​

How many seconds an entity can hold its breath

float breath_recovery_speed = 4.0 ​

How fast the breath comes back above the surface compared with how fast it runs out (4 = four times as fast)

int drowning_effect_id = 0 ​

The effect that is on an entity while it has no breath left (damage over time: it drowns). It is taken off when the breath comes back. 0 = nothing happens

Older switches

bool item_weight_enabled = false ​

(older switch: weight is a rule of the inventory styles below now, this one is not read)

Dropped Items

bool dropped_items_enabled = true ​

Items can lie in the world: the player can drop them, loot and events can leave them on the ground

int npc_loot_delivery = 0 ​

Where the loot of NPCs goes when its rule says "project default": into the body (looted through a window) or on the ground as dropped items (needs the switch above). A rule can say otherwise

int object_loot_delivery = 0 ​

The same for the loot of objects that are destroyed (a crate, a barrel)

DroppedItemsVisualSytle dropped_items_visual_style = DroppedItemsVisualSytle.MESH ​

What a dropped item looks like: the model of the item, or a flat picture of its icon

DroppedItemsPhysics dropped_items_physics = DroppedItemsPhysics.SETTLE_THEN_FREEZE ​

What physics does to a dropped item (see the options)

bool dropped_items_pickup_walk_over = true ​

Picking up by walking over the item

bool dropped_items_pickup_interact = true ​

Picking up with the interact key when the item is near

bool dropped_items_pickup_mouse_over = false ​

Picking up by clicking the item with the mouse (within the mouse range)

bool dropped_items_pickup_look_at = false ​

Picking up what the crosshair is on with the interact key (first person controllers), within the mouse range

float dropped_items_walk_over_radius = 1.2 ​

How close a character must come to pick an item up by walking over it

float dropped_items_mouse_range = 5.0 ​

How far away an item can be and still be picked up with the mouse or by looking at it

float dropped_items_pickup_delay = 1.0 ​

Seconds after an item lands before it can be picked up (so an item that is dropped is not taken straight back)

float dropped_items_lifetime = 0.0 ​

Seconds an item lies in the world before it disappears (0 = for ever)

DroppedItemsLabelMode dropped_items_label_mode = DroppedItemsLabelMode.HOVER_AND_TARGET ​

When the name of a dropped item is shown above it

float dropped_items_scatter_radius = 1.0 ​

How far from where they come from several dropped items are scattered

int dropped_items_max_in_world = 0 ​

The most dropped items in the world at once (0 = no limit). When it is passed the oldest one disappears

bool droped_items_saved_to_map = true ​

Are dropped items kept in the save and when the player leaves a world and comes back

PackedScene dropped_items_scene ​

The scene a dropped item is made from (empty = the one of the toolkit). It must have a DroppedItem script on its root: copy the toolkit scene and change how it looks

Durability

DurabilityMode durability_mode = DurabilityMode.OFF ​

Off: nothing wears. On hits: the weapons of a character lose durability when it deals damage, the rest of its equipment when it takes damage. The numbers are on the equipment slots (Equipment Definitions > Equipment Slots)

float durability_loss_per_hit = 1.0 ​

How much durability a piece loses in a hit (multiplied by the loss multiplier of its slot)

float durability_loss_chance = 1.0 ​

The chance that a piece wears in a hit (1 = every hit)

bool durability_one_piece_per_hit = false ​

When a character takes damage only one random piece of its equipment wears, not all of them

BrokenBehavior durability_broken_behavior = BrokenBehavior.NO_EFFECT ​

What a piece of equipment that reaches 0 durability does

float durability_repair_cost_multiplier = 0.25 ​

What a vendor charges to repair: the vendor value of the item times the share that is missing times this

Inventory Styles

InventoryStyle character_inventory_style = InventoryStyle.new() ​

The rules of the bag of the characters (players and companions): how items take space, the weight and what happens above the limit. The default is a list of slots from the Bag Slots stat and no weight

InventoryStyle container_inventory_style = InventoryStyle.new() ​

The rules of containers: chests, bodies and other objects (a container can have its own). In slots mode a container's own Max slots is its number of slots

Item Generation

CalculationFormula item_budget_formula ​

Turns the item level into the stat budget of a generated item (see ItemBudget): "Linear 20" gives 20 points of budget at level 1, 400 at level 20. A curve (hyperbolic, a soft cap) makes the high levels give less and less extra. Empty = Linear 20

LootLevelSource.Source default_npc_loot_level = LootLevelSource.Source.HOLDER ​

Where the item level of generated loot comes from when neither the loot table nor the rule of an NPC says (Holder = the level of the NPC)

LootLevelSource.Source default_object_loot_level = LootLevelSource.Source.PARTY ​

The same for chests, crates and other objects (an object has no level of its own, so Holder falls back to the party)

int fallback_item_level = 1 ​

The item level used when a source cannot give one (no party yet, no world level)

Rig Markers

Texture2D hitbox_outline_texture = null ​

Texture displayed for entity hitbox outlines

Texture2D selection_marker_texture = null ​

Texture displayed for entity selection markers

Texture2D target_marker_texture = null ​

Texture displayed for entity target markers

Outline Materials

Material hover_outline_material = null ​

Outline material when hovering over entities

Material selection_outline_material = null ​

Outline material for selected entities

Targeting Visuals

Texture2D max_distance_circle_marker = null ​

Maximum distance circle marker for ability range

Material attack_ribbon_material = null ​

Line of sight ribbon material from user to mouse

Tactical View Visuals

Material path_material = null ​

Path line material

Texture2D destination_material = null ​

Destination Marker Material

Target Textures

Array[Resource] ability_target_textures = [] ​

Array of available textures/markers for ability targeting

Party Management

int max_party_size = 4 ​

Maximum party size

bool reserve_experience_enabled = true ​

Reserve party members gain reduced experience

float reserve_experience_percentage = 0.5 ​

Experience percentage for reserve members (0.0 - 1.0)

int max_reserve_companions = 6 ​

How many recruited companions can wait in reserve besides the active party (0 = no reserve: a recruit with a full party is turned down)

InventorySharing inventory_sharing = InventorySharing.PER_CHARACTER ​

What the party members share: nothing (every character has a bag and a purse of their own), one purse, or one purse and one bag. Equipment always belongs to the character. Choose it before the game starts: a save made with another choice is not converted

int shared_bag_slots = 40 ​

The number of slots of the shared bag (when the party shares the bag)

ProfessionsScope professions_scope = ProfessionsScope.PARTY ​

Who owns the professions (craft schools): the whole party shares one set of professions, recipes and levels, or every character has a set of their own. Choose it before the game starts: a save made with the other choice is not converted

bool allow_character_switching = true ​

The player may take over any living party member(off: the first member of the party is the only one the player controls, the others are companions)

bool allow_switching_in_combat = true ​

The player may switch characters while the party is in combat

bool has_main_character = true ​

The first member of the party is the main character: it cannot wait in the reserve and its death ends the game (game over and permadeath). Off: there is no main character, any member can be put in the reserve, and the game ends only when the whole party is down. Needs Allow character switching: without it the first member is the only one the player controls, so it is always the main character

float companion_follow_distance = 3.0 ​

How far (in metres) a companion stays behind the member the player controls (each further companion stands a little farther back)

float companion_assist_range = 25.0 ​

How far from a fighting party member (in metres) a companion joins the fight

bool companions_use_abilities = true ​

Companions use their abilities in a fight (off: a companion only uses its basic attack)

New Game Rules

bool use_character_creation_ui = true ​

Use character creation/selection UI at game start

Array[CharacterDefinition] starting_party_composition = [] ​

Starting party composition (array of CharacterDefinitions)

int starting_map_id = 5754345 ​

Starting map/scene ID

Leveling

int max_level = 50 ​

Maximum level players can reach

Dictionary experience_per_level = ​

Experience required for each level (level -> xp_required) Key is level number (e.g., 2 for level 2), value is XP needed

Kill Experience

KillExperienceMode kill_experience_mode = KillExperienceMode.FIXED ​

How much experience a defeated NPC gives: its own Experience worth, a table by its level, or a formula of its level. The result is multiplied by the experience multiplier of the NPC (definition and placed NPC) and of its entity types (elite, boss ...)

bool kill_experience_falloff = false ​

Falloff: an NPC under the level of the party gives less experience. Off: an NPC gives the same however weak it is next to the party

NPC Level Scaling

NpcScalingMode npc_level_scaling = NpcScalingMode.OFF ​

Do NPCs follow the level of the player? Off: an NPC has the level of its definition (or placed NPC). Scale up: weak NPCs are raised. Scale down: strong NPCs are lowered. Both: both

ScalingReference scaling_reference = ScalingReference.PARTY_AVERAGE ​

Whose level the NPCs follow

int scale_up_within_levels = 3 ​

Scale up: an NPC lower than this many levels under the player is raised to exactly this many levels under. 3: a level 4 NPC meeting a level 13 player becomes level 10; a level 12 NPC stays (0 = raised to the player's level)

int scale_down_within_levels = 3 ​

Scale down: an NPC higher than this many levels over the player is lowered to exactly this many levels over. 3: a level 22 NPC meeting a level 13 player becomes level 16 (0 = lowered to the player's level)

bool rescale_npcs_on_respawn = true ​

A NPC that respawns takes the level the party needs now, not the one it had when it was made

bool rescale_npcs_on_party_change = true ​

NPCs that are alive take the new level when the party levels up, a member joins or leaves or the player switches character (an NPC in a fight waits for the fight to end)

int default_npc_growth_profile_id = GrowthProfile.ID_DEFAULT ​

The growth profile every NPC starts with (a GrowthProfile id; Entity Stats, Growth Profiles). It closes the chain of every NPC: a stat or pool that the NPC's own overrides and its own profile say nothing about grows as this profile says, then as its own definition says. 0 = none

Action Bar

int action_bar_slot_count = 30 ​

How many slots the action bar of a character has (the interface decides how many it shows and in what layout). Every slot has an input action action_slot_keybind_N in the Input Map: the first 30 get keys by default (1-0, Shift and Ctrl), the others are made without keys for you to bind (a mouse button, a gamepad button)

ActionBarArrangement action_bar_arrangement = ActionBarArrangement.FREE ​

Who arranges the action bar: the player (free), or nobody but the plan of the class, the effects and the events (fixed)

bool action_bar_auto_fill = false ​

A newly learned ability goes to the first free slot that nothing is planned for (off: it waits in the spellbook until the player drags it)

PlayerBasicAttack player_basic_attack = PlayerBasicAttack.AUTO_ATTACK ​

The built-in basic attack of the player and the companions. Off: there is none, slot 1 is a slot like any other (put the basic attack of your game there, and bind the slot to a mouse button if you like). Not for NPCs: they keep theirs. With a point-and-click controller, Off means that clicking an enemy only selects it

Input

float look_drag_threshold = 10.0 ​

Pixels the mouse must movewhile a button is held before a drag gesture starts (e.g. left-button free-look, or right-click that only looks when dragged). A release before that counts as a plain click.

bool log_input_routing = false ​

Print one line per mouse click saying whether it reached the world or was consumed by UI (and which Control consumed it). Handy for tracking down mouse_filter problems.

Controller

ControllerLogic player_controller_logic = null ​

How the player moves and acts: the type (WASD with mouse, point and click for one character or for a party) and its settings. The logic is kept in this config: change it here and the game uses it. Keys and mouse buttons are in the Input Map; the camera that goes with it is on the Camera tab

Camera

CameraLogic camera_logic = null ​

How the camera follows and looks: the type (third person, top-down focused or free) and its settings. Not every camera works with every controller: the warnings under the settings say so

Combat

CombatStyle combat_style = CombatStyle.REAL_TIME ​

Combat system style (real-time or turn-based)

bool draw_weapons_in_combat = false ​

Creatures draw their weapon when a fight starts and put it away when it ends: the unsheathe and sheathe clips of the weapon's Weapon Profile play (a weapon with none is simply in hand). Off: nobody draws or puts away

Death & Revival

DeathBehavior death_behavior = DeathBehavior.RESPAWN_CHECKPOINT ​

What happens when the player dies

Array[DeathCurrencyLoss] death_currency_losses = [] ​

The money a player loses on death: a list of rules, each for one currency (or all of them): a percentage, an amount, or set to a value. Nothing when empty

float death_experience_penalty = 0.0 ​

Experience penalty on death (percentage lost, 0.0 - 1.0)

DeathItemLoss death_item_loss = DeathItemLoss.KEEP ​

What happens to the items in the bag of a player who dies: kept, dropped on the ground around the body (see Dropped Items), or destroyed. Key items are never lost

DeathItemLoss death_equipment_loss = DeathItemLoss.KEEP ​

What happens to the equipment a player who dies wears: kept, taken off and dropped around the body, or destroyed. Key items are never lost

float death_item_loss_chance = 1.0 ​

What share of the stacks in the bag, and of the pieces of equipment, is lost on death (1 = all of them)

float death_durability_loss = 0.0 ​

The share of its maximum durability that every worn piece loses when the player dies (0 = none, 0.25 = a quarter). Needs durability on

Threat

bool use_threat_system = true ​

On: enemies attack whoever has made the most threat (damage, healing, taunts). Off: enemies attack the nearest of the entities that are fighting them, and the numbers below do nothing (a Taunt effect still forces a target). Turn it off for a game with no tank and healer roles

float heal_threat_multiplier = 0.5 ​

Healing makes threat on the enemies fighting the healed entity: this share of the healing done (0 = healing makes no threat), split between those enemies. A heal effect can set its own

float damage_threat_multiplier = 1.0 ​

Damage makes threat on the target: this multiplier on the number of the hit chosen below (1 = as much threat as damage, 0 = damage makes no threat). A damage effect has its own threat multiplier on top of this

Damage Results

DamageResult.DamageBasis threat_basis = DamageResult.DamageBasis.AFTER_TAKEN ​

Which number of a hit makes the target's threat: the effect's own number, after the attacker's modifiers, after the defender's modifiers (shields included) or only what reached health. Effects can override it

DamageResult.DamageBasis leech_basis = DamageResult.DamageBasis.HEALTH_ONLY ​

Which number of a hit life leech is taken from. Effects and stat effects can override it

DamageResult.DamageBasis reflect_basis = DamageResult.DamageBasis.HEALTH_ONLY ​

Which number of a hit a damage reflection is taken from. Effects and stat effects can override it

int max_reflect_chain = 1 ​

How many reactions deep a hit may be and still be reflected. 1: a normal hit is reflected, a reflection is never reflected again. Higher values let two reflecting entities reflect each other that many times

int max_effect_depth = 16 ​

How many effects may start inside each other (a proc that applies an effect that procs ...). Past it the effect is refused with a warning, so a loop of effects cannot freeze the game. Normal chains are 3 to 5 deep

bool zero_damage_counts_as_hit = true ​

A hit that modifiers reduced to 0 (armor, block ...) still counts as a hit: it triggers on-hit effects and procs and shows "0". Off: it counts as nothing happening

float minimum_damage = 0.0 ​

Smallest damage a hit that lands can end with (0 = armor can reduce a hit to nothing)

bool round_damage = false ​

Round the final damage a target takes to whole numbers

Pools

CapacityRule capacity_change_rule = CapacityRule.KEEP_PERCENTAGE ​

What happens to a pool's current value when its maximum changes from equipment, buffs or stats. Keeping the percentage means equipping and unequipping a +max item cannot be used to heal

CapacityRule level_up_capacity_rule = CapacityRule.ADD_GAIN ​

What happens to the current value of a pool whose maximum grows because the entity levelled up (stat growth, see the stat editor's Level Growth). Add the gain: the level-up health is available at once

Combat Log

CombatEvent.Detail combat_log_detail = CombatEvent.Detail.NORMAL ​

How much of a fight is recorded: Off, Critical (deaths, critical hits, kills), Normal (damage, healing, avoids, casts, effects gained and lost), Detailed (every effect, pool, cooldown and target change) or Debug (also movement and the decisions of the AI, for designing a fight). What a viewer shows is chosen by the viewer; this is what the game records at all

CombatLogKeep combat_log_keep = CombatLogKeep.DISCARD ​

What happens to the record of a fight when it ends. Discard: it is thrown away and a summary line stays in the chat. Keep the last fights: the last N are kept (for a combat report). Keep the play session: every fight until the game is closed

int combat_log_keep_fights = 5 ​

For "keep the last fights": how many fights

int combat_log_events_per_fight = 2000 ​

The most events one fight records (the oldest are dropped past it), so a long fight cannot grow without end

Hit Rules

bool use_hit_system = false ​

Do attacks have to hit? Off (default): no attack ever misses, whatever the abilities and stats say. On: an ability that can miss makes a hit roll against every enemy it reaches, once per use. Each ability can opt out (Hit rule: Always hits) or in (Can miss). See the Gameplay Config page of the documentation for the whole roll

float melee_range = 5.0 ​

An ability with Attack style: Automatic is melee when its range is at most this many metres, ranged beyond that

float base_melee_hit_chance = 95.0 ​

The chance to hit (percent) of a melee attack before the stats, the level gap and the limits are applied. 95 = a flat 5 % chance to miss

float base_ranged_hit_chance = 95.0 ​

The same for ranged attacks

float minimum_hit_chance = 5.0 ​

The chance to hit never goes below this (percent): a target is never untouchable. 0 = it can be impossible to hit

float maximum_hit_chance = 100.0 ​

The chance to hit never goes above this (percent): 95 = even the most accurate attacker misses one time in twenty. 100 = no limit

LevelGapMode level_gap_mode = LevelGapMode.NONE ​

How the levels of the two entities change the chance to hit. The settings of the mode you choose appear below it

bool glancing_hits_enabled = false ​

When a hit roll fails, a share of the failures become glancing hits instead of misses: the attack lands, but weaker

float glancing_chance = 30.0 ​

The share (percent) of the failed hit rolls that become glancing hits. 30 = three failures in ten are glancing, seven are misses

float glancing_reduction = 40.0 ​

How much a glancing hit is weaker (percent): its damage and healing are reduced by this much. 40 = it does 60 % of the damage and heals 60 % of the healing

bool glancing_other_effects_apply = true ​

Do the other effects of a glancing hit (statuses, buffs, debuffs) still apply? Off: only its damage and healing happen

Music and ambience

AudioPreloadMode audio_preload_mode = AudioPreloadMode.BACKGROUND ​

No description yet.

float audio_default_fade_seconds = 3.0 ​

The seconds a new music or ambience takes to fade in when its source does not say (a zone, a weather, an event)

float audio_combat_fade_seconds = 1.5 ​

The seconds the combat music takes to come in when a fight starts, and the music to come back when it ends

float audio_combat_music_end_delay = 4.0 ​

The seconds after the last fight of the party before the combat music ends (so a short break in the fight does not cut it)

Menu music

SoundSource main_menu_music ​

The music of the main menu: a track with its options, or a Music Album (Audio > Music Albums). None: the main menu is silent

SoundSource character_creation_music ​

The music of character creation. None: silent

SoundSource loading_screen_music ​

The music of the loading screen. None: silent

SoundSource pause_menu_music ​

The music of the pause menu. It plays over the game while the game is paused and the music of the game comes back when the game goes on. None: the music of the game goes on

NPC LOD System

bool npc_lod_enabled = true ​

Enable LOD system for NPCs

LOD Distance Thresholds

bool lod_follows_view_distance = false ​

Do the distances below follow the View distance setting of the player (Game Settings > Quality)? Off: the AI of NPCs gets simpler at the same distances for every player, so the game plays the same on every computer. On: a player who halves the view distance halves these distances too (cheaper, but NPCs far away behave simpler for them)

float lod_distance_high = 30.0 ​

Distance for HIGH detail (full updates)

float lod_distance_medium = 100.0 ​

Distance for MEDIUM detail (reduced updates)

float lod_distance_low = 250.0 ​

Distance for LOW detail (basic updates)

float lod_distance_minimal = 400.0 ​

Distance for MINIMAL detail (rare updates)

Terrain Range

bool lod_lock_outside_terrain = true ​

Entities that are not players stand still (no movement, no physics) wherever the terrain has ground it has not made solid: the terrain makes the ground solid only within its Collision radius of the players (96 m by default), so beyond it they would fall through the ground. They move again as soon as the ground is solid there. Only for maps with a ChronicleTerrain: a map without one is not affected. What they would have done meanwhile is not worked out (a later system will predict where they would be)

LOD Update Intervals

float lod_interval_high = 0.1 ​

Update interval for HIGH detail (seconds)

float lod_interval_medium = 0.5 ​

Update interval for MEDIUM detail

float lod_interval_low = 1.0 ​

Update interval for LOW detail

float lod_interval_minimal = 2.0 ​

Update interval for MINIMAL detail

LOD Batch Processing

float lod_optimization_interval = 1.0 ​

How often to check LOD levels (seconds)

int lod_controllers_per_batch = 10 ​

How many controllers to process per batch

Method descriptions ​

float get_fog_edge_threshold() ​

Get the smoothstep threshold based on edge quality

float get_fog_edge_range() ​

Get the smoothstep range based on edge softness

float get_lod_distance( level: LODLevel ) ​

Get LOD distance threshold for a given level

float get_lod_interval( level: LODLevel ) ​

Get update interval for a given LOD level

Array[String] get_lod_terrain_warnings( solid_radius: float = ChronicleTerrain.DEFAULT_COLLISION_RADIUS ) ​

What the NPC LOD distances mean next to the ground the terrain makes solid (solid_radius: the Collision radius of the terrain, 96 m by default). Empty = nothing to say.

LODLevel calculate_lod_level( distance: float ) ​

Calculate LOD level from distance

bool main_character_exists() ​

Is there a main character (the first member of the party)? Never when the player cannot switch characters

float get_kill_experience( npc_level: int, fixed_worth: int = 0 ) ​

The experience an NPC of this level gives by the settings (before the multipliers). fixed_worth is the Experience worth of the NPC itself

float get_kill_experience_falloff_factor( levels_below: int ) ​

The share of the experience that is kept for an NPC this many levels under the reference level (1 = all of it)

float get_item_budget( item_level: int ) ​

The stat budget of an item of this item level, before the slot, item and quality multipliers (see ItemBudget). Linear 20 per level when the formula is empty

int get_scaled_npc_level( base_level: int, reference_level: int, rank_types: Array = [] ) ​

The level an NPC takes by the scaling settings. reference_level is the level it scales to (0 = no party yet: no scaling). rank_types are the entity types (EntityTagDefinition) of the NPC

int get_experience_for_level( level: int ) ​

Get experience required to reach a specific level

int get_total_experience_for_level( level: int ) ​

Get total experience needed from level 1 to reach target level

void set_experience_for_level( level: int, xp: int ) ​

Set custom experience for a specific level

void reset_experience_to_defaults() ​

Clear custom experience and use default formula

bool has_custom_experience( level: int ) ​

Check if experience is customized for a level

GameplayConfig create_default() ​

The config of a project that has none yet: the third person camera with WASD and the mouse

GameplayConfig get_config() ​

The gameplay settings of the project (the copy of the running game, else the file).

Array[String] get_input_setup_warnings() ​

Problems with the chosen camera + controller pairing (empty = fine). Shown under the pickers in the config editor and printed once when the game starts. A pairing is never blocked: the InputManager resolves conflicts the same way (the controller's claim wins), these messages just explain what will be ignored.