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

Scripted effect · Roads to Power files

ep3_governor_yearly_3010_war_aid_effect

ep3_governor_yearly_3010_war_aid_effect = yes

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 10293 (56 lines). No parameters.

ep3_governor_yearly_3010_war_aid_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 10293 of its file. It takes no parameters: ep3_governor_yearly_3010_war_aid_effect = yes. The game's script calls it in 3 places, among them ep3_governor_yearly.3011 (event), ep3_governor_yearly.3012 (event) and Still, the … Fights (event ep3_governor_yearly.3010). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

What it does

  • If

    • scope:emperor:
      • is_defender_in_war = scope:war

    Then

    • scope:war:
      • add_defender = scope:governor

    Otherwise

    • scope:war:
      • add_attacker = scope:governor
  • Otherwise:
    • reverse_add_opinion = { target = scope:emperor opinion = 20 modifier = grateful_opinion }
  • pay_short_term_gold = { target = scope:emperor gold = medium_gold_value }
  • If

    • can_add_hook = { target = scope:emperor type = favor_hook }

    Then

    • add_hook = { target = scope:emperor type = favor_hook }

    Otherwise

    • Influence +100

• 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 (56 lines of game script)
ep3_governor_yearly_3010_war_aid_effect = {
	if = {
		limit = {
			scope:emperor = {
				is_defender_in_war = scope:war
			}
		}
		scope:war = {
			add_defender = scope:governor
		}
	}
	else = {
		scope:war = {
			add_attacker = scope:governor
		}

	}
	if = {
		limit = {
			root = scope:emperor
		}
		hidden_effect = {
			reverse_add_opinion = {
				target = scope:emperor
				opinion = 20
				modifier = grateful_opinion
			}
		}
	}
	else = {
		reverse_add_opinion = {
			target = scope:emperor
			opinion = 20
			modifier = grateful_opinion
		}
	}
	pay_short_term_gold = {
		target = scope:emperor
		gold = medium_gold_value
	}
	if = {
		limit = {
			can_add_hook = {
				target = scope:emperor
				type = favor_hook
			}
		}
		add_hook = {
			target = scope:emperor
			type = favor_hook
		}
	}
	else = {
		change_influence = major_influence_gain
	}
}

As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/07_dlc_ep3_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?