Scripted effect · Silk and Silver files
add_dealbreaker_secret_effect
add_dealbreaker_secret_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 6093 (16 lines). No parameters.
add_dealbreaker_secret_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 6093 of its file. It takes no parameters: add_dealbreaker_secret_effect = yes. The game's script calls it in 7 places, among them Abuse Charter Authority (decision), Forge Charter (decision) and smuggle_goods (contract). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
If
is_landless_merchant = yes- Does not have the Trait: Dealbreaker
- No secret:
Then
add_secret = { type = secret_dealbreaker }
• 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 (16 lines of game script)
add_dealbreaker_secret_effect = {
if = {
limit = {
is_landless_merchant = yes
NOR = {
has_trait = dealbreaker
any_secret = { type = secret_dealbreaker }
}
}
send_interface_toast = {
type = event_secret_bad
title = trait_dealbreaker
add_secret = { type = secret_dealbreaker }
}
}
}As written in game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_dealbreaker_secret_effect.
Decisions (2)
Task contracts (1)
- smuggle_goods
Events (3)
- Forge Charter
gdp_decision.2000 - Involvement Discovered
hostile_scheme_discovery.3003 - Schemer Discovered!
hostile_scheme_discovery.1002
Scripted effects (1)
Source: game/common/scripted_effects/gdp_merchant_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.