Scripted effect
risk_of_std_from_effect
risk_of_std_from_effect = { PARTNER = … }game/common/scripted_effects/20_health_effects.txt, line 987 (22 lines). Parameters: $PARTNER$.
risk_of_std_from_effect is a scripted effect in Crusader Kings III, written at line 987 of its file. A call passes 1 parameter: PARTNER. The game's script calls it in 1 place, among them had_sex_with_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.
The comment above it in the file
50% risk of herpes (if partner has it) and 30% risk of great pox (if partner has it). Added through event. Needs argument PARTNER
What it does
- 50% chance of:
contract_lovers_pox_from = { PARTNER = $PARTNER$ }
- 30% chance of:
contract_great_pox_from = { PARTNER = $PARTNER$ }
• 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 (22 lines of game script)
risk_of_std_from_effect = {
random = {
chance = 50
modifier = {
add = -30
has_perk = wash_your_hands_perk
}
contract_lovers_pox_from = { PARTNER = $PARTNER$ }
}
random = {
chance = 30
modifier = {
add = -10
has_perk = wash_your_hands_perk
}
modifier = {
add = -30
has_character_flag = contraction_cooldown_great_pox
}
contract_great_pox_from = { PARTNER = $PARTNER$ }
}
}As written in game/common/scripted_effects/20_health_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls risk_of_std_from_effect.
Scripted effects (1)
Source: game/common/scripted_effects/20_health_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.