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

Scripted effect · The Royal Court files

add_scaled_artifact_modifier_majesty_effect

add_scaled_artifact_modifier_majesty_effect = yes

game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 4235 (533 lines). No parameters.

add_scaled_artifact_modifier_majesty_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 4235 of its file. It takes no parameters: add_scaled_artifact_modifier_majesty_effect = yes. The game's script calls it in 29 places, among them An Appeal to the Gods (event coronation_events.1039), Recording a Memory (event bp1_yearly.7055) and Where All the World Gazes (event bp2_yearly.6070). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.

What it does

  • 1 of 15 things will happen:
    • 7% (base chance; changed in play):
      • If

        • rarity = common

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_1_modifier
          • 33%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_2_modifier

        Else if

        • rarity = masterwork

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_3_modifier
          • 33%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_4_modifier

        Else if

        • rarity = famed

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_5_modifier
          • 33%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_6_modifier

        Else if

        • rarity = illustrious

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_7_modifier
          • 33%:
            • add_artifact_modifier = artifact_short_reign_duration_mult_8_modifier
    • 7% (base chance; changed in play):
      • If

        • rarity = common

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_dynasty_opinion_1_modifier
          • 33%:
            • add_artifact_modifier = artifact_dynasty_opinion_2_modifier

        Else if

        • rarity = masterwork

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_dynasty_opinion_3_modifier
          • 33%:
            • add_artifact_modifier = artifact_dynasty_opinion_4_modifier

        Else if

        • rarity = famed

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_dynasty_opinion_5_modifier
          • 33%:
            • add_artifact_modifier = artifact_dynasty_opinion_6_modifier

        Else if

        • rarity = illustrious

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_dynasty_opinion_7_modifier
          • 33%:
            • add_artifact_modifier = artifact_dynasty_opinion_8_modifier
    • 7% (base chance; changed in play):
      • If

        • rarity = common

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_monthly_prestige_add_1_modifier
          • 33%:
            • add_artifact_modifier = artifact_monthly_prestige_add_2_modifier

        Else if

        • rarity = masterwork

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_monthly_prestige_add_3_modifier
          • 33%:
            • add_artifact_modifier = artifact_monthly_prestige_add_4_modifier

        Else if

        • rarity = famed

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_monthly_prestige_add_5_modifier
          • 33%:
            • add_artifact_modifier = artifact_monthly_prestige_add_6_modifier

        Else if

        • rarity = illustrious

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_monthly_prestige_add_7_modifier
          • 33%:
            • add_artifact_modifier = artifact_monthly_prestige_add_8_modifier
    • 7% (base chance; changed in play):
      • If

        • rarity = famed

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_monthly_dynasty_prestige_1_modifier
          • 33%:
            • add_artifact_modifier = artifact_monthly_dynasty_prestige_2_modifier

        Else if

        • rarity = illustrious

        Then

        • 1 of 2 things will happen:
          • 67%:
            • add_artifact_modifier = artifact_monthly_dynasty_prestige_3_modifier
          • 33%:
            • add_artifact_modifier = artifact_monthly_dynasty_prestige_4_modifier
    • 7% (base chance; changed in play) › 1 of 3 things will happen:
      • 33% (base chance; changed in play):
        • If all of these hold:
          • Conditions:
            • rarity = common
          • Then:
            • add_artifact_modifier = artifact_monthly_prestige_gain_per_dread_add_1_modifier
        • Else, if all of these hold: … (more in the script below)
        • … (more in the script below)
      • … (more in the script below)
    • … (more in the script below)

• 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)
add_scaled_artifact_modifier_majesty_effect = {
	random_list = {
		#pick = 2
		#unique = yes

		# Short Reign Duration
		20 = {
			modifier = {
				exists = scope:inspiration_owner
				scope:inspiration_owner = { has_variable = chosen_reign_mod }
				add = 160
			}
			if = {
				limit = {
					rarity = common
				}
				random_list = {
					20 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_1_modifier
					}
					10 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_2_modifier
					}
				}
			}
			else_if = {
				limit = {
					rarity = masterwork
				}
				random_list = {
					20 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_3_modifier
					}
					10 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_4_modifier
					}
				}
			}
			else_if = {
				limit = {
					rarity = famed
				}
				random_list = {
					20 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_5_modifier
					}
					10 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_6_modifier
					}
				}
			}
			else_if = {
				limit = {
					rarity = illustrious
				}
				random_list = {
					20 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_7_modifier
					}
					10 = {
						add_artifact_modifier = artifact_short_reign_duration_mult_8_modifier
					}
				}
			}
		}

		# Dynasty Opinion
		20 = {
			modifier = {
				exists = scope:inspiration_owner
				scope:inspiration_owner = { has_variable = chosen_dynasty_mod }
				add = 160
			}
			if = {
				limit = { rarity = common }
				random_list = {
					20 = {
						add_artifact_modifier = artifact_dynasty_opinion_1_modifier
					}
					10 = {
						add_artifact_modifier = artifact_dynasty_opinion_2_modifier
					}
				}
			}
			else_if = {
				limit = { rarity = masterwork }
				random_list = {
					20 = {
						add_artifact_modifier = artifact_dynasty_opinion_3_modifier
					}
					10 = {
						add_artifact_modifier = artifact_dynasty_opinion_4_modifier
					}
				}
			}
			else_if = {
				limit = { rarity = famed }
				random_list = {
					20 = {
						add_artifact_modifier = artifact_dynasty_opinion_5_modifier
					}
					10 = {
						add_artifact_modifier = artifact_dynasty_opinion_6_modifier
					}
				}
			}
			else_if = {
				limit = { rarity = illustrious }
				random_list = {
					20 = {
						add_artifact_modifier = artifact_dynasty_opinion_7_modifier
					}
					10 = {
						add_artifact_modifier = artifact_dynasty_opinion_8_modifier
					}
				}
			}
		}

		# Dynasty Prestige

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

The first 120 of its 533 lines; the rest is in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt from line 4235.

Where it is used

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

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