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

Scripted effect · The Royal Court files

fund_inspiration_effect

fund_inspiration_effect = yes

game/common/scripted_effects/00_ep1_inspiration_effects.txt, line 2 (62 lines). No parameters.

fund_inspiration_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 2 of its file. It takes no parameters: fund_inspiration_effect = yes. The game's script calls it in 20 places, among them Sponsor Inspiration (interaction), fund_inspiration.0001 (event) and fund_inspiration.0012 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_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 (62 lines of game script)
fund_inspiration_effect = {
	scope:recipient = {
		if = {
			limit = {
				NOT = { is_courtier_of = scope:actor }
			}
			if = {
				limit = {
					any_traveling_family_member = {
						can_any_traveling_family_members_travel_trigger = yes
					}
				}
				every_traveling_family_member = {
					custom = fund_inspiration_interaction_reqruit_family_tooltip
					limit = {
						can_any_traveling_family_members_travel_trigger = yes
					}
					scope:actor = {
						add_courtier = prev
					}
				}
			}
			scope:actor = {
				add_courtier = scope:recipient
			}
		}
		add_opinion = {
			target = scope:actor
			modifier = grateful_opinion
			opinion = 40
		}
	}
	scope:actor = {
		sponsor_inspiration = scope:recipient.inspiration
	}
	if = {
		limit = {
			scope:actor = {
				is_ai = no
			}
			NOT = {
				exists = global_var:ep1_07_achievement_inspiration_count_tracker
			}
		}
		set_global_variable = {
			name = ep1_07_achievement_inspiration_count_tracker
			value = 1
		}
	}
	else_if = {
		limit = {
			scope:actor = {
				is_ai = no
			}
			exists = global_var:ep1_07_achievement_inspiration_count_tracker
		}
		change_global_variable = {
			name = ep1_07_achievement_inspiration_count_tracker
			add = 1
		}
	}
}

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

Where it is used

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

Source: game/common/scripted_effects/00_ep1_inspiration_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?