Scripted effect
physician_level_up_chance_effect
physician_level_up_chance_effect = { CHANCE = … }game/common/scripted_effects/20_health_effects.txt, line 1605 (36 lines). Parameters: $CHANCE$.
physician_level_up_chance_effect is a scripted effect in Crusader Kings III, written at line 1605 of its file. A call passes 1 parameter: CHANCE. The game's script calls it in 4 places, among them risky_disease_treatment_effect (scripted effect), risky_wound_treatment_effect (scripted effect) and safe_disease_treatment_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.
The comment above it in the file
Needs argument CHANCE
What it does
If
Not all of these
- Has the Trait: Novice Physician
- Novice Physician experience at least 100 — Renowned Physician
Then
- …% chance of:
• 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 (36 lines of game script)
physician_level_up_chance_effect = {
if = {
limit = {
is_alive = yes
NAND = {
has_trait = lifestyle_physician
has_trait_xp = {
trait = lifestyle_physician
value >= 100
}
}
}
random = {
chance = $CHANCE$
physician_lifestyle_rank_up_effect = yes
#Used by physician_rank_up_tooltip_effect, to be shown in treatment outcome...
set_variable = { name = physician_level_up value = flag:physician days = 15 }
#...or in notification
if = {
limit = {
liege ?= { this != scope:sick_character }
}
liege = {
send_interface_message = { #Should be feed message, because it's not hugely important
type = event_court_physician_good
title = physician_level_up_chance_effect.t
left_icon = scope:physician
physician_rank_up_tooltip_effect = yes
}
}
}
}
}
}As written in game/common/scripted_effects/20_health_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls physician_level_up_chance_effect.
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.