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

Scripted effect

add_lack_of_courts_modifier_effect

add_lack_of_courts_modifier_effect = yes

game/common/scripted_effects/00_county_corruption_effects.txt, line 188 (28 lines). No parameters.

add_lack_of_courts_modifier_effect is a scripted effect in Crusader Kings III, written at line 188 of its file. It takes no parameters: add_lack_of_courts_modifier_effect = yes. The game's script calls it in 1 place, among them add_random_county_corruption_modifier_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_county_corruption_effects.txt.

What it does

• 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 (28 lines of game script)
add_lack_of_courts_modifier_effect = {
	save_scope_as = county
	holder = {
		send_interface_message = {
			type = msg_county_corruption_bad
			title = {
				first_valid = {
					triggered_desc = {
						trigger = { exists = scope:deficit }
						desc = gain_county_corruption.message.deficit
					}
					triggered_desc = {
						trigger = { exists = scope:low_control }
						desc = gain_county_corruption.message.low_control
					}
					desc = gain_county_corruption.message.county_corruption
				}
			}
			left_icon = scope:county
			scope:county = {
				add_county_modifier = {
					modifier = county_corruption_lack_of_courts_modifier
					years = 10
				}
			}
		}
	}
}

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

Where it is used

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

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

Spotted a mistake on this page?