Scripted Effect
move_capital_event_effect
- If
$from$Has >$to$Development DevelopmentThen- Show as tooltip
$to$Gains ($from$Development −$to$Development, at least 0) × 0.75 Development$from$Loses ($from$Development −$to$Development, at least 0) × 0.75 Development
- Not shown in the game's tooltip
- Set local variable
- Name:
difference_between_targets - Value
- Value:
$from$Development - Subtract:
$to$Development - Min: 0
- Multiply: 0.75
- Value:
- Name:
$to$Gainslocal_var:difference_between_targetsDevelopment$from$Loseslocal_var:difference_between_targetsDevelopment
- Set local variable
- Show as tooltip
- Set capital: to
$to$IfLocation Rank:
Cityor
MegalopolisElse ifLocation Rank:
TownThenchange_location_rank_effect: Location Rank:
CityOtherwisechange_location_rank_effect: Location Rank:
Town- Add migration: Owner: This · From location: from · To location: to · Culture: RootCulture · Months: 6AmountFixed range
- Min
- Value:
$from$Population - Divide: 100
- Value:
- Max
- Value:
$from$Population - Multiply: 2
- Divide: 100
- Value:
- Min
Exact script
Script that calls it fills these in, as each caller in Connections shows.
$from$$to$
Requires 3
City$to$
Megalopolis$to$
Town$to$
References 2
Used by 7
Events
Forbidden City Builtfrom = root.capital · to = scope:target_locationOption 1
The Southern Capitalfrom = scope:current_capital · to = scope:target_locationOption 1
A New Capital in Warsaw?from = scope:current_capital · to = scope:target_locationOption 1
Formable Countries
ConstantinopleLAT_ffrom = root.capital · to = location:constantinopleWhen formed
ConstantinopleLAT_REDUCED_REQUIREMENTS_ffrom = root.capital · to = location:constantinopleWhen formed
RomeROM_BYZ_ffrom = root.capital · to = location:romeWhen formed
RomeROM_ffrom = root.capital · to = location:romeWhen formed
Scripting 2
Uses 1
- change_location_rank_effectlocation_rank = location_rank:city (+1)$to$
