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

grand_campaign_update_war_participants_effect

grand_campaign_update_war_participants_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 2676 (45 lines). No parameters.

grand_campaign_update_war_participants_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2676 of its file. It takes no parameters: grand_campaign_update_war_participants_effect = yes. The game's script calls it in 2 places, among them …China's Grand Campaign: Onwards (event tgp_china_ministry.0001) and grand_campaign_contribution_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

What it does

  • scope:target_title › Every in de jure hierarchy › Their holder:
    • If

      • Government does not allow: redirects wars to overlord
      • NOT = { top_overlord = scope:owner }
      • No character war:

      Then

      • scope:grand_campaign_war:
        • add_defender = prev
  • scope:great_project › Every contribution:
    • Where:
      • contribution_is_funded = yes
    • contributor = { … }

• 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 (45 lines of game script)
grand_campaign_update_war_participants_effect = {
	#bring in all relevant defenders
	scope:target_title ?= {
		every_in_de_jure_hierarchy = {
			holder ?= {
				if = {
					limit = {
						NOR = {
							government_allows = redirects_wars_to_overlord
							top_overlord = scope:owner
							any_character_war = {
								this = scope:grand_campaign_war
							}
						}
					}
					scope:grand_campaign_war ?= {
						add_defender = prev
					}
				}
			}
		}
	}
	scope:great_project = {
		every_contribution = {
			limit = {
				contribution_is_funded = yes
			}
			contributor = {
				if = {
					limit = {
						this != scope:war_leader
						this != scope:owner
						NOT = {
							any_character_war = {
								scope:grand_campaign_war ?= this
							}
						}
					}
					save_scope_as = contributor
					trigger_event = tgp_china_ministry.0004
				}
			}
		}
	}
}

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 grand_campaign_update_war_participants_effect.

Events (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?