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

Scripted effect · Wandering Nobles files

brewery_counter_effect

brewery_counter_effect = yes

game/common/scripted_effects/08_bp3_effects.txt, line 604 (25 lines). No parameters.

brewery_counter_effect is a scripted effect in Crusader Kings III, in the Wandering Nobles files, written at line 604 of its file. It takes no parameters: brewery_counter_effect = yes. The game's script calls it in 1 place, among them on_building_completed (on action). Patch 1.20.1.2, from game/common/scripted_effects/08_bp3_effects.txt.

What it does

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

The script as written (25 lines of game script)
brewery_counter_effect = {
	county = {
		if = {
			limit = {
				has_variable = brewery_counter_var 
				NOT = {
					any_county_province = {
						has_building_or_higher = breweries_01
					}
				}
			}
			remove_variable = brewery_counter_var
		}
		else_if = {
			limit = {
				NOT = { has_variable = brewery_counter_var }
				any_county_province = { has_building_or_higher = breweries_01 }
			}
			set_variable = {
				name = brewery_counter_var
				value = current_year
			}
		}
	}
}

As written in game/common/scripted_effects/08_bp3_effects.txt.

Where it is used

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

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

  • on_building_completed

Source: game/common/scripted_effects/08_bp3_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?