找回密码
 点一下
楼主: 那方星空

[已解决]这些都是程海的技能,因为我不懂JASS,所以不知道哪个函数对应哪个技能,

[复制链接]
 楼主| 发表于 2008-7-21 17:48:20 | 显示全部楼层
CycloneCasting:
function Trig_CycloneCasting_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A017' ) ) then
        return false
    endif
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Hblm' ) ) then
        return false
    endif
    return true
endfunction

function Trig_CycloneCasting_Actions takes nothing returns nothing
    set udg_Cyclone = GetTriggerUnit()
    call UnitAddAbilityBJ( 'A018', udg_Cyclone )
    call SetUnitMoveSpeed( udg_Cyclone, ( GetUnitMoveSpeed(udg_Cyclone) + 400.00 ) )
    call AddSpecialEffectTargetUnitBJ( "overhead", udg_Cyclone, "Abilities\\\\Spells\\\\Undead\\\\UnholyFrenzy\\\\UnholyFrenzyTarget.mdl" )
    set udg_CycloneEffect = GetLastCreatedEffectBJ()
endfunction

//===========================================================================
function InitTrig_CycloneCasting takes nothing returns nothing
    set gg_trg_CycloneCasting = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_CycloneCasting, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_CycloneCasting, Condition( function Trig_CycloneCasting_Conditions ) )
    call TriggerAddAction( gg_trg_CycloneCasting, function Trig_CycloneCasting_Actions )
endfunction
回复

使用道具 举报

 楼主| 发表于 2008-7-21 17:48:57 | 显示全部楼层
CycloneEnd:
function Trig_CycloneEnd_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n001' ) ) then
        return false
    endif
    return true
endfunction

function Trig_CycloneEnd_Actions takes nothing returns nothing
    call UnitRemoveAbilityBJ( 'A018', udg_Cyclone )
    call DestroyEffectBJ( udg_CycloneEffect )
    call SetUnitMoveSpeed( udg_Cyclone, GetUnitDefaultMoveSpeed(GetTriggerUnit()) )
    call TriggerSleepAction( 5.00 )
    call SetUnitMoveSpeed( udg_Cyclone, GetUnitDefaultMoveSpeed(udg_Cyclone) )
    set udg_Cyclone = null
endfunction

//===========================================================================
function InitTrig_CycloneEnd takes nothing returns nothing
    set gg_trg_CycloneEnd = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_CycloneEnd, EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_CycloneEnd, Condition( function Trig_CycloneEnd_Conditions ) )
    call TriggerAddAction( gg_trg_CycloneEnd, function Trig_CycloneEnd_Actions )
endfunction
回复

使用道具 举报

 楼主| 发表于 2008-7-21 17:49:29 | 显示全部楼层
ElementFlutter:
function Trig_ElementFlutter_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A00C' ) ) then
        return false
    endif
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ulic' ) ) then
        return false
    endif
    return true
endfunction

function Trig_ElementFlutter_Actions takes nothing returns nothing
    call UnitAddAbilityBJ( 'A00R', GetTriggerUnit() )
endfunction

//===========================================================================
function InitTrig_ElementFlutter takes nothing returns nothing
    set gg_trg_ElementFlutter = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_ElementFlutter, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_ElementFlutter, Condition( function Trig_ElementFlutter_Conditions ) )
    call TriggerAddAction( gg_trg_ElementFlutter, function Trig_ElementFlutter_Actions )
endfunction
回复

使用道具 举报

 楼主| 发表于 2008-7-21 17:50:03 | 显示全部楼层
ElementFlutterEnd:
function Trig_ElementFlutterEnd_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A00C' ) ) then
        return false
    endif
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ulic' ) ) then
        return false
    endif
    return true
endfunction

function Trig_ElementFlutterEnd_Actions takes nothing returns nothing
    call UnitRemoveAbilityBJ( 'A00R', GetTriggerUnit() )
endfunction

//===========================================================================
function InitTrig_ElementFlutterEnd takes nothing returns nothing
    set gg_trg_ElementFlutterEnd = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_ElementFlutterEnd, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_ElementFlutterEnd, EVENT_PLAYER_UNIT_SPELL_FINISH )
    call TriggerAddCondition( gg_trg_ElementFlutterEnd, Condition( function Trig_ElementFlutterEnd_Conditions ) )
    call TriggerAddAction( gg_trg_ElementFlutterEnd, function Trig_ElementFlutterEnd_Actions )
endfunction
回复

使用道具 举报

 楼主| 发表于 2008-7-21 17:52:38 | 显示全部楼层
都在这个里面

澄海.w3x

423 KB, 下载次数: 12

程海未加密

回复

使用道具 举报

发表于 2008-7-21 17:56:44 | 显示全部楼层
很麻烦的图……我记得有成海的无J版
可以搜索论坛试试
回复

使用道具 举报

 楼主| 发表于 2008-7-21 17:58:15 | 显示全部楼层
哦,谢谢,我去看看
回复

使用道具 举报

发表于 2008-7-30 05:42:30 | 显示全部楼层
甘愿当基层,不过这种东西没什么必要,毕竟有纯T的CH技能!
回复

使用道具 举报

 楼主| 发表于 2008-7-30 18:00:01 | 显示全部楼层
这帖子竟然没沉下去
不好意思,第一次来这发帖,发的就是废物。影响大家心情了,本人在这里说声对不起
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-9 05:45 , Processed in 0.064554 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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