cross456 发表于 2016-9-16 15:02

如何给装备添加加全族士气和主动性的的代码

有没有大神知道如何给装备添加加全族士气和主动性的的代码?下面是靴子的item代码,请问怎么添加加全族士气?
boots {
category=o
image=heroitem_boots_03.png
hint_config=object_item
label=itm_boots_name
hint=itm_boots_hint
information_label=itm_boots_info
maphint=
mapinfo=
atoms {
    1 {
      atom=
      lu=template_item_mb
      label=
    }
}
price=3000
maxcount=2
level=1
race=neutral
use {}
mods {
    defense=count,50
    attack=count,50
    intellect=count,50
}
propbits=boots
params {}
}


ak00129 发表于 2016-9-16 20:10

找个带这个属性的拷贝过去就是了,在MOD和USE中间加1段Fight
比如这个
fight {
    {
      filter {
      race=human,dark_human(代表人类,黑暗人类,貌似不可以不写)
      belligerent=ally(代表友方,貌似不可以不写,有灵一个词代表敌方)
      }
      pbonus=moral,3,0,0,-100,0,0(这是士气)
      dbonus=(这里是伤害,格式是类型,点数,百分比,0,-100,0,0,)
      rbonus=(这里是抗性,格式是类型,点数,百分比,0,-100,0,0,)
      attack_on=
      attack_off=
    }
}
把我括号里的去掉,丢到ues和mod的中间即可

ak00129 发表于 2016-9-16 20:13

我觉得你该那么辛苦,不若直接改hero.txt,反正都是作弊,改100万领导,再改100万初始兵种,比如邪书拉,凤凰拉,我没改过,目测要突破天际,

cross456 发表于 2016-9-18 13:59

ak00129 发表于 2016-9-16 20:10
找个带这个属性的拷贝过去就是了,在MOD和USE中间加1段Fight
比如这个
fight {


谢谢了~我去试试
页: [1]
查看完整版本: 如何给装备添加加全族士气和主动性的的代码