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_up_regional_mythical_creature_effect

set_up_regional_mythical_creature_effect = yes

game/common/scripted_effects/00_regional_scripted_effects.txt, line 76 (387 lines). No parameters.

set_up_regional_mythical_creature_effect is a scripted effect in Crusader Kings III, written at line 76 of its file. It takes no parameters: set_up_regional_mythical_creature_effect = yes. The game's script calls it in 3 places, among them Family Flora (event legend_spread_events.5040), Rumors From the Wild (event legend_spread_events.5405) and generate_trinket_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_regional_scripted_effects.txt.

The comment above it in the file

For use with RegionalMythicalCreature / call this effect (set_up_regional_mythical_creature_effect = yes) in the line before creating the artifact
Use this in the artifact's name/description in the loc-file [ROOT.Char.Custom('RegionalMythicalCreature')] /and/ [ROOT.Char.Custom('RegionalMythicalCreatureLower')]
Remember to clear the var:regional_mythical_creature_trinket in your after = { ... }

What it does

  • If

    • Their location: Is in the Britannia region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the Western Europe region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the Northern Europe region

    Then

    • 1 of 5 things will happen:
      • 20%: Nothing else happens
      • 20%: Nothing else happens
      • 20%: Nothing else happens
      • 20%: Nothing else happens
      • 20%: Nothing else happens

    Else if

    • Their location: Is in the Southern Europe region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the Eastern Europe region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the Western Africa region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the Eastern Africa region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the Middle East region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location: Is in the India region

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • Their location:
      • One of these

        • Is in the Tibet region
        • or

          Is in the China region
        • or

          Is in the Japan region
        • or

          Is in the Korea region
        • or

          Is in the Southeast Asia region

    Then

    • 1 of 6 things will happen:
      • 17%: Nothing else happens
      • 17%: Nothing else happens
      • 17%: Nothing else happens
      • 17%: Nothing else happens
      • 17%: Nothing else happens
      • 17%: Nothing else happens

    Else if

    • Their location: Is in the Western Steppe region

    Then

    • … (more in the script below)
  • … (more in the script below)

• 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 (120 lines of game script)
set_up_regional_mythical_creature_effect = {
	if = {
		#Britannia
		limit = {
			location = { geographical_region = world_europe_west_britannia }
			NOT = { exists = var:regional_mythical_creature_trinket }
		}
		random_list = {
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:water_leper
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:fomorian
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:fachan
				}
			}
		}
	}
	else_if = {
		#West Europe
		limit = {
			location = { geographical_region = world_europe_west }
			NOT = { exists = var:regional_mythical_creature_trinket }
		}
		random_list = {
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:cockatrice
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:lou_carcolh
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:myrmecoleon
				}
			}
		}
	}
	else_if = {
		#North Europe
		limit = {
			location = { geographical_region = world_europe_north }
			NOT = { exists = var:regional_mythical_creature_trinket }
		}
		random_list = {
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:antero_vipunen
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:tjelvar
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:fin
				}
			}
			50 = {
				trigger = {
					location = { geographical_region = custom_gotland }
				}
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:bysn
				}
			}
			50 = {
				trigger = {
					location = { geographical_region = custom_gotland }
				}
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:disma
				}
			}
		}
	}
	else_if = {
		#South Europe
		limit = {
			location = { geographical_region = world_europe_south }
			NOT = { exists = var:regional_mythical_creature_trinket }
		}
		random_list = {
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:basilisk
				}
			}
			50 = {
				set_variable = {
					name = regional_mythical_creature_trinket
					value = flag:lhombri
				}
			}
			50 = {

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

The first 120 of its 387 lines; the rest is in game/common/scripted_effects/00_regional_scripted_effects.txt from line 76.

Where it is used

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

Events (2)

Scripted effects (1)

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