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

seljuk_request_independence_from_liege_effect

seljuk_request_independence_from_liege_effect = yes

game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt, line 750 (42 lines). No parameters.

seljuk_request_independence_from_liege_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 750 of its file. It takes no parameters: seljuk_request_independence_from_liege_effect = yes. The game's script calls it in 1 place, among them story_seljuk_invasion (story cycle). Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt.

The comment above it in the file

Fight for independence

What it does

  • scope:lead_seljuk:
    • If

      • Their liege › Any targeting faction:
        • faction_type = independence_faction

      Then

      Else if

      • can_create_faction = { target = liege type = independence_faction }

      Then

    • Their liege › One random targeting faction:
      • faction_type = independence_faction

• 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 (42 lines of game script)
seljuk_request_independence_from_liege_effect = {
	save_scope_as = lead_seljuk
	scope:lead_seljuk = {
		if = {
			limit = {
				liege = {
					any_targeting_faction = {
						faction_type = independence_faction
					}
				}
			}
			run_interaction = {
				interaction = join_independence_faction_interaction
				actor = scope:lead_seljuk
				recipient = liege
				execute_threshold = decline
			}
		}
		else_if = {
			limit = {
				can_create_faction = {
					target = liege
					type = independence_faction
				}
			}
			run_interaction = {
				interaction = start_independence_faction_interaction
				actor = scope:lead_seljuk
				recipient = liege
				execute_threshold = decline
			}
		}
		#debug_log_scopes = yes
		#debug_log = "Seljuk asked for independence"
		liege = {
			random_targeting_faction = {
				faction_type = independence_faction
				faction_start_war = {}
			}
		}
	}
}

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

Where it is used

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

Story cycles (1)

  • story_seljuk_invasion

Source: game/common/scripted_effects/01_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?