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

Scripted effect · Legends of the Dead files

bd_random_game_rule_effect

bd_random_game_rule_effect = yes

game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 938 (42 lines). No parameters.

bd_random_game_rule_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 938 of its file. It takes no parameters: bd_random_game_rule_effect = yes. The game's script calls it in 1 place, among them yearly_global_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.

The comment above it in the file

Random Black Death game rule

What it does

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

The script as written (42 lines of game script)
bd_random_game_rule_effect = {
	random = {
		chance = 1
		random = { # You cannot set a chance lower than 1% so we have to do this ugly fix
			chance = {
				value = 1
				if = {
					limit = { years_from_game_start > 100 }
					add = 10
				}
				if = {
					limit = { years_from_game_start > 200 }
					add = 14
				}
				if = {
					limit = { years_from_game_start > 300 }
					add = 15
				}
				if = {
					limit = { years_from_game_start > 400 }
					add = 20
				}
				if = {
					limit = { years_from_game_start > 500 }
					add = 20
				}
				if = {
					limit = { years_from_game_start > 600 }
					add = 20
				}
			}
			if = {
				limit = {
					NOT = { has_global_variable = start_epidemic_grace }
					NOT = { has_global_variable = random_black_plague_var }
					has_game_rule = bd_occurrence_random
				}
				set_global_variable = random_black_plague_var
			}
		}
	}
}

As written in game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.

Where it is used

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

On actions (the game's own hooks) (1)

  • yearly_global_pulse

Source: game/common/scripted_effects/06_dlc_ce1_epidemics_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?