|
本帖最后由 ivansz 于 2012-6-26 11:05 编辑
首先了解一下萧峰的攻击是必暴的,他的那个红色文字都是暴击文字
苍炎的在CY_Fight.lua里 龙人的在LDCR.lua里
搜索CC.WARS24 找到一段代码
- if WAR.BJ == 1 then
- WAR.Person[id][CC.TXDH] = 89 --暴击特效动画
- if pid == 50 or pid==0 then --ivan: 猪脚同乔峰
- local r = nil
- r = math.random(3)
- if r == 1 then
- WAR.Person[id][CC.TXWZ1] = CC.WARS24 --教单于折箭 六军辟易 奋英雄怒
- elseif r == 2 then
- WAR.Person[id][CC.TXWZ1] = CC.WARS25 --虽万千人吾往矣
- elseif r == 3 then
- WAR.Person[id][CC.TXWZ1] = CC.WARS26 --胡汉恩仇 须倾英雄泪
- end
复制代码
把我注释的那一行改了就可以了
if pid == 50 then 改成
if pid == 50 or pid==0 then
如果需要猪脚暴击文字自定义就要另外写一个if语句,例如:
- if WAR.BJ == 1 then
- WAR.Person[id][CC.TXDH] = 89 --暴击特效动画
- if pid == 0 then
- local r = nil
- r = math.random(4)
- if r == 1 then
- WAR.Person[id][CC.TXWZ1] = "三十功名尘与土"
- elseif r == 2 then
- WAR.Person[id][CC.TXWZ1] = "八千里路云和月"
- elseif r == 3 then
- WAR.Person[id][CC.TXWZ1] = "壮志饥餐胡虏肉"
- elseif r == 4 then
- WAR.Person[id][CC.TXWZ1] = "笑谈渴饮匈奴血"
- end
- end
- if pid == 50 then --后面省略
复制代码 |
|