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

Scripted effect

hunt_animal_slayer_bow_opinion_effect

hunt_animal_slayer_bow_opinion_effect = { VAR = … }

game/common/scripted_effects/00_hunt_effects.txt, line 2247 (94 lines). Parameters: $VAR$.

hunt_animal_slayer_bow_opinion_effect is a scripted effect in Crusader Kings III, written at line 2247 of its file. A call passes 1 parameter: VAR. The game's script calls it in 2 places, among them Cornering the … (event hunt.1003) and Laying in Wait (event hunt.1032). Patch 1.20.1.2, from game/common/scripted_effects/00_hunt_effects.txt.

What it does

  • If

    Then

    • Opinion: Dharmic Mercy (-15)
    • Stress and fulfillment impact: +20

    Else if

    • scope:host:
      • One of these

        • has_activity_intent = befriend_attendee_intent
        • or

          has_activity_intent = woo_attendee_intent
        • or

          All of these

          • has_activity_intent = impose_obedience_intent
          • scope:host.intent_target:
            • NOT = { is_obedient_to = scope:host }

    Then

    • scope:host › Depending on has activity intent:
      • When has activity intent is Befriend:
      • When has activity intent is Seduce:
      • When has activity intent is Impose Obedience › scope:opinion_target: Opinion: Sworn Obedience

    Else if

    • One of these

      • $VAR$ = flag:hart
      • or

        $VAR$ = flag:boar

    Then

    • Opinion: Honored with Kill (+15)

    Else if

    • One of these

      • $VAR$ = flag:fox
      • or

        $VAR$ = flag:hare

    Then

    • Opinion: Honored with Kill (+5)

    Otherwise

    • Opinion: Honored with Kill (+10)

• 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 (94 lines of game script)
hunt_animal_slayer_bow_opinion_effect = {
	if = {
		limit = { hunt_dharmic_pacificist_trigger = yes }
		add_opinion = {
			target = scope:host
			modifier = hunt_dharmic_mercy_opinion
			opinion = -15
		}
		stress_and_fulfillment_impact = { base = minor_stress_impact_gain }
		add_character_flag = {
			flag = dharmic_mercy_flag
			weeks = 1
		}
	}
	else_if = {
		limit = {
			scope:host = {
				exists = intent_target
				OR = {
					has_activity_intent = befriend_attendee_intent
					has_activity_intent = woo_attendee_intent
					AND = {
						has_activity_intent = impose_obedience_intent
						scope:host.intent_target = { # They're not obedient to you already
							NOT = { is_obedient_to = scope:host }
						}
					}
				}
			}
			this = scope:host.intent_target
		}
		save_scope_as = opinion_target
		scope:host = {
			switch = {
				trigger = has_activity_intent
				befriend_attendee_intent = {
					progress_towards_friend_effect = {
						REASON = friend_gave_hunt_kill_reason
						CHARACTER = scope:opinion_target
						OPINION = default_friend_opinion
					}
				}
				woo_attendee_intent = {
					progress_towards_lover_effect = {
						REASON = friend_gave_hunt_kill_reason
						CHARACTER = scope:opinion_target
						OPINION = default_lover_opinion
					}
				}
				impose_obedience_intent = {
					scope:opinion_target = {
						add_opinion = {
							target = scope:host
							modifier = obedience_opinion
						}
					}
				}
			}
		}
	}
	else_if = {
		limit = {
			OR = {
				$VAR$ = flag:hart
				$VAR$ = flag:boar
			}
		}
		add_opinion = {
			target = scope:host
			modifier = hunt_honored_with_kill_opinion
			opinion = 15
		}
	}
	else_if = {
		limit = {
			OR = {
				$VAR$ = flag:fox
				$VAR$ = flag:hare
			}
		}
		add_opinion = {
			target = scope:host
			modifier = hunt_honored_with_kill_opinion
			opinion = 5
		}
	}
	else = {
		add_opinion = {
			target = scope:host
			modifier = hunt_honored_with_kill_opinion
			opinion = 10
		}
	}
}

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

Where it is used

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

Events (2)

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