《文明:太空》 中如何修改游戏中全地图的战略资源数量?接下来介绍的是玩家分享的关于全地图战略资源数量的修改方法,供大家参考。

查询文明5的维基网和美国石油学会(美国石油协会)手册才知道,文明5战略资源数量虽然在可扩展置标语言文件有定义,其实游戏并不使用那个配置。上面几楼提到的现代的虽然自己定义XML,但是存在版本不更新等问题,我的方法是任何版本都适用的,因为直接修改游戏人寿保险商协会(人寿保险人协会)代码。

废话不多说了,切入正题。

首先找到你的游戏目录下的这个文件,备份之后就可以修改了。

(各位自己把正斜线看成反斜线,我是日文操作系统没法输入正斜线)

资产/游戏性/Lua/分配启动情节。左上臂

打开上述文件,找到第9437行代码附近找到如下两个函数,改变函数中各个初始战略资源数量即可,海洋战略资源另有函数,不过这里改动了就足够了。下面是我自己改的数量,大家可以改成自己喜欢的数量。

函数assignstartingplots 3360 getmajorgstratecresourcequantiyvalues()

-该函数确定每种战略资源主要矿床规模的单位数量。

-注释:不能在海里放油的剧本需要在陆地上增加数量来补偿。

当地uran_amt,horse_amt,oil_amt,iron_amt,coal_amt,alum_amt=40,40,70,60,70,80;

-检查资源设置。

如果self.resource_setting==1,则-稀疏

uran_amt,horse_amt,oil_amt,iron_amt,coal_amt,alum_amt=20,40,50,40,50,50;

else if self。resource _ setting==3然后-充裕

uran_amt,horse_amt,oil_amt,iron_amt,coal_amt,alum_amt=40,60,90,90,100,100;

目标

返回铀金额、马金额、油金额、铁金额、煤金额、铝金额

目标

-

函数assignstartingplots 3360 getsmallstrategresourcequityvalues()

-该函数确定每种战略资源的小额存款的单位数量。

当地uran_amt,horse_amt,oil_amt,iron_amt,coal_amt,alum_amt=20,20,30,20,30,30;

-检查资源设置。

如果self.resource_setting==1,则-稀疏

uran_amt,horse_amt,oil_amt,iron_amt,coal_amt,alum_amt=10,10,20,10,20,20;

else if self。resource _ setting==3然后-充裕

不间断空格

;   uran_amt, horse_amt, oil_amt, iron_amt, coal_amt, alum_amt = 30, 30, 30, 30, 30, 30;

    end

    return uran_amt, horse_amt, oil_amt, iron_amt, coal_amt, alum_amt

    end

    在野蛮太空中也是同样的文件,内容是这样的:

    function AssignStartingPlots:GetMajorStrategicResourceQuantityValues()

    -- This function determines quantity per tile for each strategic resource's major deposit size.

    -- Note: scripts that cannot place petroleum in the sea need to increase amounts on land to compensate.

    -- Note: Large deposits of Xenomass are already on the board, having been placed in the hearts of Wild Areas in FeatureGenerator.

    local firaxite_base, geothermal_base, petroleum_base, titanium_base, floatstone_base, xenomass_base = 7, 5, 5, 5, 6, 7;

    local firaxite_range, geothermal_range, petroleum_range, titanium_range, floatstone_range, xenomass_range = 4, 2, 3, 3, 5, 4;

    -- Check the resource setting.

    if self.resource_setting == 1 then -- Sparse

    firaxite_base, geothermal_base, petroleum_base, titanium_base, floatstone_base, xenomass_base = 5, 3, 4, 4, 5, 5;

    firaxite_range, geothermal_range, petroleum_range, titanium_range, floatstone_range, xenomass_range = 3, 2, 3, 3, 3, 3;

    elseif self.resource_setting == 3 then -- Abundant

    firaxite_base, geothermal_base, petroleum_base, titanium_base, floatstone_base, xenomass_base = 9, 5, 6, 6, 8, 9;

    firaxite_range, geothermal_range, petroleum_range, titanium_range, floatstone_range, xenomass_range = 5, 3, 4, 4, 6, 5;

    end

    self.firaxite_base, self.geothermal_base, self.petroleum_base = firaxite_base, geothermal_base, petroleum_base;

    self.titanium_base, self.floatstone_base, self.xenomass_base = titanium_base, floatstone_base, xenomass_base;

    self.firaxite_range, self.geothermal_range, self.petroleum_range = firaxite_range, geothermal_range, petroleum_range;

    self.titanium_range, self.floatstone_range, self.xenomass_range = titanium_range, floatstone_range, xenomass_range;

    end

    ------------------------------------------------------------------------------

    function AssignStartingPlots:GetSmallStrategicResourceQuantityValues()

    -- This function determines quantity per tile for each strategic resource's small deposit size.

    local firaxite_base, geothermal_base, petroleum_base, titanium_base, floatstone_base, xenomass_base = 2, 1, 2, 2, 2, 2;

    local firaxite_range, geothermal_range, petroleum_range, titanium_range, floatstone_range, xenomass_range = 2, 2, 2, 2, 2, 2;

    -- Check the resource setting.

    if self.resource_setting == 1 then -- Sparse

    firaxite_base, geothermal_base, petroleum_base, titanium_base, floatstone_base, xenomass_base = 2, 1, 2, 2, 2, 2;

    firaxite_range, geothermal_range, petroleum_range, titanium_range, floatstone_range, xenomass_range = 1, 1, 1, 1, 1, 1;

    elseif self.resource_setting == 3 then -- Abundant

    firaxite_base, geothermal_base, petroleum_base, titanium_base, floatstone_base, xenomass_base = 3, 2, 3, 3, 3, 3;

    firaxite_range, geothermal_range, petroleum_range, titanium_range, floatstone_range, xenomass_range = 2, 2, 2, 2, 2, 2;

    end

    self.minor_firaxite_base, self.minor_geothermal_base, self.minor_petroleum_base = firaxite_base, geothermal_base, petroleum_base;

    self.minor_titanium_base, self.minor_floatstone_base, self.minor_xenomass_base = titanium_base, floatstone_base, xenomass_base;

    self.minor_firaxite_range, self.minor_geothermal_range, self.minor_petroleum_range = firaxite_range, geothermal_range, petroleum_range;

    self.minor_titanium_range, self.minor_floatstone_range, self.minor_xenomass_range = titanium_range, floatstone_range, xenomass_range;

    end

1.《《文明:太空》全地图战略资源数量修改方法 文明太空怎么设置地图》援引自互联网,旨在传递更多网络信息知识,仅代表作者本人观点,与本网站无关,侵删请联系页脚下方联系方式。

2.《《文明:太空》全地图战略资源数量修改方法 文明太空怎么设置地图》仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证。

3.文章转载时请保留本站内容来源地址,https://www.lu-xu.com/gl/2358055.html