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

Scripted effect

set_nickname_effect

set_nickname_effect = { NICKNAME = … }

game/common/scripted_effects/00_nickname_effects.txt, line 1 (15 lines). Parameters: $NICKNAME$.

set_nickname_effect is a scripted effect in Crusader Kings III, written at line 1 of its file. A call passes 1 parameter: NICKNAME. The game's script calls it in 58 places, among them Sell Trivial Titles (decision), … The Nāga's Victim (event pilgrimage_seasia.700) and …: A Higher Power (event councillor_spouse_learning.2301). Patch 1.20.1.2, from game/common/scripted_effects/00_nickname_effects.txt.

What it does

  • If

    • Not all of these

      • has_bad_nickname = yes
      • is_bad_nickname = $NICKNAME$
    • One of these

      • NOT = { has_any_nickname = yes }
      • or

        has_bad_nickname = yes

    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 (15 lines of game script)
set_nickname_effect = {
	if = {
		limit = {
			NAND = { # I cannot already have a bad nickname if the nickname I'm getting is also bad
				has_bad_nickname = yes
				is_bad_nickname = $NICKNAME$
			}
			OR = { # Has no nickname or a bad nickname
				NOT = { has_any_nickname = yes }
				has_bad_nickname = yes
			}
		}
		give_nickname = $NICKNAME$
	}
}

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

Where it is used

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

Decisions (1)

Events (47)

41 more

Scripted character templates (3)

  • culture_defender_knight_template
  • foreign_architect_template
  • foreign_scholar_template

Source: game/common/scripted_effects/00_nickname_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?