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

Scripted effect

theology_3011_a_success_effect

theology_3011_a_success_effect = yes

game/common/scripted_effects/00_learning_lifestyle_effects.txt, line 1318 (27 lines). No parameters.

theology_3011_a_success_effect is a scripted effect in Crusader Kings III, written at line 1318 of its file. It takes no parameters: theology_3011_a_success_effect = yes. The game's script calls it in 1 place, among them Shared Prayer (event learning_theology.3011). Patch 1.20.1.2, from game/common/scripted_effects/00_learning_lifestyle_effects.txt.

What it does

  • If

    • NOT = { has_relation_friend = scope:believer }

    Then

  • add_learning_lifestyle_xp = minor_lifestyle_xp
  • scope:temple_county:
    • If

      • has_building = temple_01

      Then

      • add_building = temple_02

      Else if

      • has_building = temple_02

      Then

      • add_building = temple_03

      Else if

      • has_building = temple_03

      Then

      • add_building = temple_04

• 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 (27 lines of game script)
theology_3011_a_success_effect = {
	if = {
		limit = { NOT = { has_relation_friend = scope:believer } }
		set_relation_friend = { reason = friend_convinced_merchants_to_invest_in_church target = scope:believer }
	}
	add_learning_lifestyle_xp = minor_lifestyle_xp
	scope:temple_county = {
		if = {
			limit = {
				has_building = temple_01
			}
			add_building = temple_02
		}
		else_if = {
			limit = {
				has_building = temple_02
			}
			add_building = temple_03
		}
		else_if = {
			limit = {
				has_building = temple_03
			}
			add_building = temple_04
		}
	}
}

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

Where it is used

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

Events (1)

Source: game/common/scripted_effects/00_learning_lifestyle_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?