Effet scripté

create_familial_governor_in_location_effect

$location$
  • Absent de l'infobulle du jeucache_distance_map: Pays: country
    Country temp scope
    • Every owned non rural locationoù
        • Rang de lieu: NonVille
        • NonIs capital
        ↗
      • NonIs capital
      Add to list: cities
    • Every owned location
      • Add to local variable map
        • Name: preferred_city
        • Key: Ceci
        • Value: Country temp scopeCapitale
      • Add to local variable map
        • Name: preferred_city_score
        • Key: Ceci
        • Value: distance_to(scope:country_temp_scope.capital)
      • Every in list
        • List: cities
        • Si
          Number one › distance_to(scope:number_two) < local_variable_map(preferred_city_score|scope:number_one)
          Alors
          • Add to local variable map
            • Name: preferred_city
            • Key: Number one
            • Value: Number two
          • Add to local variable map
            • Name: preferred_city_score
            • Key: Number one
            • Value: scope:number_one.distance_to(scope:number_two)
    ↗
  • Create country from location: Set capital: location · Set new ruler: character
    Make subject of
  • Absent de l'infobulle du jeu$location$
    Floodfill locationsoù
    • Local variable map (preferred_city): location
    • PropriétaireCeci: NonTarget country
    Appartiendra à Target country
Script exact

Le script qui l’appelle les renseigne, comme le montre chaque appel dans Liens.

  • $location$
  • $country$
  • $character$

Requiert 1

Accorde 1

Utilisé par 2

Événements
  • Demande d'un prochecharacter = scope:target_character · country = root · location = scope:target_locationOption 1
Interactions de personnages
Script 2

Utilise 2

© 2026 Soft Santa Cruz, S.L.U. Tous droits réservés. Projet de fan non officiel, non affilié à Paradox Interactive. Contenu du jeu © Paradox Interactive. · À propos · Confidentialité · Mentions légales