Scripted effect · Roads to Power files
laamp_as_mercenary_payout_tooltip_effect
laamp_as_mercenary_payout_tooltip_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 11437 (69 lines). No parameters.
laamp_as_mercenary_payout_tooltip_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 11437 of its file. It takes no parameters: laamp_as_mercenary_payout_tooltip_effect = yes. The game's script calls it in 103 places, among them … China's Grand Campaign (casus belli), …-… Bloc Supremacy War (casus belli) and …… Ancestral Claim on … (casus belli). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The comment above it in the file
root - casus_belli war - war provided by the casus_belli attacker - primary attacker from the casus_belli defender - primary defender from the casus_belli
What it does
- scope:war › Every war participant:
- Where: Has a Adventurer Government
- Every character active contract:
- Where:
has_task_contract_type = laamp_join_war_contract- Task contract war is scope:war
task_contract_employer = { … }
- Where:
If
laamp_as_mercenary_payout_trigger = { WAR = scope:war }
Then
If
laamp_as_mercenary_payout_last_war_trigger = { WAR = scope:war }
Then
var:joined_as_mercenary:- Due to … completing … Mercenary contract:
pay_short_term_gold = { target = scope:laamp_temp gold = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value }
Otherwise
- Mercenary Adventurer … will remain in … other Wars
If
- Has “owed contract assistance gold” (a variable the game's script sets)
- Owed contract assistance war is scope:war
Then
scope:defender:- If … War Contribution is at least … when the War ends:
pay_short_term_gold = { target = scope:actor gold = scope:actor.var:owed_contract_assistance_gold }
• 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 (69 lines of game script)
laamp_as_mercenary_payout_tooltip_effect = {
show_as_tooltip = {
scope:war ?= {
every_war_participant = {
limit = { has_government = landless_adventurer_government }
save_scope_as = laamp_temp
save_scope_as = actor
save_scope_value_as = {
name = war_contribution_value
value = "scope:war.war_contribution(scope:laamp_temp)"
}
every_character_active_contract = {
limit = {
has_task_contract_type = laamp_join_war_contract
var:task_contract_war = scope:war
}
show_as_tooltip = {
task_contract_employer = {
save_scope_as = employer
custom_tooltip = ep3_join_war_payment_tt
pay_short_term_gold = {
target = scope:laamp_temp
gold = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value
}
}
}
}
if = {
limit = {
laamp_as_mercenary_payout_trigger = { WAR = scope:war }
}
if = {
limit = {
laamp_as_mercenary_payout_last_war_trigger = { WAR = scope:war }
}
var:joined_as_mercenary ?= {
save_scope_as = employer
custom_description_no_bullet = {
text = ep3_hire_laamp_mercs_payment_tt
object = scope:laamp_temp
subject = scope:employer
}
pay_short_term_gold = {
target = scope:laamp_temp
gold = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value
}
}
}
else = { custom_tooltip = ep3_hire_laamp_mercs_payment_later_tt }
}
if = {
limit = {
has_variable = owed_contract_assistance_gold
var:owed_contract_assistance_war ?= scope:war
}
save_scope_as = contract_assistance_helper
scope:defender = {
save_scope_as = recipient
custom_description_no_bullet = { text = contract_assistance_interaction_condition_tt }
pay_short_term_gold = {
target = scope:actor
gold = scope:actor.var:owed_contract_assistance_gold
}
}
}
}
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls laamp_as_mercenary_payout_tooltip_effect.
Casus belli (103)
- … China's Grand Campaign
- …-… Bloc Supremacy War
- …… Ancestral Claim on …
- ……-… Vassalization War (Dynastic Cycle)
- Adventurer Invasion
- Adventurer Invasion
97 more
- Adventurer Invasion
- Adventurer Invasion
- Artifact
- Assassin Dissolution
- Azariqa Rebellion
- Bloc Expansion
- Border Raid
- Border Raid against the Roman Empire
- Bring Under Tribute
- Chinese Consolidation War
- Chinese Consolidation War
- Claim
- Clan Invasion
- County Conquest
- County Expansion
- Crusader War for Imperial Claim
- De Jure
- Demand Fealty
- Diarch Seizure
- Dismantle Pretender
- Dismantle Pretender
- Dissolve Empire
- Domination War
- Ducal Conquest
- Duchy Conquest
- Duchy Expansion
- Enforce Administrative Integration
- Eradicate Rival House
- Establish Sōryō Administration
- Excommunication
- Expand Dominance
- Great War of Defiance
- Greatest of Khans' Onslaught
- Holy
- Holy Relic Reclamation
- Iberian Reclamation
- Imperial County Pacification
- Imperial Expedition
- Imperial Policy Faction
- Imperial Reconquest
- Imperial Reconquest of Japan (De Jure)
- Independence Faction
- Individual De Jure County
- Individual De Jure Duchy
- Install Loyalist
- Invasion
- Invasion
- Invasion
- Invasion
- Laudabiliter Conquest
- Legendary Adventure
- Liberty Faction
- Major Holy
- Mediterranean Conquest
- Migrate to Pannonia
- Minor Holy
- Mongol Invasion
- Mongol Realm Invasion
- Naval County Expansion
- Naval Duchy Expansion
- Nomadic County Quarrel
- Nomadic Duchy Quarrel
- Nomadic Invasion
- Overrun Kingdom
- Overrun Kingdom
- Pax Romana
- Peasant Uprising
- Peasant War
- Pillaging Foray
- Plunder for Contribution
- Raid for Captives
- Raid for Captives Contract
- Raiktor's "Claim"
- Raiktor's Claim
- Raze Capital Temple Complex
- Remove Regent
- Rescue House Members
- Resist Capture
- Seize Hegemonic County
- Seize Hegemonic County
- Seize Hegemonic Duchy
- Seize Hegemonic Duchy
- Seize Imperial Duchy
- Seize Peripheral Duchy
- Seize the Mandate of Heaven
- Sōryō Conquest
- Sōryō Conquest
- Sovereignty War
- Sponsored Administrative War
- Sponsored Conquest
- Struggle Clash
- Subjugation
- Unify The House
- Varangian Adventurer
- Vassalization
- Viking Adventurer
- Zanj Rebellion
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.