易北河之鹰吧 关注:640贴子:8,650
  • 48回复贴,共1

东罗马三个结局的问题

只看楼主收藏回复

按照惯例文件位置:C:\HTB君王之略\mods\htb806\data\world\maps\campaign\imperial_campaign
这个文件夹下的这个文件:campaign_script
先说一下药丸版旧事辉煌的脚本:
先搜索roman empire然后往下翻找到下边的内容:
monitor_event PreFactionTurnStart FactionType byzantium
if I_EventCounter militia >= 1
and I_EventCounter legion >= 1
and I_EventCounter tavern >= 1
and I_LocalFaction byzantium
and I_EventCounter militia_r >= 1
and I_EventCounter legion_r >= 1
and I_EventCounter tavern_r >= 1
and I_NumberOfSettlements byzantium >= 45
and I_SettlementOwner Rome = byzantium
and I_SettlementOwner Tunis = byzantium
and I_SettlementOwner Alexandria = byzantium
and I_SettlementOwner Jerusalem = byzantium
and I_SettlementOwner Cordoba = byzantium
and I_SettlementOwner Antioch = byzantium
and I_SettlementOwner Cairo = byzantium
set_event_counter roma 1
set_event_counter militia1 1
set_event_counter legion1 1
set_event_counter tavern1 1
historic_event roma faction/Forever.bik factions { byzantium, }
set_faction_banner
faction byzantium
banner saxons
end_set_faction_banner
terminate_monitor
end_if
if not I_LocalFaction byzantium
and I_NumberOfSettlements byzantium >= 45
and I_SettlementOwner Rome = byzantium
set_event_counter roma 1
set_event_counter militia1 1
set_event_counter legion1 1
set_event_counter tavern1 1
set_faction_banner
faction byzantium
banner saxons
end_set_faction_banner
terminate_monitor
end_if
end_monitor
其中这段代码:
if not I_LocalFaction byzantium
and I_NumberOfSettlements byzantium >= 45
和他下边的部分,个人认为应该是给ai用的,也就是说,在这之上的,是玩家触发旧事辉煌的条件。
其中,militia 的意思的军区法令,
legion的意思是普罗法令
tavern的意思是佣兵法令
他们后边的1是要求开过一次。
and I_NumberOfSettlements byzantium >= 45 这个的意思是要求东罗马要有45座城,再往下写的是那几个目标城市突尼斯,安条克开罗什么的。再之后就是判定开启旧事辉煌。
所以要怎么改动大家就清楚了。


