Skip to content

Modder Features

Lucius edited this page Jul 25, 2026 · 13 revisions

Modder Features

Directions for modders.

Plugin-specific data fields can be configured in FCS by using FCS_extended or merging the included fcs.def file.

Fix unloading of unique characters

When overriding, unique NPCs from the residents of TOWN will ensure to respawn. Also, unique NPCs from the bar squads of TOWN will become respawnable.

Characters spawned from the unique replacement spawn of CHARACTER will also be subject to the unique check. However, if that character itself is set as the unique replacement spawn of CHARACTER, it will spawn multiple times if the following conditions are met:

  • It is alive
  • Its hometown differs from the character that has already spawned

Fix town override

The following TOWN settings will be properly overridden:

  • is public

  • no-foliage range

  • type (settings for villages, ruins, etc.)

  • town radius mult (*1)

    *1 Since the type affects the town's range, the town radius mult is also overridden.

    • TOWN_TOWN = 2500
    • TOWN_VILLAGE = 937.5
    • TOWN_RUINS = 875
    • TOWN_POI = 437.5
    • TOWN_NEST_MARKER = 0
    • TOWN_NULL = 0
    • TOWN_NEST = 625 (town radius mult is disabled)
    • Other type = 1250

Town name override

Setting the town name override of TOWN to True will change the name.

Fix blueprint texture

The material of ITEM set as the blueprint item of RESEARCH will be assigned to the mesh in the blueprint.

Enable player involvement

the player involvement of WORLD_EVENT_STATE works correctly.

If the player involvement WORLD_EVENT_STATE is True, the imprisonment or death condition will only occur if the player is involved in the world state conditions.

Save reputation points

The reputation value increased or decreased by the DA_AFFECT_REPUTATION of dialog will no longer be initialized when the game is restarted, allowing the DC_RELATIONS condition to be persisted.

Inventory Item Expansion

Add the following settings to CHARACTER.

  • armour blueprints
  • backpack blueprints
  • crossbow blueprints
  • backpack inventory

Change the faction of a dismissed character

The character belongs to the faction set in the ex player faction of CONSTANTS. It prioritizes entries below the list; if undefined, it defaults to Tech Hunter.

Warning

If a non-existent faction or a player’s faction is set, it becomes No-Faction.

Limit bulk

You can adjust the range for each race and gender in the following RACE data fields. If bulk override is False, the global settings will be used.

  • bulk max female
  • bulk min female
  • bulk max male
  • bulk min male

Animal Armor Slots

The added slot is ATTACH_BODY. You can set initial equipment using the same method as for humans.

Note

You can adjust the following widgets in Kenshi_InventoryAnimalWindow.layout:

  • lbArmor
  • armour

Weapon Model Expansion

You can set the following weapon stats modifiers for MATERIAL_SPECS_WEAPON.

  • cut damage mod

    Cutting damage multiplier. Values below 0 are invalid.

  • blunt damage mod

    Blunt damage multiplier. Values below 0 are invalid.

  • pierce damage mod

    Pierce damage multiplier. Values below 0 are invalid.

  • bleed damage mod

    Bleed multiplier. Values below 0 are invalid.

  • indoors mod

    Added to the indoors bonus.

  • length mod

    Weapon length multiplier. Values below 0 are invalid.

  • combat weight mod

    Required Strength (calculated as Blunt Damage * 40) multiplier. Values below 0 are invalid.

  • armour penetration mod

    Added to the armour penetration.

  • race damage mod

    Race-specific damage multiplier.

  • animal damage mod

    Animal damage multiplier. Values below 0 are invalid.

  • human damage mod

    Human damage multiplier. Values below 0 are invalid.

  • robot damage mod

    Robot damage multiplier. Values below 0 are invalid.

Armor Expansion

You can adjust the crafting time for armor using craft time mult.

Setting weight override to True overrides the armor's weight with weight kg.

Race Limiter Expansion

You can limit the races that can equip items using races and races exclude of LIMB_REPLACEMENT, WEAPON and CROSSBOW. Additionally, you can configure race groups using race groups include and race groups exclude.

Item Furnace Expansion

Setting the flags of BUILDING_FUNCTIONALITY to 1 will apply the following settings to the furnace inventory:

Adjusting Inventory Size and Stack Count

  • stackable bonus minimum (Default is 10)
  • stackable bonus mult (Default is 1)
  • storage size height (Default is 7)
  • storage size width (Default is 12)

Limit storage items

Like standard storage containers, you can restrict stored items using the limit inventory or itemtype limit of BULDING.

Change the base item for production volume

In the furnace ingredients of BUILDING_FUNCTIONALITY, you can change the base item for production quantity to something other than iron.

Item Crafting Expansion

Setting the weapon types of BUILDING_FUNCTIONALITY restricts the weapons that can be crafted. Setting the custom model of WEAPON to True makes specifying weapon types of BUILDING_FUNCTIONALITY required.

Setting the limit weapon models of BUILDING_FUNCTIONALITY to True restricts the model for critical success to the weapon crafts of BUILDING_FUNCTIONALITY model.

Idle stances of Races and Factions

The idle stances of randomly generated NPCs can be selected from the idle stances of RACE. val0 is relative probability.

The idle stances of FACTION override the val0 of the idle stances of RACE.

Animation Expansion

You can change the aim animation by setting the aim anim of CROSSBOW.

Word Swap Expansion

You can use the following color codes as word swaps.

  • CLR_MAIN
  • CLR_SECONDARY
  • CLR_TITLE
  • CLR_BAD
  • CLR_BAD_BRIGHT
  • CLR_GOOD
  • CLR_GOOD_BRIGHT
  • CLR_GREYED
  • CLR_GREYED_BRIGHT
  • CLR_SPECIAL

Research Expansion

Special Combat Techniques

You can define special combat techniques by configuring the following settings in FCS.

  • Set is special for COMBAT_TECHNIQUE to True
  • Add COMBAT_TECHNIQUE to one of the following combat techniques:
    • ANIMAL_CHARACTER
    • CHARACTER
    • FACTION
    • RACE
    • WEAPON

Ranged Weapon Expansion

Shopping Expansion

Clone this wiki locally