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

Scripted trigger

portrait_era2_trigger

portrait_era2_trigger = yes

game/common/scripted_triggers/00_clothing_triggers.txt, line 1567 (23 lines). No parameters.

portrait_era2_trigger is a scripted trigger in Crusader Kings III, written at line 1567 of its file. It takes no parameters: portrait_era2_trigger = yes (or no). No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_clothing_triggers.txt.

What it checks

  • Current year at least 1000
  • One of these

    • All of these

      • scope:year_of_birth >= 975
      • scope:year_of_birth < 1125
      • scope:age >= 16
    • or

      All of these

      • scope:year_of_birth >= 1010
      • scope:year_of_birth < 1150
      • One of these

        • Current year less than 1150
        • or

          is_alive = no
    • or

      All of these

      • scope:year_of_birth >= 1010
      • scope:year_of_birth < 1166
      • scope:age < 16

• 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 (23 lines of game script)
portrait_era2_trigger = { # Intended to primarily cover the years 1000 to 1150
	current_year >= 1000
	OR = {
		AND = { # People from 16 to 25 will be the first to adopt new fashion
			scope:year_of_birth >= 975
			scope:year_of_birth < 1125
			scope:age >= 16
		}
		AND = {
			scope:year_of_birth >= 1010
			scope:year_of_birth < 1150
			OR = {
				current_year < 1150
				is_alive = no
			}
		}
		AND = { # Children under 16 will not be early adopters
			scope:year_of_birth >= 1010
			scope:year_of_birth < 1166
			scope:age < 16
		}
	}
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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