Repository navigation
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.
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
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
typeaffects the town's range, thetown radius multis 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
-
Setting the town name override of TOWN to True will change the name.
The material of ITEM set as the blueprint item of RESEARCH will be assigned to the mesh in the blueprint.
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.
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.
Add the following settings to CHARACTER.
- armour blueprints
- backpack blueprints
- crossbow blueprints
- backpack inventory
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.
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 femalebulk min femalebulk max malebulk min male
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:
lbArmorarmour
You can set the following weapon stats modifiers for MATERIAL_SPECS_WEAPON.
-
cut damage modCutting damage multiplier. Values below 0 are invalid.
-
blunt damage modBlunt damage multiplier. Values below 0 are invalid.
-
pierce damage modPierce damage multiplier. Values below 0 are invalid.
-
bleed damage modBleed multiplier. Values below 0 are invalid.
-
indoors modAdded to the indoors bonus.
-
length modWeapon length multiplier. Values below 0 are invalid.
-
combat weight modRequired Strength (calculated as
Blunt Damage * 40) multiplier. Values below 0 are invalid. -
armour penetration modAdded to the armour penetration.
-
race damage modRace-specific damage multiplier.
-
animal damage modAnimal damage multiplier. Values below 0 are invalid.
-
human damage modHuman damage multiplier. Values below 0 are invalid.
-
robot damage modRobot damage multiplier. Values below 0 are invalid.
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.
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.
Setting the flags of BUILDING_FUNCTIONALITY to 1 will apply the following settings to the furnace inventory:
-
stackable bonus minimum(Default is 10) -
stackable bonus mult(Default is 1) -
storage size height(Default is 7) -
storage size width(Default is 12)
Like standard storage containers, you can restrict stored items using the limit inventory or itemtype limit of BULDING.
In the furnace ingredients of BUILDING_FUNCTIONALITY, you can change the base item for production quantity to something other than iron.
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.
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.
You can change the aim animation by setting the aim anim of CROSSBOW.
You can use the following color codes as word swaps.
CLR_MAINCLR_SECONDARYCLR_TITLECLR_BADCLR_BAD_BRIGHTCLR_GOODCLR_GOOD_BRIGHTCLR_GREYEDCLR_GREYED_BRIGHTCLR_SPECIAL
You can define special combat techniques by configuring the following settings in FCS.
- Set
is specialforCOMBAT_TECHNIQUEto True - Add
COMBAT_TECHNIQUEto one of the followingcombat techniques:ANIMAL_CHARACTERCHARACTERFACTIONRACEWEAPON