易北河之鹰吧 关注:670贴子:8,796

回复:君王之略03,脚本、建筑修改大全。储粮,英雄战回,国家特色等等

取消只看楼主收藏回复

monitor_event CharacterTurnStart CharFactionType russia
if I_LocalFaction russia
set_event_counter command_2 1
set_event_counter chivalry_1 1
set_event_counter authority_2 1
set_event_counter piety_2 1
;君主统帅>8,美德>8,威望>8,虔诚>8
set_event_counter tax_2 1
set_event_counter trade_2 1
set_event_counter farm_1 1
set_event_counter mine_1 1
set_event_counter religion_2 1
set_event_counter law_2 1
set_event_counter morale_2 1
set_event_counter upkeep_2 1
set_event_counter happy_2 1
;出色税监,喜爱商业,农业大师,商业大师,遵守教义,出色总督,天性豪勇,刻苦练兵,社交中心
set_event_counter drink_2 1
set_event_counter build_2 1
set_event_counter construct_2 1
;酗酒成性,喜爱建造一级成本,喜爱建造三级时间
set_event_counter assassin_2 1
set_event_counter spy_2 1
set_event_counter merchant_2 1
set_event_counter priest_2 1
;关注安全,容忍异国,品位高雅,通情达理
end_if
if I_LocalFaction russia
and I_EventCounter summon_r1 < 1
historic_event summon_r1
set_counter summon_timer 1
end_if
;寒冬之子
if I_LocalFaction russia
and I_EventCounter age_r1 < 1
historic_event age_r1
set_counter r_timer 1
end_if
;谨慎大公
end_monitor
;;;;;;;;;;;;;;;;;;;修改(俄罗斯完美君主【灵活法令,不用短接】)---------
monitor_event CharacterTurnStart CharFactionType hungary
and I_LocalFaction hungary
if I_EventCounter vlad < 1
set_event_counter vlad 1
end_if
set_event_counter nordic 1
set_event_counter east_europe 1
set_event_counter central 1
set_event_counter west_europe 1
set_event_counter iberiana 1
set_event_counter italy 1
set_event_counter greece 1
set_event_counter middle_eastern 1
set_event_counter north_africa 1
end_monitor
;;;;;;;;;;;;;;;;;;;修改(匈牙利效忠【第一个是穿刺公国王,灵活法令,不用短接】)
第一个是毛子的乱世英主,培养国网也太麻烦了!!我选择直接改代码。另外把寒冬之子和谨慎大公两个策略添加了,毛子最好的两个策略。推全图无敌!!!
第二个是匈牙利,全地域效忠,不用打全图了(国王只能带8个随从,打全图你也拿不了全地域效忠),有了这个,开策略你可以自己法理任何国家,吊打西班牙!!!!!。另外不用穿刺公当国王了,在骑士团招募黑龙骑士的buff加上了,这下不用si国王了,真省心


