钢铁雄心2吧 关注:10,210贴子:96,317
  • 2回复贴,共1

发一个自己编的迁都时间

只看楼主收藏回复

event = {
id = 998998
random = no
trigger = { ai = no }
name = "迁都"
desc = "帝国的领土扩张了,旧的首都已经不能满足统治,是时候迁都了。"
style = 0
persistent = yes
action_a = {
name = "迁都南美马拉开波"
command = { type = dissent value = -5 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 804 }
}
action_b = {
name = "迁都洛杉矶"
command = { type = dissent value = -5 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 762 }
}
action_c = {
name = "迁都非洲临时首都"
command = { type = dissent value = -5 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 958 }
}
action_d = {
name = "下一页"
command = { type = trigger which = 999999 }
}
}
event = {
id = 999999
random = no
#trigger by 998998
name = "迁都"
desc = "帝国的领土扩张了,旧的首都已经不能满足统治,是时候迁都了。"
style = 0
persistent = yes
action_a = {
name = "迁都柏林"
command = { type = dissent value = -5 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 300 }
}
action_b = {
name = "迁都莫斯科"
command = { type = dissent value = -5 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 175 }
}
action_c = {
name = "迁都北京"
command = { type = dissent value = -5 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 1025 }
}
action_d = {
name = "不迁都"
command = { }
}
}


IP属地:河北1楼2017-04-19 21:00回复
    两个连续的事件,下一页选项引发第二个事件,用来增加地点选项用。因为一个事件最多只能由四个选项吧,反正我做5个选项事件不成立。实验了多次,一次游戏只能使用一回,想再次迁都需要保存游戏再进档才行。不知道需要改动那个代码才能实现一档多次使用。不过也没多大的影响,毕竟迁都不是频繁事件。另外迁都领土需要占领,非占领没试过。


    IP属地:河北2楼2017-04-19 21:05
    回复
      事件有发生,但是迁不了


      3楼2020-07-05 19:05
      回复