静中先生 发表于 2023-5-3 10:37:25

想修改各个国家升级时代所花费的资源

我想了两种办法,第一种是开局自动科技:升级花费直接×2,第二种就是直接修改数据,想来想去第一种的语句不会写,第二种的就找到了亚洲三国的数据地址,因为是要建造奇观所以很好找到,但是欧州和土著的我找不到,求助

こはね 发表于 2023-5-3 11:41:08

第一种:

                        <Effect type="Data" amount="2.00" subtype="Cost" resource="Gold" relativity="Percent">
                              <Target type="techWithFlag">AgeUpgrade</Target>
                        </Effect>
                        <Effect type="Data" amount="2.00" subtype="Cost" resource="Wood" relativity="Percent">
                              <Target type="techWithFlag">AgeUpgrade</Target>
                        </Effect>
                        <Effect type="Data" amount="2.00" subtype="Cost" resource="Food" relativity="Percent">
                              <Target type="techWithFlag">AgeUpgrade</Target>
                        </Effect>
                        <Effect type ='Data' amount ='2.00' subtype ='Cost' resource ='Food' relativity ='BasePercent'>
                              <Target type ='ProtoUnit'>AbstractWonder</Target>
                        </Effect>
                        <Effect type ='Data' amount ='2.00' subtype ='Cost' resource ='Wood' relativity ='BasePercent'>
                              <Target type ='ProtoUnit'>AbstractWonder</Target>
                        </Effect>
                        <Effect type ='Data' amount ='2.00' subtype ='Cost' resource ='Gold' relativity ='BasePercent'>
                              <Target type ='ProtoUnit'>AbstractWonder</Target>
                        </Effect>

第二种由于收集调用名数据过于麻烦,此处不列出{:4_88:}

こはね 发表于 2023-5-3 11:45:10

                改变单位成本(Food食物可替换为Fame、Ships船运、Wood木材、Gold黄金、Trade茶叶和XP经验值。Unittype为单位标签或单位调用名)

                        <Effect type ='Data' amount ='0.75' subtype ='Cost' resource ='Food' relativity ='BasePercent'>
                                <Target type ='ProtoUnit'>Unittype</Target></Effect>







                改变科技的研发成本(资源有Fame、Food食物、Wood木材、Gold黄金、Trade茶叶和XP经验值,下同。因游戏BUG,改变科技成本不能用BasePercent,科技无法增加船运成本,包括支援卡。科技成本为零时无法改变。Techname为科技调用名。)

                        <Effect type ='Data' amount ='资源数量' subtype ='Cost' resource ='资源' relativity ='Absolute'>
                                <Target type ='Tech'>Techname</Target></Effect>

                改变所有科技成本(如果数据里没有相应科技成本函数,则无法改变。)

                        <Effect type ='Data' amount ='0.60' subtype ='Cost' resource ='资源' relativity ='Percent'>
                                <Target type ='techAll'></Target></Effect>


                改变特定科技成本(如Teamtech队伍科技。具体参照Flag表格。)

                        <Effect type ='Data' amount ='0.60' subtype ='Cost' resource ='资源' relativity ='Percent'>
                                <Target type ='techWithFlag'>TechFlag</Target></Effect>


                改变所有科技研究速度(包括船运)

                        <Effect type ='Data' amount ='0.01' subtype ='ResearchPoints' relativity ='Percent'>
                                <Target type ='techAll'></Target></Effect>

页: [1]
查看完整版本: 想修改各个国家升级时代所花费的资源