Efekt skryptowy

create_familial_governor_in_location_effect

$location$
  • Niewidoczne w podpowiedzi grycache_distance_map: Kraj: country
    Country temp scope
    • Every owned non rural locationgdzie
      Add to list: cities
    • Every owned location
      • Add to local variable map
        • Name: preferred_city
        • Key: Ten
        • Value: Country temp scopeStolica
      • Add to local variable map
        • Name: preferred_city_score
        • Key: Ten
        • Value: distance_to(scope:country_temp_scope.capital)
      • Every in list
        • List: cities
        • Jeśli
          Number one › distance_to(scope:number_two) < local_variable_map(preferred_city_score|scope:number_one)
          Wtedy
          • 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
  • Niewidoczne w podpowiedzi gry$location$
    Floodfill locationsgdzie
    • Local variable map (preferred_city): location
    • WłaścicielTen: NieTarget country
    Stanie się własnością kraju Target country
Dokładny skrypt

Skrypt, który je wywołuje, podaje te wartości, co widać przy każdym wywołaniu w Powiązaniach.

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

Wymaga 1

Zapewnia 1

Używane przez 2

Wydarzenia
  • Żądanie krewnegocharacter = scope:target_character · country = root · location = scope:target_locationOpcja 1
Interakcje postaci
Skrypty 2

Używa 2

© 2026 Soft Santa Cruz, S.L.U. Wszelkie prawa zastrzeżone. Nieoficjalny projekt fanowski, niezwiązany z Paradox Interactive. Zawartość gry © Paradox Interactive. · O serwisie · Prywatność · Nota prawna