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

Scripted trigger · All Under Heaven files

tgp_chinese_naming_tier_trigger

tgp_chinese_naming_tier_trigger = yes

game/common/scripted_triggers/10_tgp_triggers.txt, line 1036 (41 lines). No parameters.

tgp_chinese_naming_tier_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 1036 of its file. It takes no parameters: tgp_chinese_naming_tier_trigger = yes (or no). The game's script calls it in 4 places, among them tgp_dynastic_cycle.9000 (event), on_rank_up (on action) and on_vassal_change (on action). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_triggers.txt.

What it checks

  • One of these

    • Their capital county’s province:
      • If in the tgp county chinese naming region region:
        • scope:ruler_temp.highest_held_title_tier >= tier_county
      • Else, if in the tgp duchy chinese naming region region:
        • scope:ruler_temp.highest_held_title_tier >= tier_duchy
      • Otherwise:
        • scope:ruler_temp.highest_held_title_tier >= tier_kingdom
    • or

      scope:title › Their capital county’s province:
      • If in the tgp county chinese naming region region:
        • scope:ruler_temp.highest_held_title_tier >= tier_county
      • Else, if in the tgp duchy chinese naming region region:
        • scope:ruler_temp.highest_held_title_tier >= tier_duchy
      • Otherwise:
        • scope:ruler_temp.highest_held_title_tier >= tier_kingdom

• 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 (41 lines of game script)
tgp_chinese_naming_tier_trigger = {
	save_temporary_scope_as = ruler_temp
	OR = {
		capital_county.title_province ?= { 
			trigger_if = {
				limit = {
					geographical_region = tgp_county_chinese_naming_region
				}
				scope:ruler_temp.highest_held_title_tier >= tier_county
			}
			trigger_else_if = {
				limit = {
					geographical_region = tgp_duchy_chinese_naming_region
				}
				scope:ruler_temp.highest_held_title_tier >= tier_duchy
			}
			trigger_else = {
				scope:ruler_temp.highest_held_title_tier >= tier_kingdom
			}
		}
		scope:title ?= {
			capital_county.title_province ?= { 
				trigger_if = {
					limit = {
						geographical_region = tgp_county_chinese_naming_region
					}
					scope:ruler_temp.highest_held_title_tier >= tier_county
				}
				trigger_else_if = {
					limit = {
						geographical_region = tgp_duchy_chinese_naming_region
					}
					scope:ruler_temp.highest_held_title_tier >= tier_duchy
				}
				trigger_else = {
					scope:ruler_temp.highest_held_title_tier >= tier_kingdom
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/10_tgp_triggers.txt.

Where it is used

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

On actions (the game's own hooks) (2)

  • on_rank_up
  • on_vassal_change

Source: game/common/scripted_triggers/10_tgp_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?