维多利亚3吧 关注:102,464贴子:1,410,045

【改派专用】最全修改变量代码,温情提示小改怡情,大改伤身

只看楼主收藏回复

【改派专用】最全修改变量代码
温情提示小改怡情,大改伤身
本贴为综合收集整理,集合各位大佬的东西,整合到一起基本可以满足各位一切玩法需求
主体原理创建一个自己定义的决议,决议是以添加BUFF的形式,在决议中添加调整各项你想加入的内容,随时可改不用新建档,玩家独一份。


IP属地:湖南1楼2022-10-30 22:19回复
    二楼,感谢@星河战书 此为他提供的
    游戏根目录/game/common/decisions下新建txt文件china_empire.txt,内容如下:(记得删掉注释汉字)
    china_empire = {
    is_shown = {
    has_technology_researched = colonization 是否有zhimin科技 (这是要研发殖民科技之后决议会出现可以点击激活)
    is_ai = no 不是ai
    NOT = { has_variable = imperial_revival_taken } 是否有该决议变量
    }
    when_taken = {
    set_variable = imperial_revival_taken 添加该决议变量
    add_modifier = {
    name = imperial_revival 决议添加效果变量
    months = 1200 持续时间 (这里是按月份算1代表一个月,游戏内最小单位时间是周所以这里1200个月相当于98年可以自行调整时间,整体游戏是100年1224月)
    }
    }
    }


    IP属地:湖南2楼2022-10-30 22:25
    收起回复
      再去游戏根目录/game/common/modifiers下,找一个你喜欢的文件(我是tolman_modifiers.txt),
      添加内容如下:
      imperial_revival = {
      (这里添加你想要的增效内容及数量,1代表百分之百)
      }


      IP属地:湖南3楼2022-10-30 22:27
      收起回复
        state_ birth_ rate_ mult = 0.2 #出生率
        state_ mortality_ mult = -0.01 #人口死亡率.
        state_ welfare_ add = 1 #全阶级福利水平生活水平
        其他代码修改
        state_ poor_ expected_ sol = -10 #劳_工阶层需求
        state_ middle_ expected_ sol = -10 #中产阶层需求
        state_ rich_ expected_ sol = -20 #富裕阶层需求
        country_ discourage consumption_ cost_ mult = -0.5 #抑制某种消费的权威力消耗(?抑制消费花费
        country_ officers_ pol_ str. mult = 1 #军官政治力量
        country_ bureaucrats_ pol_ str_ mult = 5 #官僚政治力量
        interest_ group_ pol str_ mult = 1 #利益集团政治力量
        country_ opposition_ ig_ approval. add = 100 #在野利益集团支持度
        interest_ _group_ pop_ attraction_ mult = 10 #利益集团人群吸引力
        country_ bureaucracy_ _add = 10 #国家行政力
        country_ authority_ add = 10 #国家权威力
        country_ influence_ add = 10 #国家影响力
        country_ _tax_ income_ _add = 80000 #税收(基数
        country_ expenses_ add = -5000 #开支(基数
        building_ group_ bg_ mining_ laborers_ mortality_ mult = -0.95
        building_ group_ bg_ mining. machinists_ mortality_ mult = -0.95 工人死亡率
        building_ group_ bg_ mining_ engineers_ mortality_ mult = -0.95
        building_ shipyards_ _throughput mult= 0.5 #船厂产出(百分比
        building_ arms_ industry_ throughput mult= 0.5 #兵工厂产出(百分比
        building_ subsistence_ output_ add = 50 #自给农场工资
        building_ _throughput_ mult= 10 #工厂吞吐
        building_ input_ mult = -0.01 #工厂原材料输入消费因素
        building_ government_ administration_ _throughput_ mult = 5 #行政建筑产出(百分比
        building_ railway_ throughput mult = 5 #铁路产出(百分比
        building_ silk_ _plantation_ throughput mult = 5 #养蚕产出(百分比
        building_ group. _bg. agriculture. _throughput mult= 5 #农业建筑吞吐
        building_ group_ bg_ fishing_ throughput_ mult = 5 #捕鱼建筑吞吐
        building_ group_ bg_ _whaling_ throughput mult = 5 #捕鲸建筑吞吐
        building_ group_ bg_ logging_ throughput mult = 5 #伐木场吞吐
        building_ iron_ mine_ _throughput_ mult= 5 #铁矿吞吐
        building_ lead_ mine_ throughput mult = 5 #铅矿吞吐
        building_ port_ throughput mult = 5 #港口吞吐
        building_ coal_ mine_ _throughput_ mult = 5 #煤矿吞吐
        building_ _output _electricity_ mult = 5 #电力吞吐
        building_ sulfur. _mine_ throughput_ mult = 5 #硫磺矿吞吐
        building_ output_ hardwood_ mult = 5 #硬木吞吐
        building_ dye_ plantation_ throughput mult = 5 #染料吞吐
        unit_ supply_ consumption_ mult = -0.9 #部队的供给和消费
        country_ army_ power_ projection_ mult = 3 #陆军力量投射
        country_ navy_ power_ projection_ mult = 5 #海军力量投射(百分比
        unit_ army_ offense_ _add = 30 #陆军进攻
        unit_ army_ defense_ add = 30 #陆军防御
        unit_ army_ offense_ mult = 0.5 #陆军攻击(百分比
        unit_ army_ defense_ mult = 0.5 #陆军防御(百分比
        unit_ navy_ offense_ mult = 0.5 #海军攻击(百分比
        unit_ navy_ defense_ mult = 0.5 #海军防御(百分比
        unit_ morale_ damage_ mult = 2.0 #部队士气打击
        unit_ morale_ protection_ mult = 2.0 #部队士气防御
        unit_ kill rate_ add = 2 #部队击杀率
        unit_ devastation mult = -1 #部队破坏率
        character_ attrition_ risk_ mult = -3 #损耗风险的乘数
        state_ tax_ waste_ add = -1 #税收浪费
        technology_ invention_ cost mult = -0.5 #科技花费.
        country_ tech_ spread_ add = 1000 #科技擴散增加
        country_ tech_ spread_ mult = 0.2 #科技擴散增加百分比
        country_ weekly_ _innovation_ add = 1000 #科技進度增加
        country_ weekly_ innovation_ max_ add = 20000 #科技進度上限增加
        state_ assimilation mult = 1 #同化
        state_ dependent_ wage_ mult= 1 #受扶持人口收入
        state_ education_ access_ add = 0.1 #教育機會
        state_ education_ _access_ _wealth_ _add = 0.1 #财富受教育机会
        state_ migration_ pull_ mult = 5 #移民吸引力.
        state_ turmoil effects_ mult = -0.90 #动乱度影响(百分比
        state_ migration_ pull_ unincorporated mult = 5.0 #未整合地区移民吸引力
        state_ expected_ sol_ _from_ literacy = -20 #识字率对需求的影响
        state_ building_ port max_ level _add = 10000 #省份港口建设上限
        country_ institution_ colonial_ affairs_ max_ investment_ add = 5 #殖民机构投入等级
        unit_ convoy_ raiding_ mult = 2 #商船袭击效率
        country_ expedition_ events_ explorer_ mult = 2 #探险的时机
        state_ non_ homeland_ colony_ growth_ speed_ mult = 5 #殖民地增长速度
        country_ trade_ route_ competitiveness_ mult = 2 #贸易路线竞争力
        country_ trade_ route_ imports_ _add = 100 #贸易路线进口量
        country_ _trade_ route_ exports_ _add = 100 #贸易路线出口量
        state_ conscription_ rate_ mult = 1 #省份征兵效率
        state_ infrastructure_ add = 1000 #地区基础设施
        state_ infrastructure_ mult = 1 #省份基础设施(百分比
        country_ construction_ add = 1000 #基础建筑能力
        state_ construction_ mult = 2 #地区建筑效力
        country_ prestige_ add = 100 #国家威望
        country_ bureaucracy_ mult = 10 #国家行政力修正
        country_ authority_ mult = 100 #权威力修正
        country_ influence_ mult = 100 #影响力修正
        country_ legitimacy_ base_ _add = 1000 #政权合法性
        country_ decree_ cost_ mult = -0.5 #法令花费
        country_ law_ enactment _time_ mult= -1 #法律通过时间
        country_ law_ enactment success_ add = 1.0 #法律通过成功率
        country_ institution_ size_ _change_ speed_ mult = 10 #变更机构需要的时间机构规模变更速度
        country_ promotion ig_ attraction_ mult = 2 #扶植增加利益集团的影响
        country_ suppression_ ig_ _attraction_ mult = -10 #打压减少利益集团的影响
        interest_ group_ approval _add = 1000 #执政利益集团支持度
        interest_ group_ _in_ opposition_ _approval_ add = 1000 #在野利益集团支持度
        state_ radicals_ from_ sol_ change_ mult = -10000 #因需求变化的激进者数量
        state_ loyalists_ from_ sol_ _change_ mult = 10000 #因需求变化的效忠者数量
        character_ health_ add = 10 #角色健康
        character_ command_ limit_ mult = 5 #角色指挥上限
        character_ popularity_ add = 100 #人气.
        country_ infamy_ _decay_ mult = 1000 #恶名衰减
        country_ diplomatic_ play_ maneuvers_ add = 100 #外交博弈行动力
        country_ improve_ relations_ speed_ mult = 100 #改善关系速度
        country_ damage_ relations_ speed_ mult = 100 #破坏关系速度


        IP属地:湖南4楼2022-10-30 22:27
        收起回复
          我想改陆军和海军的移动速度


          IP属地:江西来自Android客户端5楼2022-10-31 00:41
          回复
            海军的虚空大挪移问题不算大,陆军就像龟爬


            IP属地:江西来自Android客户端6楼2022-10-31 00:42
            回复
              被吞了哥


              IP属地:美国7楼2022-10-31 01:42
              收起回复
                火钳刘明


                IP属地:山东来自Android客户端8楼2022-10-31 23:23
                回复
                  游戏还不是很完善,跟二代一样中后期产业过剩一点就容易崩溃,比如大清千营整体动员就会崩,一般都是一个将军一个一个动员最多二十个将军


                  IP属地:湖南来自Android客户端9楼2022-11-01 21:33
                  回复
                    还有石油也是过量会出现bug移动到采购就会崩


                    IP属地:湖南来自Android客户端10楼2022-11-01 21:33
                    回复
                      有没有税收能力的代码啊


                      IP属地:重庆11楼2022-11-02 10:52
                      收起回复
                        4楼被吞了,没有链接啊


                        IP属地:河南来自Android客户端12楼2022-11-02 19:16
                        回复
                          我刚试了一个吧里修改地区资源的方法 可行 最大资源数量不要超过999 否则开局报错退出


                          IP属地:黑龙江来自Android客户端13楼2022-11-03 03:59
                          收起回复
                            另外 求问 地区的buff在哪改?盛京的良港在内陆我难受的要死 东北没有黑土地加农业加成难受


                            IP属地:黑龙江来自Android客户端14楼2022-11-03 04:12
                            回复
                              我想写一个把南安第斯人迁移到纽约的决议,参考v2血泪之路写的,决议有显示南安第斯人将会迁移至,但地点是无效,点了也没有效果,难道是纽约代码的格式写错了?



                              IP属地:加拿大来自Android客户端16楼2022-11-03 08:16
                              回复