IP属地:北京1楼2018-08-19 21:26回复
    但是君王版的三个结局不要再求开法令,只要求历史进程点数+目标城市+回合数+所需城市数量。所以如果要改动就和之前不一样了,当然,还是先搜索roman empire,往下翻找到这些:
    monitor_event PreFactionTurnStart FactionType byzantium
    if I_CompareCounter end <= 20
    and I_CompareCounter end >= 11
    and I_TurnNumber >= 120
    and I_LocalFaction byzantium
    and I_EventCounter hetoi < 1
    and I_EventCounter augustus < 1
    and I_EventCounter roma < 1
    and I_NumberOfSettlements byzantium >= 35
    ;and I_SettlementOwner Rome = byzantium
    ;and I_SettlementOwner Jerusalem = byzantium
    and I_SettlementOwner Constantinople = byzantium
    historic_event roma faction/Forever.bik factions { byzantium, }
    set_faction_banner
    faction byzantium
    banner saxons
    end_set_faction_banner
    terminate_monitor
    end_if
    if I_CompareCounter end <= 10
    ;and I_CompareCounter end >= 11
    and I_LocalFaction byzantium
    and I_EventCounter augustus < 1
    and I_EventCounter roma < 1
    and I_EventCounter hetoi < 1
    and I_TurnNumber >= 120
    ;and I_NumberOfSettlements byzantium >= 45
    ;and I_SettlementOwner Rome = byzantium
    and I_SettlementOwner Jerusalem = byzantium
    and I_SettlementOwner Constantinople = byzantium
    if I_LocalFaction byzantium
    inc_counter gwent 5
    historic_event gwent_gain
    end_if
    historic_event hetoi faction/hetoi.bik factions { byzantium, }
    terminate_monitor
    end_if
    if I_CompareCounter end >= 21
    ;and I_CompareCounter end >= 11
    and I_LocalFaction byzantium
    and I_EventCounter augustus < 1
    and I_EventCounter roma < 1
    and I_EventCounter hetoi < 1
    and I_TurnNumber >= 120
    ;and I_NumberOfSettlements byzantium >= 45
    and I_SettlementOwner Rome = byzantium
    ;and I_SettlementOwner Jerusalem = byzantium
    and I_SettlementOwner Constantinople = byzantium
    set_event_counter militia1 1
    set_event_counter legion1 1
    set_event_counter tavern1 1
    historic_event augustus faction/augustus.bik factions { byzantium, }
    terminate_monitor
    end_if


    IP属地:北京2楼2018-08-19 21:35
    回复
      其中:historic_event roma faction/Forever.bik factions { byzantium, }表示的是旧事辉煌
      historic_event hetoi faction/hetoi.bik factions { byzantium, } 表示的是四海霸业
      historic_event augustus faction/augustus.bik factions { byzantium, }表示的是万王之王
      说白了,关键词roma是旧事,hetoi是四海,augustus是万王。
      下面,我大概讲解一下这些英文的意思:
      if I_CompareCounter end <= 20
      and I_CompareCounter end >= 11
      这个是旧事的历史进程点数要求,说白了是大于等于11点到小于等于20点之间的这个范围。
      and I_TurnNumber >= 120这个顾名思义就是开启这个结局的回合数,即120回合。
      and I_NumberOfSettlements byzantium >= 35,这个大家明白吧?要求城市数量大于等于35个。
      ;and I_SettlementOwner Rome = byzantium
      ;and I_SettlementOwner Jerusalem = byzantium
      and I_SettlementOwner Constantinople = byzantium
      这段列出了三个城市,从上往下数分别是:罗马,耶路撒冷,君士坦丁堡,但是请注意,前两行最开头是一个【;】这个的意思应该是无效的意思,但为什么还要这么写我就不知道了,大家只要知道这里只有要求君堡那段没有【;】,所以,开启旧事辉煌所必须城市是君士坦丁堡。
      historic_event roma faction/Forever.bik factions { byzantium, }
      set_faction_banner
      faction byzantium
      banner saxons
      end_set_faction_banner
      terminate_monitor
      end_if
      这最后一段的意思是,满足以上就开启旧事辉煌了。
      再多说一点,旧事辉煌这段下边的这个:
      if I_CompareCounter end <= 10
      ;and I_CompareCounter end >= 11
      这段是四海霸业所需的历史进程点数,下边那行大于等于11前边有【;】不用在意了。所以,开启四海霸业要求小于等于10的历史进程点数
      再之后那个城市的要求也是如此,前边有分号的可以不用看了。


      IP属地:北京3楼2018-08-19 21:52
      回复
        关于要怎么改,我已经讲解明白了,大家想什么时候开启哪个结局,就看自己的选择了。不过这里有一点和药丸版不同的是,药丸版可以改成开局就是重建罗马,也就是说,选东罗马一进游戏就是出现重建罗马的视频。但是君王版三个结局如果改成第一回合就开启,要到第二回合才行。
        还有个事儿,如果改,个人建议三个结局都改成统一的回合数,以免遇到可能出现的bug或者坏档。


        IP属地:北京4楼2018-08-19 21:58
        回复
          @放逐之刃清小兵 来看看我写的没问题吧。


          IP属地:北京5楼2018-08-19 21:59
          回复
            还有,我这写的比较多,是在电脑上写的,用电脑打开看的比较明白,用手机端打开,估计空行什么的就都没了,会比较乱,大家见谅。


            IP属地:北京6楼2018-08-19 22:01
            回复
              辛苦了,脚本只要看得懂,应该就没问题。不妨把所有的结局都发出来,大家想用啥,自己替换就行了。


              IP属地:湖南来自Android客户端7楼2018-08-20 00:56
              收起回复
                @海海东仙东仙 看这里


                IP属地:北京来自Android客户端8楼2018-10-04 07:29
                回复(4)
                  小研究了一下明白了....
                  还有就是
                  historic_event roma faction/Forever.bik factions { byzantium, }
                  set_faction_banner
                  faction byzantium
                  banner saxons
                  end_set_faction_banner
                  terminate_monitor
                  end_if
                  这些的话需要删除么?改了点数为0 回合1 城市5 可是还是没能开启旧世辉煌呢


                  IP属地:山东9楼2018-10-10 12:12
                  回复(2)
                    我看了,在脚本里面看到了这些内容,确实开启的条件不一样,但是我还是没明白关于三个法令的事儿。set even counter的意思好像是设置一个事件吧?这个东西的作用反应在在建筑文件夹里。比如某某兵种可以招募,限制条件事件计数器黑色炼狱。这里的黑色炼狱在脚本里就是一个事件,用set even counter表示。
                    相同的代码,在这里怎么要解释成开过一次?


                    IP属地:四川来自Android客户端10楼2018-11-05 14:46
                    回复(3)
                      楼主,拜占庭是旧世辉煌好还是万王之王好?旧世辉煌可以解锁所有的策略 万王可以不?修改的话 只修改万王就可以了是吗?


                      IP属地:广西11楼2019-01-03 20:41
                      收起回复
                        @killer1942 突然想到一个问题,拜拜了三大法律有很多的办法,比如说普罗。我直接把三大结局都安排上了。法令还有没有用呢?就是说我现在三个结局都有了。那么三大法令,对拜拜还有没有用?


                        IP属地:四川来自Android客户端12楼2019-03-31 20:28
                        收起回复