Scripted trigger · All Under Heaven files
tribute_mission_decision_ai_religion_culture_limit_trigger
tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = … }game/common/scripted_triggers/tgp_tribute_mission_triggers.txt, line 30 (17 lines). Parameters: $TARGET$.
tribute_mission_decision_ai_religion_culture_limit_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 30 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 6 places, among them Kowtow to China (decision), Pay Tribute to Dar al-Islam (decision) and Pay Tribute to Eastern Roman Empire (decision). Patch 1.20.1.2, from game/common/scripted_triggers/tgp_tribute_mission_triggers.txt.
The comment above it in the file
If faith hostility levels or cultural acceptance are bad enough, or cultural heritage is not the same, we want to apply additional limits to AI going on tribute missions in some cases
What it checks
- Their faith:
faith_hostility_level = { target = $TARGET$.faith value <= faith_astray_level }
- Their culture:
has_same_culture_heritage = $TARGET$.culturecultural_acceptance = { target = $TARGET$.culture value >= 50 }
• 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 (17 lines of game script)
tribute_mission_decision_ai_religion_culture_limit_trigger = {
faith ?= {
exists = $TARGET$.faith
faith_hostility_level = {
target = $TARGET$.faith
value <= faith_astray_level
}
}
culture ?= {
exists = $TARGET$.culture
has_same_culture_heritage = $TARGET$.culture
cultural_acceptance = {
target = $TARGET$.culture
value >= 50
}
}
}As written in game/common/scripted_triggers/tgp_tribute_mission_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls tribute_mission_decision_ai_religion_culture_limit_trigger.
Source: game/common/scripted_triggers/tgp_tribute_mission_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.