スクリプトエフェクト
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$
