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

Scripted trigger

opposing_ai_values_trigger

opposing_ai_values_trigger = { TARGET = … VALUE = … }

game/common/scripted_triggers/00_ai_value_triggers.txt, line 6 (12 lines). Parameters: $TARGET$, $VALUE$.

opposing_ai_values_trigger is a scripted trigger in Crusader Kings III, written at line 6 of its file. A call passes 2 parameters: TARGET and VALUE. The game's script calls it in 1 place, among them A Tedious Disagreement (event diplomacy_majesty_special.1010). Patch 1.20.1.2, from game/common/scripted_triggers/00_ai_value_triggers.txt.

The comment above it in the file

Needs TARGET and the name of the VALUE

What it checks

  • One of these

    • All of these

      • ai_$VALUE$ < 0
      • $TARGET$ = { ai_$VALUE$ > 0 }
    • or

      All of these

      • ai_$VALUE$ > 0
      • $TARGET$ = { ai_$VALUE$ < 0 }

• 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 (12 lines of game script)
opposing_ai_values_trigger = {
	OR = {
		AND = {
			ai_$VALUE$ < 0
			$TARGET$ = { ai_$VALUE$ > 0 }
		}
		AND = {
			ai_$VALUE$ > 0
			$TARGET$ = { ai_$VALUE$ < 0 }
		}
	}	
}

As written in game/common/scripted_triggers/00_ai_value_triggers.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_triggers/00_ai_value_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?