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

Scripted effect

antiquarian_apply_modifier_to_artifact_effect

antiquarian_apply_modifier_to_artifact_effect = { MODIFIER = … }

game/common/scripted_effects/00_antiquarian_artifact_improvement_effects.txt, line 77 (26 lines). Parameters: $MODIFIER$.

antiquarian_apply_modifier_to_artifact_effect is a scripted effect in Crusader Kings III, written at line 77 of its file. A call passes 1 parameter: MODIFIER. The game's script calls it in 12 places, among them armor_improvement_effect (scripted effect), book_improvement_effect (scripted effect) and helmet_improvement_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_antiquarian_artifact_improvement_effects.txt.

What it does

  • If a check the game hides passes: the same again (1 line)
    • scope:artifact_target:
      • add_artifact_modifier = $MODIFIER$

    Otherwise

    • scope:liege › scope:artifact_target:
      • add_artifact_modifier = $MODIFIER$

• 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 (26 lines of game script)
antiquarian_apply_modifier_to_artifact_effect = {
	if = {
		limit = {
			scope:liege = {
				has_character_flag = ach_intent_artifact_boost_flag
			}
		}
		scope:artifact_target = {
			add_artifact_modifier = $MODIFIER$
		}
	}
	else = {
		scope:liege = {
			send_interface_toast = {
				type = event_artifact_good
				left_icon = scope:antiquarian_from_task
				right_icon = scope:artifact_target
				title = antiquarian_improved_artifact_message
				scope:artifact_target = {
					add_artifact_modifier = $MODIFIER$
				}
			}
		}
	}
	
}

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

Where it is used

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

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