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

Scripted effect

recover_from_disease_notify_effect

recover_from_disease_notify_effect = { DISEASE = … }

game/common/scripted_effects/20_health_effects.txt, line 917 (43 lines). Parameters: $DISEASE$.

recover_from_disease_notify_effect is a scripted effect in Crusader Kings III, written at line 917 of its file. A call passes 1 parameter: DISEASE. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.

What it does

  • If

    • scope:disease_type = flag:ill

    Then

    Else if

    • scope:disease_type = flag:pneumonic

    Then

    Else if

    • scope:disease_type = flag:gout_ridden

    Then

    Else if

    • scope:disease_type = flag:typhus

    Then

    Else if

    • scope:disease_type = flag:consumption

    Then

    Else if

    • scope:disease_type = flag:cancer

    Then

    Else if

    • scope:disease_type = flag:great_pox

    Then

    Else if

    • scope:disease_type = flag:smallpox

    Then

    Else if

    • scope:disease_type = flag:bubonic_plague

    Then

• 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 (43 lines of game script)
recover_from_disease_notify_effect = {
	save_scope_value_as = {
		name = disease_type
		value = flag:$DISEASE$
	}
	
	if = {
		limit = { scope:disease_type = flag:ill }
		trigger_event = { id = health.1101 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:pneumonic }
		trigger_event = { id = health.1102 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:gout_ridden }
		trigger_event = { id = health.1103 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:typhus }
		trigger_event = { id = health.1105 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:consumption }
		trigger_event = { id = health.1106 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:cancer }
		trigger_event = { id = health.1107 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:great_pox }
		trigger_event = { id = health.1109 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:smallpox }
		trigger_event = { id = health.1110 days = { 5 15 } }
	}
	else_if = {
		limit = { scope:disease_type = flag:bubonic_plague }
		trigger_event = { id = health.1111 days = { 5 15 } }
	}
}

As written in game/common/scripted_effects/20_health_effects.txt.

Where it is used

No file of common/, events/ or history/ calls it.

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.

Spotted a mistake on this page?