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

increase_house_relation_level_effect

increase_house_relation_level_effect = { HOUSE = … REASON = … }

game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt, line 21 (91 lines). Parameters: $HOUSE$, $REASON$.

increase_house_relation_level_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 21 of its file. A call passes 2 parameters: HOUSE and REASON. The game's script calls it in 1 place, among them Word from the … (event tgp_japan_yearly_events.1151). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.

What it does

  • If

    • scope:house != scope:other_house

    Then

    • If

      • has_house_relation_with = scope:other_house

      Then

      • One random house relation:
        • Where › Any relation house:
          • scope:other_house = this
        • If

          • has_house_relation_level = feud

          Then

          Else if

          • has_house_relation_level = rivalry

          Then

          Else if

          • has_house_relation_level = quarrel

          Then

          Else if

          • has_house_relation_level = neutral

          Then

          Else if

          • has_house_relation_level = cordial

          Then

          Else if

          • has_house_relation_level = friendly

          Then

      Otherwise

• 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 (91 lines of game script)
increase_house_relation_level_effect = {
	save_scope_as = house
	$HOUSE$ ?= { save_scope_as = other_house }
	if = {
		limit = {
			exists = scope:house
			exists = scope:other_house
			scope:house != scope:other_house
		}
		if = {
			limit = { has_house_relation_with = scope:other_house }
			random_house_relation = {
				limit = {
					any_relation_house = { scope:other_house = this }
				}
				save_scope_as = house_relation
				if = {
					limit = { has_house_relation_level = feud }
					scope:house = {
						set_house_relation_level_effect = {
							HOUSE = scope:other_house
							REASON = $REASON$
							LEVEL = rivalry
						}
					}
				}
				else_if = {
					limit = { has_house_relation_level = rivalry }
					scope:house = {
						set_house_relation_level_effect = {
							HOUSE = scope:other_house
							REASON = $REASON$
							LEVEL = quarrel
						}
					}
				}
				else_if = {
					limit = { has_house_relation_level = quarrel }
					scope:house = {
						set_house_relation_level_effect = {
							HOUSE = scope:other_house
							REASON = $REASON$
							LEVEL = neutral
						}
					}
				}
				else_if = {
					limit = { has_house_relation_level = neutral }
					scope:house = {
						set_house_relation_level_effect = {
							HOUSE = scope:other_house
							REASON = $REASON$
							LEVEL = cordial
						}
					}
				}
				else_if = {
					limit = { has_house_relation_level = cordial }
					scope:house = {
						set_house_relation_level_effect = {
							HOUSE = scope:other_house
							REASON = $REASON$
							LEVEL = friendly
						}
					}
				}
				else_if = {
					limit = { has_house_relation_level = friendly }
					scope:house = {
						set_house_relation_level_effect = {
							HOUSE = scope:other_house
							REASON = $REASON$
							LEVEL = amity
						}
					}
				}
			}
		}
		else = {
			set_house_relation_level_effect = {
				HOUSE = scope:other_house
				REASON = $REASON$
				LEVEL = cordial
			}
			random_house_relation = {
				limit = { any_relation_house = { this = scope:other_house } }
				save_scope_as = house_relation
			}
		}
	}
}

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

Where it is used

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

Events (1)

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