脚本效果

create_familial_governor_in_location_effect

$location$
  • 游戏提示中不显示cache_distance_map: 国家: country
    Country temp scope
    • Every owned non rural location条件
        • 地点等级: 非集镇
        • 非Is capital
        ↗
      • 非Is capital
      Add to list: cities
    • Every owned location
      • Add to local variable map
        • Name: preferred_city
        • Key: 此
        • Value: Country temp scope首都
      • Add to local variable map
        • Name: preferred_city_score
        • Key: 此
        • Value: distance_to(scope:country_temp_scope.capital)
      • Every in list
        • List: cities
        • 如果
          Number one › distance_to(scope:number_two) < local_variable_map(preferred_city_score|scope:number_one)
          则
          • 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
  • 游戏提示中不显示$location$
    Floodfill locations条件
    • Local variable map (preferred_city): location
    • 拥有者此: 非Target country
    会归属于Target country
完整脚本

调用它的脚本会填入这些值,各调用处见“关联”。

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

需要 1

给予 1

被使用于 2

事件
  • 亲属的要求character = scope:target_character · country = root · location = scope:target_location选项 1
角色互动
  • 任命家族总督character = scope:recipient · country = scope:actor · location = scope:target_capital效果
脚本 2

使用 2

© 2026 Soft Santa Cruz, S.L.U.。保留所有权利。非官方粉丝项目,与Paradox Interactive无关。游戏内容 © Paradox Interactive。 · 关于 · 隐私 · 法律声明