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

Scripted effect

stewardship_duty_1064_remove_patrons_buff_effect

stewardship_duty_1064_remove_patrons_buff_effect = { CLIENT = … }

game/common/scripted_effects/00_stewardship_lifestyle_effects.txt, line 379 (49 lines). Parameters: $CLIENT$.

stewardship_duty_1064_remove_patrons_buff_effect is a scripted effect in Crusader Kings III, written at line 379 of its file. A call passes 1 parameter: CLIENT. The game's script calls it in 3 places, among them stewardship_duty.1064 (event), stewardship_duty.1065 (event) and stewardship_duty.1066 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_stewardship_lifestyle_effects.txt.

What it does

  • If

    • $CLIENT$ = { … }

    Then

    • $CLIENT$ = { … }

    Else if

    • $CLIENT$ = { … }

    Then

    • $CLIENT$ = { … }

    Else if

    • $CLIENT$ = { … }

    Then

    • $CLIENT$ = { … }

• 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 (49 lines of game script)
stewardship_duty_1064_remove_patrons_buff_effect = {
	if = {
		limit = {
			$CLIENT$ = {
				var:stewardship_duty_1062_employer = {
					has_character_modifier = governance_1062_immaculate_gardens_modifier
				}
			}
		}
		$CLIENT$ = {
			var:stewardship_duty_1062_employer = {
				remove_character_modifier = governance_1062_immaculate_gardens_modifier
			}
		}
	}
	else_if = {
		limit = {
			$CLIENT$ = {
				var:stewardship_duty_1062_employer = {
					has_character_modifier = governance_1062_religious_tapestries_modifier
				}
			}
		}
		$CLIENT$ = {
			var:stewardship_duty_1062_employer = {
				remove_character_modifier = governance_1062_religious_tapestries_modifier
			}
		}
	}
	else_if = {
		limit = {
			$CLIENT$ = {
				var:stewardship_duty_1062_employer = {
					has_character_modifier = governance_1062_natural_philosopher_modifier
				}
			}
		}
		$CLIENT$ = {
			var:stewardship_duty_1062_employer = {
				remove_character_modifier = governance_1062_natural_philosopher_modifier
			}
		}
	}

	#Removes the reference to our employer now that we're no longer working for them.
	$CLIENT$ = {
		remove_variable = stewardship_duty_1062_employer
	}
}

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

Where it is used

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

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