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

Scripted effect · Roads to Power files

laamp_as_mercenary_payout_tooltip_effect

laamp_as_mercenary_payout_tooltip_effect = yes

game/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 = { … }
    • If

      Then

    • 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)

97 more

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.

Spotted a mistake on this page?