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

set_alchemy_inspiration_type_effect

set_alchemy_inspiration_type_effect = { BASE_SCOPE = … NO_TYPE = … }

game/common/scripted_effects/00_ep1_inspiration_effects.txt, line 77 (67 lines). Parameters: $BASE_SCOPE$, $NO_TYPE$.

set_alchemy_inspiration_type_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 77 of its file. A call passes 2 parameters: BASE_SCOPE and NO_TYPE. The game's script calls it in 2 places, among them Inspiration Funded (event fund_inspiration.0081) and Alchemy Inspiration (inspirations). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (67 lines of game script)
set_alchemy_inspiration_type_effect = {
	save_temporary_scope_value_as = {
		name = allow_no_type_option
		value = $NO_TYPE$
	}
	hidden_effect = {
		$BASE_SCOPE$ = {
			#The type has been decided in events, when the character got inspired, or now. Let's save it! (might still leave it up to the sponsor if allow_no_type_option = yes!)
			if = {
				limit = {
					NOT = { exists = var:artifact_alchemy_type }
				}
				random_list = { #What do they want to do?
					5 = { #Elixirs
						modifier = {
							add = 5
							has_trait = arrogant
						}
						set_variable = {
							name = artifact_alchemy_type
							value = flag:alchemy_type_elixirs
						}
					}
					10 = { #Metals
						set_variable = {
							name = artifact_alchemy_type
							value = flag:alchemy_type_metals
						}
					}
					10 = { #Panacea: a cure-all for all disease
						modifier = {
							add = 10
							has_trait = lifestyle_physician
						}
						set_variable = {
							name = artifact_alchemy_type
							value = flag:alchemy_type_panacea
						}
					}
					5 = { #Immortality
						modifier = {
							add = 5
							has_trait = arrogant
						}
						set_variable = {
							name = artifact_alchemy_type
							value = flag:alchemy_type_immortality
						}
					}
					50 = { #They don't care and you can decide!
						trigger = {
							scope:allow_no_type_option = yes
						}
						modifier = {
							add = 30
							has_personality_submissive_trigger = yes
						}
						ai_value_modifier = {
							ai_boldness = -0.25
							ai_energy = -0.25
						}
					}
				}
			}
		}
	}
}

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

Where it is used

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

Events (1)

Inspirations (1)

  • Alchemy Inspiration

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