Betik Etkisi

create_familial_governor_in_location_effect

$location$
  • Oyunun ipucunda gösterilmezcache_distance_map: Ülke: country
    Country temp scope
    • Every owned non rural locationkoşul
        • İl Derecesi: DeğilKasaba
        • DeğilIs capital
        ↗
      • DeğilIs capital
      Add to list: cities
    • Every owned location
      • Add to local variable map
        • Name: preferred_city
        • Key: Bu
        • Value: Country temp scopeBaşkent
      • Add to local variable map
        • Name: preferred_city_score
        • Key: Bu
        • Value: distance_to(scope:country_temp_scope.capital)
      • Every in list
        • List: cities
        • Eğer
          Number one › distance_to(scope:number_two) < local_variable_map(preferred_city_score|scope:number_one)
          O zaman
          • 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
  • Oyunun ipucunda gösterilmez$location$
    Floodfill locationskoşul
    • Local variable map (preferred_city): location
    • SahipBu: DeğilTarget country
    Target country ülkesinin olur
Tam betik

Onu çağıran betik bunları doldurur; her çağıran Bağlantılar'da gösterilir.

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

Gerektirir 1

Verir 1

Kullananlar 2

Olaylar
  • Akraba Talebicharacter = scope:target_character · country = root · location = scope:target_locationSeçenek 1
Karakter Etkileşimleri
  • Hanedan Valisi Atacharacter = scope:recipient · country = scope:actor · location = scope:target_capitalEtki
Betikler 2

Kullanır 2

© 2026 Soft Santa Cruz, S.L.U. Tüm hakları saklıdır. Paradox Interactive ile bağlantısı olmayan, resmî olmayan bir hayran projesidir. Oyun içeriği © Paradox Interactive. · Hakkında · Gizlilik · Yasal bildirim