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

Scripted effect · Silk and Silver files

fulfill_concordat_of_worms_effect

fulfill_concordat_of_worms_effect = { NEW_PHASE = … }

game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 1779 (60 lines). Parameters: $NEW_PHASE$.

fulfill_concordat_of_worms_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1779 of its file. A call passes 1 parameter: NEW_PHASE. The game's script calls it in 3 places, among them … (situation), gdp_guelph_ghibelline.6505 (event) and Guelphs & Ghibellines: the Concordat of Worms (event gdp_guelph_ghibelline.6500). Patch 1.21.0, from game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_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 (60 lines of game script)
fulfill_concordat_of_worms_effect = {
	every_player = {
		limit = {
			any_character_situation = { this = situation:guelph_ghibelline }
		}
		send_interface_message = {
			type = msg_guelph_ghibelline_neutral
			title = concordat_of_worms_fulfilled.t
			if = {
				limit = {
					situation:guelph_ghibelline = {
						NOT = { situation_current_phase = $NEW_PHASE$ }
					}
				}
				custom_tooltip = cow_phase_moves_to_$NEW_PHASE$.tt
			}
		}
	}
	if = {
		limit = { flag:$NEW_PHASE$ = flag:repose }
		save_gg_leaders_as_scopes_effect = yes
		if = {
			limit = {
				exists = scope:guelph_leader
				scope:ghibelline_leader ?= {
					has_trait = excommunicated
					faith.religious_head ?= scope:guelph_leader
				}
			}
			lift_character_excommunication_effect = {
				REQUESTING_CHARACTER = scope:guelph_leader
				TARGET_CHARACTER = scope:ghibelline_leader
			}
		}
		#Moving the start date back brings the investiture crisis council forward to next month
		situation:the_christian_church ?= {
			if = {
				limit = {
					has_situation_top_phase_parameter = the_christian_church_investiture_controversy
					NOT = { has_variable = investiture_awaiting_council }
				}
				set_variable = {
					name = investiture_crisis_start_date
					value = {
						value = current_date
						subtract = pam_investiture_crisis_duration_days
					}
				}
			}
		}
	}
	situation:guelph_ghibelline = {
		if = {
			limit = {
				NOT = { situation_current_phase = $NEW_PHASE$ }
			}
			situation_top_sub_region = { change_phase = $NEW_PHASE$ }
		}
	}
}

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

Where it is used

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

Situations (1)

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

Spotted a mistake on this page, or have an idea for the site?