求助:自制的事件不知道哪里有问题 写好之后一读档就跳出游戏。
钢铁雄心吧
全部回复
仅看楼主
level 13
长水校尉 楼主
#########################################################################
# To improve the quality of
#########################################################################
event = {
id = 996996
random = no
country = CHI
date = { day = 1 month = october year = 1937 }
offset = 15
deathdate = { day = 30 month = september year = 1963 }
name = "中国龙的觉醒"
desc = "名族生死存亡的最后关头 "
style = 0
picture = "15th_army"
action_a = {
name = "名族振兴 "
command = { type = speed which = infantry value = 1 }
//步兵最大移动速度+1,
command = { type = morale which = infantry value = 20 }  //步兵士气+20
command = { type = task_efficiency which = attack value = 0.01 }
//所有部队进攻效率+0.01
command = { type = task_efficiency which = support_attack value = 0.05 }
//所有部队协同进攻效率+0.05
command = { type = encirclement value = 3 }//战术包围几率+3
command = { type = ambush value = 3 } //战术伏击几率+3
command = { type = delay value = 3 } //战术阻击几率+3
command = { type = tactical_withdrawal value = 3 }  //战术撤退几率+3
command = { type = counterattack value = 3 }//战术反击几率+3
command = { type = assault value = 3 } //战术强攻几率+3
command = { type = breakthrough value = 3 }//战术突破几率+3
command = { type = night_attack which = infantry value = 8 }//步兵夜间进攻效率+8
command = { type = research_mod value = 50 }//研究效率+50
command = { type = hq_supply_eff value = 4 }//指挥部补给效率+4
command = { type = sce_frequency value = 4 }//战术发动+4
command = { type = desert_attack/desert_defense/mountain_attack/mountain_defense/hill_attack/hill_defense/forest_attack/forest_defense/swamp_attack/swamp_defense/urban_attack/urban_defense/river_attack/shore_attack/paradrop_attack
which = division type/brigade type value = 40% }//陆军单位在各种地形的作战修正+40%
command = { type = frozen_attack/frozen_defense/snow_attack/snow_defense/blizzard_attack/blizzard_defense/rain_attack/rain_defense/storm_attack/storm_defense/muddy_attack/muddy_defense
which = division type/brigade type value = 40% }//陆军单位在各种天气下的作战效率+40%
}
}
2014年03月30日 10点03分 1
level 13
长水校尉 楼主
2014年03月30日 10点03分 2
level 13
长水校尉 楼主
2014年03月30日 10点03分 3
level 13
长水校尉 楼主
2014年03月30日 10点03分 4
level 13
长水校尉 楼主
2014年03月30日 10点03分 5
level 13
把//改成#
2014年03月30日 10点03分 6
我试试
2014年03月30日 10点03分
还是在读档跳出终止 忽略 重试的对话框
2014年03月30日 10点03分
回复 liutao63988 :用/隔开的是单独的不能放在一条里
2014年03月30日 10点03分
回复 丑的吓坏联合国 :把//换成
#。然后从#
前按回车从新提一行。对吗
2014年03月30日 10点03分
level 13
长水校尉 楼主
没人帮忙吗?在线等
2014年03月30日 10点03分 7
level 13
长水校尉 楼主
[怒]弄半天换个跳出的结果。
2014年03月30日 10点03分 8
level 13
长水校尉 楼主
#########################################################################
# To improve the quality of
#########################################################################
event = {
id = 99999
random = no
country = CHI
date = { day = 1 month = october year = 1937 }
offset = 15
deathdate = { day = 30 month = september year = 1963 }
name = "中国龙的觉醒"
desc = "名族生死存亡的最后关头 "
style = 0
picture = "15th_army"
action_a = {
name = "名族振兴 "
command = { type = speed which = infantry value = 1 }
#步兵最大移动速度+1,
command = { type = morale which = infantry value = 20 }
#步兵士气+20
command = { type = task_efficiency which = attack value = 0.01 }
#所有部队进攻效率+0.01
command = { type = task_efficiency which = support_attack value = 0.05 }
#所有部队协同进攻效率+0.05
command = { type = encirclement value = 3 }
#战术包围几率+3
command = { type = ambush value = 3 }
#战术伏击几率+3
command = { type = delay value = 3 }
#战术阻击几率+3
command = { type = tactical_withdrawal value = 3 }
#战术撤退几率+3
command = { type = counterattack value = 3 }
#战术反击几率+3
command = { type = assault value = 3 }
#战术强攻几率+3
command = { type = breakthrough value = 3 }
#战术突破几率+3
command = { type = night_attack which = infantry value = 8 }
#步兵夜间进攻效率+8
command = { type = research_mod value = 50% }
#研究效率+50%
command = { type = hq_supply_eff value = 4 }
#指挥部补给效率+4
command = { type = sce_frequency value = 4 }
#战术发动+4
}
}
2014年03月30日 11点03分 9
爪机压力略大 目测没事了吧。。。
2014年03月30日 11点03分
回复 丑的吓坏联合国 :看看下面这个。还是不行。
2014年03月30日 11点03分
回复 丑的吓坏联合国 :下面还有两行,没照完结尾的括号有
2014年03月30日 11点03分
level 13
长水校尉 楼主
2014年03月30日 11点03分 10
level 13
长水校尉 楼主
求助啊!
2014年03月30日 11点03分 11
level 12
一个是//改#
另外
command = { type = desert_attack/desert_defense/mountain_attack/mountain_defense/hill_attack/hill_defense/forest_attack/forest_defense/swamp_attack/swamp_defense/urban_attack/urban_defense/river_attack/shore_attack/paradrop_attack
which = division type/brigade type value = 40% }//陆军单位在各种地形的作战修正+40%
command = { type = frozen_attack/frozen_defense/snow_attack/snow_defense/blizzard_attack/blizzard_defense/rain_attack/rain_defense/storm_attack/storm_defense/muddy_attack/muddy_defense
which = division type/brigade type value = 40% }//陆军单位在各种天气下的作战效率+40%
明显要一条一条分开来写的。。。
2014年03月30日 23点03分 13
level 12
汇编太多很容易出错的。。。
2014年03月31日 02点03分 14
level 7
#号倒是不需要另外换行,放在一行的最后就行。
你这两句:
command = { type = desert_attack/desert_defense/mountain_attack/mountain_defense/hill_attack/hill_defense/forest_attack/forest_defense/swamp_attack/swamp_defense/urban_attack/urban_defense/river_attack/shore_attack/paradrop_attack
which = division type/brigade type value = 40% }
是真这样写了还是拆开了?
而且which = division type/brigade,指的是兵种或附加旅的名称,比如which=infantry (等号旁边有没有空格都行)
正确的是:command = { type = desert_attack which = infantry value = 40% }
其他的desert_defense,mountain_attack,你都必须重新写一句。如果你要给多个兵种都加多类状态,要写多X多句=很多句。
2014年04月01日 19点04分 16
谢谢。晚上上游戏试试。
2014年04月02日 01点04分
回复 liutao63988 :不好意思,加了个百分号。command = { type = desert_attack which = infantry value = 40 }
2014年04月02日 08点04分
level 12
还有、研究效率你加符号干嘛?直接写数字50就好
2014年04月02日 02点04分 17
1