脚本效果
create_familial_governor_in_location_effect
$location$- 游戏提示中不显示cache_distance_map: 国家: countryCountry temp scope↗
- Every owned non rural location条件Add to list: cities
- Every owned location
- Add to local variable map
- Name:
preferred_city - Key: 此
- Value: Country temp scope首都
- Name:
- Add to local variable map
- Name:
preferred_city_score - Key: 此
- Value:
distance_to(scope:country_temp_scope.capital)
- Name:
- 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
- Name:
- Add to local variable map
- Name:
preferred_city_score - Key: Number one
- Value:
scope:number_one.distance_to(scope:number_two)
- Name:
- Add to local variable map
- Add to local variable map
- Every owned non rural location条件
- Create country from location: Set capital: location · Set new ruler: characterMake subject of
- Target: country
- Type:
家族总督
add_hafsid_governor_content国家: country - 游戏提示中不显示
$location$Floodfill locations条件- Local variable map (
preferred_city): location - 拥有者此: 非Target country
会归属于Target country - Local variable map (
完整脚本
调用它的脚本会填入这些值,各调用处见“关联”。
$location$$country$$character$
需要 1
比贾亚$location$
给予 1
家族总督$location$
被使用于 2
事件
亲属的要求character = scope:target_character · country = root · location = scope:target_location选项 1
角色互动
- 任命家族总督character = scope:recipient · country = scope:actor · location = scope:target_capital效果
脚本 2
使用 2
- add_hafsid_governor_contentcountry = $country$$location$
- cache_distance_mapcountry = $country$$location$