IP属地:四川26楼2024-07-15 00:38
回复
    monitor_event PreFactionTurnStart FactionType hre
    and I_LocalFaction hre
    set_faction_standing papal_states hre 1.0
    if I_EventCounter franconia < 1
    set_event_counter franconia 1
    end_if
    if I_EventCounter saxon < 1
    set_event_counter saxon 1
    end_if
    if I_EventCounter hessen < 1
    set_event_counter hessen 1
    end_if
    if I_EventCounter bohemia < 1
    set_event_counter bohemia 1
    end_if
    if I_EventCounter habsburg < 1
    set_event_counter habsburg 1
    end_if
    if I_EventCounter swabia < 1
    set_event_counter swabia 1
    end_if
    if I_EventCounter saxon_h1 < 1
    historic_event saxon_h1
    end_if
    end_monitor
    ;;;;;;;;;;;;;;;;;;;修改(神罗帝侯buff【灵活法令,不用短接。最后两个是信仰之路,天赋帝权策略】)---------
    神罗,直接6个家系一起掌权!!!信仰之路需要十字军?不需要,直接无线续杯。诵经院、商业行会全图出黑龙和条顿。个人认为,完全体是最最最NB的国家。
    但是不稳定,内在代码很复杂,我经常四五十回合,莫名其妙的跳出,被英格兰甩策略也容易跳出。我试过,一回合灭了英格兰才没跳出的。总之六个家系很不稳定,建议合理选择。
    怎么才能一回合灭了全图?看下面英雄永动机来了!!!!


    IP属地:四川27楼2024-07-15 00:43
    回复
      2026-01-07 21:57:27
      广告
      不感兴趣
      开通SVIP免广告
      ;;;;;;现用名字:“Ersa Branda”,下次直接替换【无敌英雄短接,需要直接删除;】
      monitor_event HireMercenaries I_CharacterExists Ersa Branda
      and AgentType = named character
      and FactionwideAncillaryExists knight_laohu true
      and Trait ReligiousMotivation4 >= 1
      and RandomPercent < 100
      replenish_units Ersa Branda
      replenish_action_points Ersa Branda
      end_monitor
      monitor_event CharacterTurnEnd I_CharacterExists Ersa Branda
      and AgentType = named character
      and FactionwideAncillaryExists knight_laohu true
      and Trait ReligiousMotivation4 >= 1
      and RandomPercent < 100
      replenish_units Ersa Branda
      replenish_action_points Ersa Branda
      end_monitor
      ;;;;;;;;;;;;;;;;雇佣佣兵时、回合末触发:回移动力,回兵力。限制:拥有老虎随从,拥有为信仰为行动特性
      monitor_event PostBattle I_CharacterExists Ersa Branda
      and AgentType = named character
      and FactionwideAncillaryExists knight_laohu true
      and Trait ReligiousMotivation4 >= 1
      and RandomPercent < 100
      replenish_units Ersa Branda
      replenish_action_points Ersa Branda
      end_monitor
      monitor_event PostBattle I_CharacterExists Ersa Branda
      and AgentType = named character
      and FactionwideAncillaryExists knight_laohu true
      and Trait ReligiousMotivation4 >= 1
      and RandomPercent < 100
      ;and WonBattle
      and not WonBattle
      console_command create_unit "Ersa Branda", "Swiss Guard", 2 7 7 7
      replenish_action_points Ersa Branda
      end_monitor
      ;;;;;;;;;;;;;;;;战斗后(战胜/战败时)触发:回兵力,回移动。限制:拥有老虎随从,拥有为信仰为行动特性
      ;;;;;;;;;;;;;修改(打造无敌英雄脚本)-----------------------------
      无敌英雄来了!!!!!
      为尽量减少修改。选择了【教团】特派骑士,也就是你开局选择教团辅政大臣,会送你一个【特派骑士】
      【教团骑士】拥有【老虎】随从、【为信仰为行动】特性时,获得以上BUFF
      【老虎】随从、【为信仰为行动】特性,已经在前面【军队加特性代码里面添加了】惊不惊喜?简不简单?
      哈哈哈,加了限制是为了避免AI也拥有英雄的特性,此英雄你独一无二!!!!【除非他叛变了】,如果她叛变了,请一定要杀死他!!!!不然他这个永动机,你扛不住。
      功能一:雇佣兵时,恢复兵力,恢复移动
      功能二:回合结束,恢复兵力,恢复移动
      功能三:战斗后,恢复兵力,恢复移动
      功能四:战败后,送你瑞士卫队!!!(雇佣个佣兵,带着瑞士卫队,带着你恢复的兵力,马上上去继续干!!!一回合打遍全图)
      另外,由于教团死后通过辅政大臣可以复生,所以这个英雄骑士永远也不会死!!!
      但是注意,有时候系统会送你两个【教团骑士】(尤其是西西里),但是只有一个英雄生效以上代码。所以,为了避免你搞错,马上把不能战回的送去喂鱼!!!!


      IP属地:四川28楼2024-07-15 00:54
      收起回复
        gm_swordsmiths_guild requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
        {
        convert_to 2
        capability
        {
        recruit_pool "Hearth Guard" 0 0.1 2 0 requires factions { denmark, } and event_counter civil 1
        recruit_pool "Dismounted Mercenary Knights" 0 0.11 1 0 requires factions { england, scotland, hre, france, denmark, milan, spain, portugal, venice, papal_states, sicily, poland, hungary, byzantium, egypt, moors, turks, russia, }
        armour 6
        recruits_exp_bonus bonus 1 requires factions { hre, } and resource iron
        weapon_melee_blade 1
        weapon_melee_simple 1
        weapon_missile_mechanical 1
        income_bonus bonus 200 requires factions { russia, }
        income_bonus bonus 200 requires factions { scotland, } and event_counter festival 1
        income_bonus bonus 100 requires factions { russia, } and event_counter piety_2 1
        income_bonus bonus -100 requires factions { russia, } and event_counter piety_1 1
        law_bonus bonus 1 requires factions { byzantium, } and event_counter byzh_7_accepted 1
        recruitment_slots bonus 1 requires factions { byzantium, } and event_counter spain_b 1
        recruits_morale_bonus bonus 2 requires factions { byzantium, } and event_counter spain_b 1
        population_health_bonus bonus 1 requires factions { byzantium, } and event_counter byzh_14_declined 1
        heavy_cavalry_bonus bonus 1
        ;weapon_missile_gunpowder 1
        ;weapon_projectile 1
        armour 7 requires event_counter suptaxman 1
        income_bonus bonus 50 requires event_counter suptaxman 1
        trade_level_bonus bonus 1 requires event_counter suptaxman 1
        agent_limit merchant bonus 1 requires factions { byzantium, russia, middle_eastern, } and event_counter kingtrade 1 and hidden_resource horde_target and not event_counter ai 1
        trade_base_income_bonus bonus 3 requires factions { byzantium, russia, middle_eastern, } and event_counter kingtrade 1 and not event_counter ai 1
        law_bonus bonus 2 requires factions { byzantium, russia, middle_eastern, } and event_counter kinglaw 1 and not event_counter ai 1
        population_health_bonus bonus 2 requires factions { byzantium, russia, middle_eastern, } and event_counter kinghealth 1 and not event_counter ai 1
        recruitment_slots bonus 1 requires factions { byzantium, russia, middle_eastern, } and event_counter kingslot 1 and not event_counter ai 1
        mine_resource bonus 2 requires factions { byzantium, russia, middle_eastern, } and event_counter kingmine 1 and not event_counter ai 1
        farming_level bonus 4 requires factions { byzantium, russia, middle_eastern, } and event_counter kingfarm 1 and not event_counter ai 1
        free_upkeep bonus 3 requires factions { byzantium, russia, middle_eastern, } and event_counter kingfree 1 and not event_counter ai 1
        ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;修改【开始】(锻冶行会总部)----------------------------------------
        recruit_pool "Swiss Guard" 3 3 6 2 requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
        ;瑞士卫队(削弱版本:初始数量/补充数量/最大数量/经验)
        cavalry_bonus bonus -3 requires factions { russia, }
        ;骑兵部队经验-3(莫斯科最后经验高达17,已经溢出【锻冶行会在莫斯科】)
        ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;修改【结束】(锻冶行会总部)----------------------------------------
        }
        faction_capability
        {
        recruit_pool "Hearth Guard" 0 0.015 0 0 requires factions { denmark, } and event_counter civil 1
        recruit_pool "Dismounted Mercenary Knights" 0 0.04 1 0 requires factions { england, scotland, hre, france, denmark, milan, spain, portugal, venice, papal_states, sicily, poland, hungary, byzantium, egypt, moors, turks, russia, }
        income_bonus bonus 50 requires event_counter suptaxman 1
        trade_level_bonus bonus 1 requires event_counter suptaxman 1
        recruits_exp_bonus bonus 1
        recruits_exp_bonus bonus 1 requires factions { milan, }
        ;;;;;;;;;;;;;;;;;;;;【修改】【开始】第三个数值表示最大数量,改成0.99表示可以全地图整编!!!!【【【代码有上限,写多了会跳出】】】】不要再动了,很容易跳出
        construction_time_bonus_stone bonus 90
        ;建筑时间(石头米兰牛逼)
        construction_time_bonus_wooden bonus 90
        ;建筑时间(木头)
        ;;;;;;;;;;;;;;;;;---------------------修改不显示内容-------------------------------------------------
        recruit_pool "grande carrack" 9 9 9 9 requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
        ;卡拉克巨舰
        recruit_pool "Swiss Guard" 3 3 0.99 2 requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
        ;【全图整编】瑞士卫队、马耳他(削弱版本:初始数量/补充数量/最大数量/经验)
        ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;修改(分割线)----------------------------------------
        tower_level bonus 1
        ;希腊火炮(防御+1)【 ;tower_level 3 ;希腊火炮 (3希腊火,2炮塔,1箭塔)】
        armour 8
        ;洛林甲(狂怒8)
        weapon_melee_blade 1
        weapon_missile_gunpowder 1
        weapon_melee_simple 1
        weapon_missile_mechanical 1
        weapon_artillery_gunpowder 1
        weapon_naval_gunpowder 1
        recruits_exp_bonus bonus 8
        ;所有部队经验+8(15为满值,16即为零,17溢出为1)
        recruits_morale_bonus bonus 13
        ;士气+13(溢出值未知,无明显效果)
        recruitment_slots bonus 6
        ;征兵格+6
        ;free_upkeep bonus 18
        ;免维护+18
        law_bonus bonus 20
        ;市政(法律)
        population_health_bonus bonus 15
        ;健康75%
        farming_level bonus 200
        ;农田收益
        income_bonus bonus 12000
        ;收益8000
        ;;;;;;;;;;;;;;;;;---------------------修改事务官-------------------------------------------------
        agent assassin 0
        ;可以招募刺客(这个数字翻译成最大)
        agent spy 0
        ;可以招募间谍
        agent merchant 0
        ;可以招募商人
        agent priest 0
        ;可以招募牧师
        agent diplomat 0
        ;可以招募外交官
        ;;;;;;;;;;;;;;;;;---------------------修改(事务官的数量)-------------------
        agent_limit merchant bonus 99
        ;商人+9人
        agent_limit priest bonus 99
        ;牧师+9
        agent_limit diplomat bonus 99
        ;外交官+9
        agent_limit assassin bonus 99
        ;刺客+9
        agent_limit spy bonus 99
        ;间谍+9
        ;;;;;;;;;;;;;;;;;【修改【结束】大量修改在原备份文件中被短接,无需再加强了】--------
        }
        material wooden
        construction 1
        cost 5000
        ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;以上为建筑文件export_descr_buildings中的代码。
        说了那么多【锻冶行会总部】,那么这个总部也需要修改,不加点BUFF怎么行,具体有啥功能都写了
        我只改了【开始】和【结束】中间的代码,方便你们甄别
        上面一段是本地生效,下面一段是全图生效。
        是的,全图,都有城市!!!!
        市政?健康?洛林盔甲?9经验?希腊火炮塔?加钱?应有尽有。
        建议别加码了,加钱,加兵、爬城、一回合建筑都有了。
        再加容易益处。


        IP属地:四川30楼2024-07-15 01:00
        收起回复
          Trigger crusader_kings1
          WhenToTest SettlementTurnStart
          ;Condition I_EventCounter suporder >= 1
          Condition I_EventCounter jag736 >= 1
          and FactionReligion catholic
          Guild templars_chapter_house s 10
          Guild st_johns_chapter_house s 10
          Guild teutonic_knights_chapter_house s 10
          Guild knights_of_santiago_chapter_house s 10
          ;Guild all s 5
          Guild all s 50
          ;修改,行会点数suporder改成jag736,5点改成50点
          【以上为代码原文】搜索Trigger crusader_kings1
          这是行会文件export_descr_guilds里面的内容
          我把
          ;Condition I_EventCounter suporder >= 1
          短接了,换成了【jag736】事件,在20楼
          Condition I_EventCounter jag736 >= 1
          因为开教团辅政大臣,每回合加很多BUFF,提醒太多太烦人了。另外,刚才也说了,一直开【教团】辅政大臣,系统可能会再送你一个【教团骑士】,很可能就会导致你的教团【战回英雄代码绑定对象】换了,很烦人。我一般等他死了再开辅政大臣,会再送你一个的,完全不影响游戏体验。
          ----------------------------
          以上代码的意思是,你拥有【jag736】事件时,每回合加50点【全部行会】的点数。想要啥行会,你自己挑


          IP属地:四川32楼2024-07-15 01:09
          收起回复
            到此为止,修改结束,之前的版本,我还改过土耳其的无限呼召等,这个版本没玩过,不知带代码变了没有,就没改。
            另外热门派系,西班牙、葡萄牙很简单,开策略就行了【反正策略也是无限的】,就没有修改,免得增加太多代码,引起游戏崩溃。
            另外放一张【脚本文件】的截图,让你们看下,完整的修改起始和结束是什么样的。





            IP属地:四川34楼2024-07-15 01:21
            回复
              还有大家关心的红白玫瑰啥的。我试了一下,没找到解决的办法,除非把代码删除了。但是如果我玩儿英格兰,又要重新改代码,很麻烦。
              建议隔得远的不管他。隔得近的先灭了他吧。


              IP属地:四川来自Android客户端35楼2024-07-15 01:27
              回复
                还有些什么创意类型的修改,高手们可以讨论下
                比如一键加钱,加特性就很奈斯


                IP属地:四川来自Android客户端38楼2024-07-15 17:01
                收起回复
                  2026-01-07 21:51:27
                  广告
                  不感兴趣
                  开通SVIP免广告

                  对付电脑英国的办法,每回合清空他的策略点,让他放不出来技能


                  IP属地:四川42楼2024-07-20 12:06
                  收起回复