Crusader Kings III

Paradox Development Studio · Strategy

Crusader Kings III patch notes · May 2, 2023

Experiment

Dev Diary #126: Modding Activities

What's new in Dev Diary #126: Modding Activities: 33 changes to Crusader Kings III, released May 2, 2023.

Balance · 1

  • Trait XP can degrade over time, the example reducing it by 5 every month down to a minimum of 20; unused in vanilla.

    trait xp degradation

Content · 2

  • A new 'ransomed' artifact history state was added.

    ransomed artifact history state
  • Added a character modifier named Men-at-arms Counter Resistance.

    character modifier men-at-arms counter resistance

Controls · 1

  • A new expand auto-complete mode for the console can be toggled via settings under Tools.

    console auto-complete mode

System · 24

  • Effects inside a 'bla ?= {}' scope are skipped entirely when the scope bla does not exist.

    scope exists operator behaviour in effect
  • A new conditional scope change operator ?= returns false or skips effects when the scope does not exist.

    conditional scope change operator
  • One option category can be marked special and is picked first when planning an activity, used in vanilla for special types like Tour variety.

    special option category
  • Character portrait assets can be attached to the root of 3D entities via at_root_of_entity, in the same config location as shared_pose_entity and node.

    character portrait attachment to 3d entity
  • Adds a modifier to the speed of raiding armies moving over land.

    movement speed for raiding armies over land
  • Province GetName and GetNameNoTooltip now return the county name when the province is a capital.

    province name for capital
  • Activities are fully moddable, composed of options and phases where each phase is a type and a location.

    activity options and phases modding support
  • The set_location effect now accepts stick_to_location = yes to pin someone's default location separately from their capital or court.

    set_location effect stick_to_location option
  • Existing councillors can be removed nicely using remove_existing_councillor = yes in the assign_councillor_type effect.

    councillor removal in assign_councillor_type
  • Any trait can define tracks and XP thresholds for stacking modifiers, currently applied to lifestyle traits.

    leveled trait
  • New neighboring_province and army_in_location list types allow efficient script lookup of adjacent provinces and armies.

    army and province list builder
  • Database types can be registered as scopes, disallowing effects on them, with traits and activity types now scopes usable in script.

    database types as scope type
  • Interactions can set a cooldown on all other interactions in the same category via category_cooldown properties.

    interaction category cooldown
  • Data models can now dynamically get sub-sections (First, SkipFirst, Last, SubSpan) and set datacontext to a specific item.

    data model sub-section and datacontext function
  • Predefined phases are always present and non-removable, while pickable phases let players choose provinces with a max limit.

    predefined and pickable phase
  • Special guests are selected by trigger from invited characters or automatically by effect, and can be required, invalidating the activity if they decline.

    special guest selection and requirement
  • Adds a modifier to hostile county attrition for raiding armies that ignores the usual 10% lower limit, allowing reduction to 0.

    hostile county attrition for raiding army
  • The PdxData data_binding 'macro' system is now supported for mods too.

    pdxdata data_binding macro system
  • Phases have an order; for pickable phases the last player-picked stop comes last, and Journey Home is always at the very end.

    phase ordering
  • Invite rules are reusable effects in their own files that activities can enable by default and order, with special guests and manually invited characters invited first.

    invite rule reuse and ordering
  • Every option can forcefully add characters to the host's and guests' entourage, selected from court characters with a weight and a max pick for player and AI.

    option entourage character selection
  • Intents are reusable files with a per-activity default, optional target character, and AI target filtering recommended for large groups.

    intent definition and ai targeting
  • A new 'scope exists' operator '?=' was added so that 'bla ?= { stuff }' replaces the longer 'exist = bla bla = { stuff }' form.

    scope exists script operator
  • Option defaults are chosen by a trigger so different defaults can apply to different people; vanilla makes Hajj the default for Muslims.

    default option picking via trigger

UI · 2

  • The Settings window no longer pops up when reloading localization data.

    settings window on localization reload
  • Activity scripts can define plugin widgets inserted into the main activity window, stored under gui/activity_window_widgets, with mods able to add more insertion points.

    plugin widget insertion

Fix · 2

  • A 'lowborn' character can now actually be generated from character templates, with dynasty = none correctly honored.

    lowborn character generation from template
  • Interactions targeting artifacts can now directly open up a specific artifact.

    artifact interaction

Also in this patch1

  • In the next release traits are fully integrated as scopes for both triggers and effects.

    trait scope triggers and effect