On ActionsOOn Actionon_albanian_migrationEffectsEffectSet local variableName: weight_for_atticaValueValue: ThessalyAdd: Southern EpirusAdd: Northern EpirusAdd: Aetolia and AcarnaniaDivide: 4Max: 0.1Multiply: 10Set local variableName: weight_for_moreaValueValue: Attica and BeotiaAdd: NeopatrasAdd: Southern EpirusAdd: Northern EpirusAdd: Aetolia and AcarnaniaDivide: 5Max: 0.1Multiply: 10Set local variableName: weight_for_italyValueValue: MoreaAdd: Northern GreeceDivide: 2Max: 0.1Multiply: 10Add to local variable mapName: previous_weightsKey: Attica and BeotiaValue: local_var:weight_for_atticaAdd to local variable mapName: previous_weightsKey: NeopatrasValue: local_var:weight_for_atticaBasilicata and CalabriaEvery province definition in areaAdd to local variable mapName: previous_weightsKey: ThisValue: local_var:weight_for_italyApuliaEvery province definition in areaAdd to local variable mapName: previous_weightsKey: ThisValue: local_var:weight_for_italyMoreaEvery province definition in areaAdd to local variable mapName: previous_weightsKey: ThisValue: local_var:weight_for_moreaAlbanian Migration Source GeographyRandom location in scripted geographywhereHas an ownerWeightFactor: 0ModifierAdd: albanian_emigration_chanceIfSource location existsThenAlbanian Migration Destination GeographyRandom location in scripted geographywhereHas an ownerWeightFactor: 0ModifierAdd: albanian_immigration_chanceIfDestination location existsThenSet local variableName: amount_of_migrationValueValue: Source location›PopulationMultiply0.010.05MultiplyValue: 1AddValue: Source location›albanian_immigration_chanceDivide: 100Source location›OwnerThe Event 'Albanian Migration' happensDestination location›OwnerThe Event 'Albanian Migration' happensExact scriptConnectionsTriggers 2AAlbanian Migrationflavor_byz.58EffectAAlbanian Migrationflavor_byz.59EffectScripting 4References 4Script ValuesAalbanian_emigration_chanceEffectAalbanian_immigration_chanceEffectScripted GeographiesAAlbanian Migration Destination GeographyEffectAAlbanian Migration Source GeographyEffectDefinitionin_game/common/on_action/country_four_yearly.txt:278Show the whole script (136 lines)History