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

Scripted effect

republic_promote_candidate_scheme_end_effect

republic_promote_candidate_scheme_end_effect = yes

game/common/scripted_effects/00_scheme_scripted_effects.txt, line 17281 (38 lines). No parameters.

republic_promote_candidate_scheme_end_effect is a scripted effect in Crusader Kings III, written at line 17281 of its file. It takes no parameters: republic_promote_candidate_scheme_end_effect = yes. The game's script calls it in 2 places, among them republic_promote_candidate_scheme_event.0001 (event) and republic_promote_candidate_scheme_event.0002 (event). Its body carries 2 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_scheme_scripted_effects.txt.

What it does

  • If

    • scope:scheme.var:target_candidate_title:
      • place_in_line_of_succession = { target = scope:target value = 1 }

    Then

    • scope:scheme:
      • end_scheme = yes

    Otherwise

    • If

      a check the game hides

      Then

      • If

        a check the game hides

        Then

        • You continue your efforts

        Otherwise

        • You will make another attempt

• 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 (38 lines of game script)
republic_promote_candidate_scheme_end_effect = {
	# If target is first in the line of succession, we end the scheme
	if = {
		limit = {
			scope:scheme.var:target_candidate_title = {
				place_in_line_of_succession = {
					target = scope:target
					value = 1
				}
			}
		}
		scope:scheme = {
			end_scheme = yes
		}
	}
	# Otherwise, we'll continue
	else = {
		if = {
			limit = {
				exists = scope:scheme
			}
			hidden_effect = {
				scope:scheme = {
					reset_failed_scheme_effect = yes
				}
			}
			if = {
				limit = {
					exists = scope:scheme_successful
				}
				custom_tooltip = sway_continue
			}
			else = {
				custom_tooltip = sway_try_again
			}
		}
	}
}

As written in game/common/scripted_effects/00_scheme_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls republic_promote_candidate_scheme_end_effect.

Source: game/common/scripted_effects/00_scheme_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?