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

Scripted trigger · Wards and Wardens files

bp2_valid_to_exchange_hostage_ai_trigger

bp2_valid_to_exchange_hostage_ai_trigger = yes

game/common/scripted_triggers/05_bp2_hostage_triggers.txt, line 90 (18 lines). No parameters.

bp2_valid_to_exchange_hostage_ai_trigger is a scripted trigger in Crusader Kings III, in the Wards and Wardens files, written at line 90 of its file. It takes no parameters: bp2_valid_to_exchange_hostage_ai_trigger = yes (or no). The game's script calls it in 1 place, among them Exchange Hostages (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/05_bp2_hostage_triggers.txt.

What it checks

  • scope:recipient:
    • character_is_land_realm_neighbor = scope:actor
  • scope:actor.current_strength_with_allies_seventy_five_percent_value < scope:recipient.current_strength_with_allies_value
  • scope:recipient.current_strength_with_allies_seventy_five_percent_value < scope:actor.current_strength_with_allies_value
  • One of these

    • scope:actor:
      • has_any_cb_on = scope:recipient
    • or

      scope:recipient:
      • has_any_cb_on = scope:actor
  • None of these

• 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 (18 lines of game script)
bp2_valid_to_exchange_hostage_ai_trigger = {
	# AI only cares about neighbors
	scope:recipient = { character_is_land_realm_neighbor = scope:actor }
	# Only exchange with similary strong
	scope:actor.current_strength_with_allies_seventy_five_percent_value < scope:recipient.current_strength_with_allies_value
	scope:recipient.current_strength_with_allies_seventy_five_percent_value < scope:actor.current_strength_with_allies_value
	OR = {
		scope:actor = { has_any_cb_on = scope:recipient }
		scope:recipient = { has_any_cb_on = scope:actor }
	}
	# Don't send hostages to those you seriously hate, or vice versa
	NOR = {
		scope:recipient = {
			has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:actor }
			house_has_feud_relation_with_trigger = { TARGET = scope:actor }
		}
	}
}

As written in game/common/scripted_triggers/05_bp2_hostage_triggers.txt.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_triggers/05_bp2_hostage_triggers.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?