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

Scripted effect · Khans of the Steppe files

mpo_gok_offer_submission_effect

mpo_gok_offer_submission_effect = yes

game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt, line 1189 (335 lines). No parameters.

mpo_gok_offer_submission_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 1189 of its file. It takes no parameters: mpo_gok_offer_submission_effect = yes. The game's script calls it in 3 places, among them Offer Submission or Ruin (interaction), mpo_greatest_of_khans.0020 (event) and mpo_greatest_of_khans.0021 (event). Its body carries 10 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.

What it does

  • scope:recipient:
    • If

      • Their government is not Feudal
      • Their government is not Nomadic
      • Their government is not unplayable

      Then

      • If

        • scope:send_tribute = yes

        Then

        • pay_short_term_gold = { target = scope:actor gold = monumental_gold_value }

        Else if

        • NOT = { scope:low_obligations = yes }

        Then

        • pay_short_term_gold = { target = scope:actor gold = major_gold_value }

      Else if

      • Government is Nomadic
      • scope:actor: Government is Nomadic
      • scope:send_tribute = yes

      Then

      • pay_herd = { target = scope:actor value = domicile.massive_herd_value }

      Else if

      • scope:send_tribute = yes

      Then

      • pay_short_term_gold = { target = scope:actor gold = massive_gold_value }
    • If

      • One of these

        • scope:send_army = yes
        • or

          scope:send_siege_weapons = yes

      Then

      • If government is Nomadic › Their domicile: Herd changes
      • Else, if government is a Tribal-type Government: Gain -150 Prestige
      • Otherwise:
        • remove_short_term_gold = medium_gold_value
    • If

      • scope:send_army = yes

      Then

    • If

      • scope:send_siege_weapons = yes

      Then

  • If

    Then

    • scope:recipient:
      • If

        • None of these

          • Any held title: Title tier exactly Kingdom

        Then

        • If

          a check the game hides

          Then

          • Their capital county’s kingdom: Gains the … Title (recipient)
      • Every held title:
        • Where: Title tier at least Empire
        • scope:recipient:
          • destroy_title = prev
  • scope:recipient:
    • change_liege = { liege = scope:actor change = scope:change }
  • scope:recipient:
    • If

      • scope:actor › Their rite: Has the Pluralist Doctrine
      • One of these

      Then

  • scope:recipient:

• 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 (120 lines of game script)
mpo_gok_offer_submission_effect = {
	#Give tribute/troops before potentially losing title
	scope:recipient = {
		#Payments from demand payments
		#Costs more for those who aren't paying increased taxes
		if = {
			limit = {
				NOR = {
					government_has_flag = government_is_feudal
					government_has_flag = government_is_nomadic
					government_has_flag = government_is_herder
				}
			}
			if = {
				limit = {
					scope:send_tribute = yes
				}
				pay_short_term_gold = {
					target = scope:actor
					gold = monumental_gold_value
				}
			}
			else_if = {
				limit = {
					NOT = { scope:low_obligations = yes }
				}
				pay_short_term_gold = {
					target = scope:actor
					gold = major_gold_value
				}
			}
		}
		else_if = {
			limit = {
				government_has_flag = government_is_nomadic
				scope:actor = {
					government_has_flag = government_is_nomadic
				}
				scope:send_tribute = yes
			}
			pay_herd = {
				target = scope:actor
				value = domicile.massive_herd_value
			}
		}
		else_if = {
			limit = {
				scope:send_tribute = yes
			}
			pay_short_term_gold = {
				target = scope:actor
				gold = massive_gold_value
			}
		}
		#special soldiers
		#Pay some gold or herd to signify giving them up
		if = {
			limit = {
				OR = {
					scope:send_army = yes
					scope:send_siege_weapons = yes
				}
			}
			if = {
				limit = {
					government_has_flag = government_is_nomadic
				}
				domicile = {
					change_herd = medium_herd_loss
				}
			}
			else_if = {
				limit = {
					government_has_flag = government_is_tribal
				}
				add_prestige = medium_prestige_loss
			}
			else = {
				remove_short_term_gold = medium_gold_value
			}
		}
		if = {
			limit = {
				scope:send_army = yes
			}
			scope:actor = {
				gok_spawn_subjugated_quality_army_effect = { CHARACTER = scope:recipient }
			}
		}
		if = {
			limit = {
				scope:send_siege_weapons = yes
			}
			scope:actor = {
				gok_spawn_subjugated_siege_army_effect = { CHARACTER = scope:recipient }
			}
		}
	}

	#If emperor... loses titles
	if = {
		limit = {
			scope:recipient = {
				highest_held_title_tier >= tier_empire
			}
		}
		scope:recipient = {
			hidden_effect = {
				every_vassal = {
					limit = {
						highest_held_title_tier = tier_kingdom
					}
					create_title_and_vassal_change = {
						type = swear_fealty
						save_scope_as = change
					}
					change_liege = {
						liege = scope:actor
						change = scope:change
					}

As written in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.

The first 120 of its 335 lines; the rest is in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt from line 1189.

Where it is used

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

Source: game/common/scripted_effects/09_mpo_greatest_of_khans_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?