CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

Scripted effect

update_company_ledger_perk_effect

update_company_ledger_perk_effect = yes

game/common/scripted_effects/00_diplomacy_perk_effects.txt, line 829 (18 lines). No parameters.

update_company_ledger_perk_effect is a scripted effect in Crusader Kings III, written at line 829 of its file. It takes no parameters: update_company_ledger_perk_effect = yes. The game's script calls it in 3 places, among them Centralization (lifestyle perk), on_trade_route_created (on action) and on_trade_route_edited (on action). Patch 1.21.0, from game/common/scripted_effects/00_diplomacy_perk_effects.txt.

What it does

  • remove_all_character_modifier_instances = company_ledger_perk_modifier
  • If

    Then

    • Every trade route:
      • Where:
        • has_trader = yes
      • prev:

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (18 lines of game script)
update_company_ledger_perk_effect = {
	remove_all_character_modifier_instances = company_ledger_perk_modifier

	if = {
		limit = {
			government_has_flag = government_is_merchant
			has_perk = centralization_perk
		}
		every_trade_route = {
			limit = { has_trader = yes }
			prev = {
				add_character_modifier = {
					modifier = company_ledger_perk_modifier
				}
			}
		}
	}
}

As written in game/common/scripted_effects/00_diplomacy_perk_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls update_company_ledger_perk_effect.

Lifestyle perks (1)

On actions (the game's own hooks) (2)

  • on_trade_route_created
  • on_trade_route_edited

Source: game/common/scripted_effects/00_diplomacy_perk_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?