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

inspection_fighting_guilds_setup_reward_effect

inspection_fighting_guilds_setup_reward_effect = { VALUE = … }

game/common/scripted_effects/08_bp3_effects.txt, line 391 (35 lines). Parameters: $VALUE$.

inspection_fighting_guilds_setup_reward_effect is a scripted effect in Crusader Kings III, in the Wandering Nobles files, written at line 391 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 1 place, among them Fighting Among the Guilds (event bp3_survey.1030). Patch 1.20.1.2, from game/common/scripted_effects/08_bp3_effects.txt.

What it does

  • Depending on fighting guilds option $VALUE$:
    • When fighting guilds option $VALUE$ is 1:
      • add_building = watermills_01
    • When fighting guilds option $VALUE$ is 2:
      • add_building = windmills_01
    • When fighting guilds option $VALUE$ is 3:
      • add_building = common_tradeport_01
    • When fighting guilds option $VALUE$ is 4:
      • add_building = pastures_01
    • When fighting guilds option $VALUE$ is 5:
      • add_building = pastures_01
    • When fighting guilds option $VALUE$ is 6:
      • add_building = pastures_01
    • When fighting guilds option $VALUE$ is 7:
      • add_building = pastures_01
    • When fighting guilds option $VALUE$ is 8:
      • add_building = hunting_grounds_01
    • When fighting guilds option $VALUE$ is 9:
      • add_building = hunting_grounds_01
    • When fighting guilds option $VALUE$ is 10:
      • add_building = hunting_grounds_01
    • When fighting guilds option $VALUE$ is 11:
      • add_building = orchards_01
    • When fighting guilds option $VALUE$ is 12:
      • add_building = logging_camps_01
    • When fighting guilds option $VALUE$ is 13:
      • add_building = quarries_01
    • When fighting guilds option $VALUE$ is 14:
      • add_building = quarries_01
    • When fighting guilds option $VALUE$ is 15:
      • add_building = smiths_01
    • When fighting guilds option $VALUE$ is 16:
      • add_building = stables_01
    • When fighting guilds option $VALUE$ is 17:
      • add_building = guild_halls_01
    • When fighting guilds option $VALUE$ is 18:
      • add_building = hospices_01
    • When fighting guilds option $VALUE$ is 19:
      • add_building = hospices_01
    • When fighting guilds option $VALUE$ is 20:
      • add_building = workshops_01
    • When fighting guilds option $VALUE$ is 21 › scope:city_province:
      • add_province_modifier = inspection_fighting_guilds_innkeepers_guild_modifier
    • When fighting guilds option $VALUE$ is 22 › scope:city_province:
      • add_province_modifier = inspection_fighting_guilds_artists_guild_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 (35 lines of game script)
inspection_fighting_guilds_setup_reward_effect = {
	switch = {
		trigger = var:fighting_guilds_option_$VALUE$
		1 = { add_building = watermills_01 }
		2 = { add_building = windmills_01 }
		3 = { add_building = common_tradeport_01 }
		4 = { add_building = pastures_01 }
		5 = { add_building = pastures_01 }
		6 = { add_building = pastures_01 }
		7 = { add_building = pastures_01 }
		8 = { add_building = hunting_grounds_01 }
		9 = { add_building = hunting_grounds_01 }
		10 = { add_building = hunting_grounds_01 }
		11 = { add_building = orchards_01 }
		12 = { add_building = logging_camps_01 }
		13 = { add_building = quarries_01 }
		14 = { add_building = quarries_01 }
		15 = { add_building = smiths_01 }
		16 = { add_building = stables_01 }
		17 = { add_building = guild_halls_01 }
		18 = { add_building = hospices_01 }
		19 = { add_building = hospices_01 }
		20 = { add_building = workshops_01 }
		21 = {
			scope:city_province = {
				add_province_modifier = inspection_fighting_guilds_innkeepers_guild_modifier
			}
		}
		22 = {
			scope:city_province = {
				add_province_modifier = inspection_fighting_guilds_artists_guild_modifier
			}
		}
	}
}

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

Where it is used

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

Events (1)

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?