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

Scripted effect

create_witch_effect

create_witch_effect = { WHO = … }

game/common/scripted_effects/00_witch_effects.txt, line 162 (48 lines). Parameters: $WHO$.

create_witch_effect is a scripted effect in Crusader Kings III, written at line 162 of its file. A call passes 1 parameter: WHO. The game's script calls it in 3 places, among them Alternative Reading (event trait_specific.4001), An Uninvited Guest (event witch.3003) and Secrets of Nature (event learning_medicine.2001). Patch 1.20.1.2, from game/common/scripted_effects/00_witch_effects.txt.

The comment above it in the file

Creates a witch and saves it as created_witch
WHO is character who will interact with the witch and TEMPLATE is the character whose culture should be used

What it does

  • 1 of 2 things will happen:
    • 50% (base chance; changed in play): Nothing else happens
    • 50% (base chance; changed in play): Nothing else happens
  • create_character = { … }

• 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 (48 lines of game script)
create_witch_effect = {
	#Gender
	random_list = {
		50 = { #Female
			modifier = {
				$WHO$ = { is_attracted_to_women = yes }
				add = 30
			}
			dummy_female = { save_temporary_scope_as = witch_gender }
		}
		50 = { #Male
			modifier = {
				$WHO$ = { is_attracted_to_men = yes }
				add = 30
			}
			dummy_male = { save_temporary_scope_as = witch_gender }
		}
	}

	#Create them
	create_character = {
		location = $WHO$.capital_province
		culture = $WHO$.culture
		faith = $WHO$.faith
		rite = $WHO$.rite
		gender = scope:witch_gender
		template = witchy_template
		random_traits = no

		after_creation = {
			give_witch_secret_or_trait_effect = yes

			#Sometimes adjust sexuality to create compatibility with WHO
			if = {
				limit = {
					$WHO$ = { is_attracted_to_gender_of = prev }
					NOT = { is_attracted_to_gender_of = $WHO$ }
				}
				random = {
					chance = 65
					set_sexuality = bisexual
				}
			}
		}
		
		save_scope_as = created_witch
	}
}

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

Where it is used

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

Events (3)

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