單機遊戲

當前位置 /首頁/單機遊戲 > /列表

無盡空間2檔案修改教程 自訂地圖種族特性技能方法

寫在前面:修改目標檔案位置:Endless Space 2PublicSimulation

無盡空間2檔案修改教程 自訂地圖種族特性技能方法


一、派系特徵檔案修改:“SimulationDescriptors[FactionTrait]”

檔案原文(以傳奇英雄2爲例):

<SimulationDescriptor Name="FactionTraitLegendaryHeroes2" Type="FactionTrait">

<Modifier TargetProperty="Upkeep" Operation="Percent" Value="-0.5" Path="ClassEmpire/ClassGarrison/ClassHero"/>

<Modifier TargetProperty="ExperiencePerTurn" Operation="Addition" Value="2" Path="ClassEmpire/ClassGarrison/ClassHero"/>

<Modifier TargetProperty="ExperiencePerTurn" Operation="Addition" Value="2" Path="ClassEmpire/ClassColonizedStarSystem/ClassHero" TooltipHidden="true"/>

<Modifier TargetProperty="Upkeep" Operation="Percent" Value="-0.5" Path="ClassEmpire/ClassColonizedStarSystem/ClassHero" TooltipHidden="true"/>

</SimulationDescriptor>


要點提示:

TargetProperty:目標屬性

Value:數值

Operation:直譯操作,Addition加法、Subtraction減法、Percent百分比

Path:目標路徑

TooltipHidden:隱藏提示,true或者false

Priority:有限度


示例修改:

<SimulationDescriptor Name="FactionTraitLegendaryHeroes2" Type="FactionTrait">

<Modifier TargetProperty="PopulationGrowthUpkeep" Value="-0.5" Operation="Percent" Path="ClassEmpire/ClassColonizedStarSystem"/> <!-- ×人口增長維護 -->

<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Percent" Value="-0.5" Path="ClassEmpire//ClassGarrison"/> <!-- ×艦隊維護 -->

<Modifier TargetProperty="TechnologyCost" Value="-0.5" Operation="Percent" Path="ClassEmpire/ClassResearch"/> <!-- ×科技研究成本 -->

<Modifier TargetProperty="BuildingProductionCostReduction" Operation="Subtraction" Value="0.5" Path="ClassEmpire/ClassColonizedStarSystem"/> <!-- -建築生產成本 -->

<Modifier TargetProperty="ShipProductionCostReduction" Operation="Subtraction" Value="0.5" Path="ClassEmpire/ClassColonizedStarSystem"/> <!-- -艦船生產成本 -->

<Modifier TargetProperty="RecipeCostReduction" Value="-0.5" Operation="Addition" Path="ClassEmpire" Priority="1"/> <!-- +模組費用成本 -->

<Modifier TargetProperty="PeacefulTreatyCostReduction" Value="-0.5" Operation="Addition" Path="ClassEmpire"/> <!-- +政治條約成本 -->

<Modifier TargetProperty="MaximumCommandPoints" Operation="Addition" Value="5" Path="ClassEmpire"/> <!-- +指揮點數 -->

<Modifier TargetProperty="MaximumMovement" Operation="Addition" Value="5" Path="ClassEmpire/ClassGarrison/ClassShip"/> <!-- +移動點在飛船 -->

<Modifier TargetProperty="Happiness" Operation="Addition" Value="50" Path="ClassEmpire/ClassColonizedStarSystem"/> <!-- +快樂在星系 -->

<Modifier TargetProperty="BonusPopulationFood" Operation="Addition" Value="50" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +食物 -->

<Modifier TargetProperty="BonusPopulationIndustry" Operation="Addition" Value="50" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +工業 -->

<Modifier TargetProperty="BonusPopulationDust" Operation="Addition" Value="50" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +星辰 -->

<Modifier TargetProperty="BonusPopulationScience" Operation="Addition" Value="50" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +科學 -->

<Modifier TargetProperty="ApplyShouldForceRawFood" Value="5" Operation="Addition" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +快樂食物 -->

<Modifier TargetProperty="ApplyShouldForceRawnIndustry" Value="5" Operation="Addition" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +快樂工業 -->

<Modifier TargetProperty="ApplyShouldForceRawDust" Value="5" Operation="Addition" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +快樂星辰 -->

<Modifier TargetProperty="ApplyShouldForceRawScience" Value="5" Operation="Addition" Path="ClassEmpire/ClassColonizedStarSystem/ClassPlanet"/> <!-- +快樂科學 -->

<Modifier TargetProperty="RawMaximumPopulation" Operation="Addition" Value="5" Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet,PlanetSizeTiny"/> <!-- +人口在微型行星 -->

<Modifier TargetProperty="RawMaximumPopulation" Operation="Addition" Value="5" Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet,PlanetSizeSmall"/> <!-- +人口在小型行星 -->

<Modifier TargetProperty="RawMaximumPopulation" Operation="Addition" Value="5" Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet,PlanetSizeMedium"/> <!-- +人口在中型行星 -->

<Modifier TargetProperty="RawMaximumPopulation" Operation="Addition" Value="5" Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet,PlanetSizeLarge"/> <!-- +人口在大型行星 -->

<Modifier TargetProperty="RawMaximumPopulation" Operation="Addition" Value="5" Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet,PlanetSizeHuge"/> <!-- +人口在巨型行星 -->

<Modifier TargetProperty="MaximumShipProbeStock" Operation="Addition" Value="5" Path="ClassEmpire/ClassGarrison/ClassShip,ShipRoleExploration"/> <!-- +節點分析 -->

<Modifier TargetProperty="GroundBattleDefenderTroopsMaxHealthMultiplier" Operation="Percent" Value="0.5" Path="ClassEmpire/ColonizedStarSystemStateColony,ClassColonizedStarSystem"/> <!-- ×駐防部隊生命值在星系 -->

<Modifier TargetProperty="Upkeep" Operation="Percent" Value="-0.5" Path="ClassEmpire/ClassGarrison/ClassHero"/> <!-- ×英雄維護成本 -->

<Modifier TargetProperty="ExperiencePerTurn" Operation="Addition" Value="5" Path="ClassEmpire/ClassGarrison/ClassHero"/> <!-- +英雄經驗每回合 -->

<Modifier TargetProperty="ExperiencePerTurn" Operation="Addition" Value="5" Path="ClassEmpire/ClassColonizedStarSystem/ClassHero" TooltipHidden="true"/> <!-- +英雄經驗每回合在系統 -->

<Modifier TargetProperty="Upkeep" Operation="Percent" Value="-0.5" Path="ClassEmpire/ClassColonizedStarSystem/ClassHero" TooltipHidden="true"/> <!-- ×英雄維護成本在系統 -->

</SimulationDescriptor>

總結說明:

你可以交替修改Operation、Path、TargetProperty來實現不同加成

配合FactionTraits[Major]、GuiElements[FactionTraits]、ES2_Localization_Locales……幾個檔案可以創造新的派系特性。