注册 | 登录

游侠NETSHOW论坛





查看: 2439|回复: 2
打印 上一主题 下一主题

[求助] 想给骑士加一个嗜血的技能修改的语句是。。 [复制链接]

帖子
272
精华
0
积分
136
金钱
531
荣誉
0
人气
0
评议
0
楼主
发表于 2009-6-24 03:25:19 |显示全部楼层
不是在那里改的~~~~~~~~~~~~~~
游戏只定义了枪蜥蜴和杖蜥蜴两个生物能再动,这是一个攻击后的判断。
要让别的生物能再动,只要添加到列表里就可以了,我试过添加弓手,结果有效,几率也可以随意设置,比如100%.......

[ 本帖最后由 sl8846 于 2009-6-24 03:27 编辑 ]

使用道具 举报

帖子
272
精华
0
积分
136
金钱
531
荣誉
0
人气
0
评议
0
沙发
发表于 2009-6-24 03:29:39 |显示全部楼层
这里:

function features_again(unit)
       
                if Attack.act_name(0)=="gorguana" or Attack.act_name(0)=="gorguana2" and not Attack.act_pawn(unit) then
            local rnd = Game.CurLocRand(1,100)
            if rnd<=50 then
                --Attack.act_attach_modificator(0,"initiative","temp_i",100,0,0,1,true,100)
                            Attack.atom_spawn(0, 0, "effect_demonfury", Attack.angleto(0))
                            --Attack.act_aseq( 0, "happy" )       
                            
                            local speed = Attack.act_get_par(0, "speed")
                            local ap = Attack.act_ap(0)
                            
                            Attack.act_ap(0,speed)
                     
                                  Attack.act_again(0, true, false)
                                  --Attack.resort()
                                        Attack.log(0.001,"add_blog_again","name",blog_side_unit(0))
            end
                end
        return true
end

使用道具 举报

帖子
272
精华
0
积分
136
金钱
531
荣誉
0
人气
0
评议
0
板凳
发表于 2009-6-24 03:31:00 |显示全部楼层
在第二行适当的位置加上一句:
or Attack.act_name(0)=="生物名字",就能让指定的兵种拥有这个能力了。

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-22 06:39 , Processed in 0.342090 second(s), 11 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到