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

Scripted effect · Legacy of Persia files

fp3_story_cycle_seljuks_invasion_events_grant_seljuks_land_effect

fp3_story_cycle_seljuks_invasion_events_grant_seljuks_land_effect = yes

game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt, line 535 (84 lines). No parameters.

fp3_story_cycle_seljuks_invasion_events_grant_seljuks_land_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 535 of its file. It takes no parameters: fp3_story_cycle_seljuks_invasion_events_grant_seljuks_land_effect = yes. The game's script calls it in 2 places, among them Nomadic Invasion (casus belli) and Desperate Nomads (event fp3_story_cycle_seljuks_invasion_events.0002). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.

What it does

  • scope:fp3_seljuk_settle_target: Gains the … Title (lead seljuk)
  • If highest held Title is more than Duchy Rank › scope:lead_seljuk:
    • change_liege = { liege = scope:seljuk_victim change = scope:change }
  • scope:lead_seljuk: Opinion: Alliance Deal
  • … and I enter a mutual Alliance
  • create_alliance = { target = scope:lead_seljuk allied_through_owner = scope:seljuk_victim allied_through_target = scope:lead_seljuk }
  • scope:lead_seljuk: Adopts Clan Government

• 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 (84 lines of game script)
fp3_story_cycle_seljuks_invasion_events_grant_seljuks_land_effect = {
	#to display proper reason in title history, as effect is used in both event and war cb
	if = {
		limit = {
			exists = scope:war
		}
		create_title_and_vassal_change = {
			type = conquest
			save_scope_as = change
		}
	}
	else = {
		create_title_and_vassal_change = {
			type = granted
			save_scope_as = change
		}
	}

	show_as_tooltip = { # UI/UX
		scope:fp3_seljuk_settle_target = {
			change_title_holder = {
				holder = scope:lead_seljuk
				change = scope:change
			}
		}
	}
	hidden_effect = {
		scope:fp3_seljuk_settle_target = {
			change_title_holder = {
				holder = scope:lead_seljuk
				change = scope:change
			}
			every_de_jure_county = {
				change_title_holder = {
					holder = scope:lead_seljuk
					change = scope:change
				}
			}
		}
	}
	if = {
		limit = {
			highest_held_title_tier > tier_duchy

		}
		send_interface_toast = {
			type = event_toast_effect_good
			title = east_europe.0030.t
			left_icon = scope:lead_seljuk
			right_icon = scope:fp3_seljuk_settle_target
			
			scope:lead_seljuk = {
				change_liege = {
					liege = scope:seljuk_victim
					change = scope:change
				}
			}
		}
	}


	resolve_title_and_vassal_change = scope:change

	# Give them an Alliance
	scope:lead_seljuk = {
		save_scope_as = recipient # for loc purposes
		add_opinion = {
			target = scope:seljuk_victim
			modifier = event_negotiated_alliance_opinion
		}
	}
	custom_tooltip = negotiate_alliance_effect_tooltip
	create_alliance = {
		target = scope:lead_seljuk
		allied_through_owner = scope:seljuk_victim
		allied_through_target = scope:lead_seljuk
	}

	# Housekeeping for the lead seljuk fella
	scope:lead_seljuk = {
		add_character_flag = settled_seljuk
		change_government = clan_government
	}
}

As written in game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.

Where it is used

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

Casus belli (1)

Events (1)

Source: game/common/scripted_effects/03_dlc_fp3_scripted_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?