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

Scripted effect · All Under Heaven files

make_movement_leader_effect

make_movement_leader_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 560 (70 lines). No parameters.

make_movement_leader_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 560 of its file. It takes no parameters: make_movement_leader_effect = yes. The game's script calls it in 2 places, among them han_7308 (history) and debate_host_rewards_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The comment above it in the file

For when a character becomes the new movement leader
Use in a character scope

What it does

  • If

    • Any character situation:
      • situation_type = dynastic_cycle
      • Any participant group:
        • participant_group_has_character = scope:new_movement_leader
        • NOT = { participant_group_type = hegemon_ruler }
        • NOT = { participant_group_type = undecided_movement }
        • NOT = { participant_group_type = other_rulers }

    Then

    • If

      • scope:debate_loser: Movement power less than scope:new movement leader.var:movement power

      Then

      • Depending on leaders movement:
        • When leaders movement is situation:dynastic cycle.situation participant group:expansion movement:
        • When leaders movement is situation:dynastic cycle.situation participant group:advancement movement:
        • When leaders movement is situation:dynastic cycle.situation participant group:conservative movement:
        • When leaders movement is situation:dynastic cycle.situation participant group:pro hegemon movement:

• 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 (70 lines of game script)
make_movement_leader_effect = {
	save_temporary_scope_as = new_movement_leader
	if = {
		limit = {
			any_character_situation = {
				situation_type = dynastic_cycle
				any_participant_group = {
					participant_group_has_character = scope:new_movement_leader
					NOR = { # Is not a group without a leader
						participant_group_type = hegemon_ruler
						participant_group_type = undecided_movement
						participant_group_type = other_rulers
					}
					save_temporary_scope_as = leaders_movement
				}
			}
		}
		custom_description = {
			text = make_movement_leader_effect_desc
			subject = scope:new_movement_leader
			object = scope:leaders_movement
			situation:dynastic_cycle ?= {
				random_participant_group = {
					limit = {
						participant_group_has_character = scope:new_movement_leader
					}
					set_variable = {
						name = movement_leader
						value = scope:new_movement_leader
					}
				}
			}
		}
		if = {
			limit = {
				scope:debate_loser ?= {
					this != scope:new_movement_leader
					var:movement_power < scope:new_movement_leader.var:movement_power
				}
			}
			switch = {
				trigger = scope:leaders_movement
				situation:dynastic_cycle.situation_participant_group:expansion_movement = {
					tgp_activate_catalyst_against_hegemon_effect = {
						HEGEMON = scope:new_movement_leader.top_liege
						CATALYST = catalyst_movement_gained_power_expansion
					}
				}
				situation:dynastic_cycle.situation_participant_group:advancement_movement = {
					tgp_activate_catalyst_against_hegemon_effect = {
						HEGEMON = scope:new_movement_leader.top_liege
						CATALYST = catalyst_movement_gained_power_advancement
					}
				}
				situation:dynastic_cycle.situation_participant_group:conservative_movement = {
					tgp_activate_catalyst_against_hegemon_effect = {
						HEGEMON = scope:new_movement_leader.top_liege
						CATALYST = catalyst_movement_gained_power_conservative
					}
				}
				situation:dynastic_cycle.situation_participant_group:pro_hegemon_movement = {
					tgp_activate_catalyst_against_hegemon_effect = {
						HEGEMON = scope:new_movement_leader.top_liege
						CATALYST = catalyst_movement_gained_power_pro_hegemon
					}
				}
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

Where it is used

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

History files (the start of the game) (1)

  • han_7308 (characters)

Scripted effects (1)

Source: game/common/scripted_effects/10_dlc_tgp_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?