找回密码
 点一下
查看: 6095|回复: 19

[技能演示]八卦破魔阵

  [复制链接]
发表于 2007-3-3 13:50:53 | 显示全部楼层 |阅读模式
不详细介绍了
Purrint003.jpg

BGPM.w3x

16 KB, 下载次数: 587

评分

参与人数 1威望 +20 收起 理由
everguo + 20

查看全部评分

发表于 2007-3-3 13:54:17 | 显示全部楼层
路过,收藏
回复

使用道具 举报

发表于 2007-3-3 14:04:00 | 显示全部楼层
貌似是一个华丽的技能,会不会卡呢(下来收藏)
回复

使用道具 举报

发表于 2007-3-3 15:34:31 | 显示全部楼层
好技能
回复

使用道具 举报

发表于 2007-3-3 21:13:45 | 显示全部楼层
很久没遇到写轮眼拷贝不出来的技能了  乍一看我还以为是加了太极模型进去呢

精华一下  置顶一周

我把代码贴出来好了

[jass]
function Trig_xtj_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_xtj_Actions takes nothing returns nothing
    local location a = GetUnitLoc(GetTriggerUnit())
    local real cx = GetLocationX(a)
    local real cy = GetLocationY(a)
    local real y = 500
    local integer a = 0
loop
    exitwhen y<=350
    set y = y-5
    set a = a+1
    call AddLightningLoc( "MBUR", Location(-SquareRoot(250000.00-y*y)+cx, y+cy), Location(-SquareRoot(62500.00-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50 )
    set udg_SD1[a] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(SquareRoot(250000.00-y*y)+cx, y+cy), Location(-SquareRoot(62500.00-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD1[a+30] = GetLastCreatedLightningBJ()
endloop
set a = 0
loop
    exitwhen y<=150
    set y = y-5
    set a = a+1
    call AddLightningLoc( "MBUR", Location(-SquareRoot(250000.00-y*y)+cx, y+cy), Location(-SquareRoot(62500.00-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50 )
    set udg_SD2[a] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(-SquareRoot(62500.00-(y-250)*(y-250))+cx, y+cy), Location(-SquareRoot(10000-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD2[a+40] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(SquareRoot(250000.00-y*y)+cx, y+cy), Location(SquareRoot(10000-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD2[a+80] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(-SquareRoot(10000-(y-250)*(y-250))+cx, y+cy), Location(SquareRoot(10000-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50  )
    set udg_SD2[a+120] = GetLastCreatedLightningBJ()
endloop
set a = 0
loop
    exitwhen y<=0
    set y = y-5
    set a = a+1
    call AddLightningLoc( "MBUR", Location(-SquareRoot(250000.00-y*y)+cx, y+cy), Location(-SquareRoot(62500.00-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50   )
    set udg_SD1[a+60] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(SquareRoot(250000.00-y*y)+cx, y+cy), Location(-SquareRoot(62500.00-(y-250)*(y-250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD1[a+90] = GetLastCreatedLightningBJ()
endloop
set a = 0
loop
    exitwhen y<=-150   
    set y = y-5
    set a = a+1
    call AddLightningLoc( "MBUR", Location(-SquareRoot(250000.00-y*y)+cx, y+cy), Location(SquareRoot(62500.00-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50  )
    set udg_SD3[a] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(SquareRoot(250000.00-y*y)+cx, y+cy), Location(SquareRoot(62500.00-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD3[a+30] = GetLastCreatedLightningBJ()
endloop
set a = 0
loop
    exitwhen y<=-350
    set y = y-5
    set a = a+1
    call AddLightningLoc( "MBUR", Location(SquareRoot(250000.00-y*y)+cx, y+cy), Location(SquareRoot(62500.00-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD2[a+160] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(SquareRoot(62500.00-(y+250)*(y+250))+cx, y+cy), Location(SquareRoot(10000-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50  )
    set udg_SD2[a+200] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(-SquareRoot(250000.00-y*y)+cx, y+cy), Location(-SquareRoot(10000-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50  )
    set udg_SD2[a+240] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(-SquareRoot(10000-(y+250)*(y+250))+cx, y+cy), Location(SquareRoot(10000-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD2[a+280] = GetLastCreatedLightningBJ()
endloop
set a = 0
loop
    exitwhen y<=-500
    set y = y-5
    set a = a+1
    call AddLightningLoc( "MBUR", Location(-SquareRoot(250000.00-y*y)+cx, y+cy), Location(SquareRoot(62500.00-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.00, 0.10, 0.90, 0.50  )
    set udg_SD3[a+60] = GetLastCreatedLightningBJ()
    call AddLightningLoc( "MBUR", Location(SquareRoot(250000.00-y*y)+cx, y+cy), Location(SquareRoot(62500.00-(y+250)*(y+250))+cx, y+cy) )     
    call SetLightningColor( GetLastCreatedLightningBJ(), 0.90, 0.10, 0.00, 0.50 )
    set udg_SD3[a+90] = GetLastCreatedLightningBJ()
endloop
call PolledWait( 30.00 )
call TriggerExecute( gg_trg_xc )
endfunction

function InitTrig_xtj takes nothing returns nothing
    set gg_trg_xtj = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_xtj, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_xtj, Condition( function Trig_xtj_Conditions ) )
    call TriggerAddAction( gg_trg_xtj, function Trig_xtj_Actions )
endfunction            
[/jass]

技能很漂亮,不过这代码有很多地方可以优化呢,比如
[jass]
    local location a = GetUnitLoc(GetTriggerUnit())
    local real cx = GetLocationX(a)
    local real cy = GetLocationY(a)
    local real y = 500
    local integer a = 0
[/jass]
这里把a赋值为点 在后面又赋值为数字  这样不是很好哦

以后继续努力吧:)~~~
回复

使用道具 举报

发表于 2007-3-5 15:08:32 | 显示全部楼层
原来是J写的,看不懂
不要了
回复

使用道具 举报

发表于 2007-3-16 17:51:07 | 显示全部楼层
留着,以后学J用
回复

使用道具 举报

发表于 2007-3-22 19:11:10 | 显示全部楼层
传说中的大油饼~
回复

使用道具 举报

发表于 2007-3-25 10:20:40 | 显示全部楼层
终于见到心目中的太极八卦的技能了!!!!收藏!!!
回复

使用道具 举报

发表于 2007-10-16 00:23:24 | 显示全部楼层
记得玩过。。记得很卡~
回复

使用道具 举报

发表于 2007-10-18 18:48:39 | 显示全部楼层
先下了再说   [s:125]
回复

使用道具 举报

发表于 2007-10-19 13:56:27 | 显示全部楼层
下啦  不下才怪
回复

使用道具 举报

发表于 2007-10-30 15:22:44 | 显示全部楼层
谢谢分享啊!~~顶你个,
看贴回帖是一种美德!
回复

使用道具 举报

发表于 2007-11-2 15:02:36 | 显示全部楼层
  [s:129]
恐怖的想象力
回复

使用道具 举报

发表于 2007-11-2 19:26:45 | 显示全部楼层
厉害。。。
回复

使用道具 举报

发表于 2007-11-4 17:25:51 | 显示全部楼层
模型没导入?那那种颜色是怎么调的.....................
回复

使用道具 举报

发表于 2007-11-18 13:19:13 | 显示全部楼层
相当OYE~收藏了~!!!比拿点算出来并创建特效的那个八卦效果好多了~!!
回复

使用道具 举报

发表于 2007-11-19 00:41:13 | 显示全部楼层
顶你了.太帅了
回复

使用道具 举报

发表于 2007-12-2 21:23:27 | 显示全部楼层
收藏下!牛B啊楼主!
回复

使用道具 举报

发表于 2007-12-3 18:57:42 | 显示全部楼层
楼主这个技能很不错呀,华丽!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-4-19 13:24 , Processed in 0.313366 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表