找回密码
 点一下
查看: 1332|回复: 1

jass_加个等待会不会有问题呢?

[复制链接]
发表于 2008-11-18 00:05:32 | 显示全部楼层 |阅读模式
[codes=jass]function Trig_AOmi_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'AOmi'
endfunction

function Trig_AOmi_Func003A takes nothing returns nothing
    local unit u = GetTriggerUnit()
    local unit ua
    if (not(GetUnitTypeId(GetFilterUnit()) != GetUnitTypeId(u))) then
        set ua = CreateUnit(GetOwningPlayer(u),'n00E',GetUnitX(u),GetUnitY(u),0.00)
        call UnitApplyTimedLife(ua,'BHwe',1)
        call ShowUnit(ua,false)
        call IssueTargetOrderById(ua,852274,GetFilterUnit())
    endif
    set u = null
    set ua = null
endfunction

function Trig_AOmi_Actions takes nothing returns nothing
    local unit u = GetTriggerUnit()
    call TriggerSleepAction(2.00)
    call GroupEnumUnitsInRange(udg_TempGroup,GetUnitX(u),GetUnitY(u),1500,Condition(function Trig_AOmi_Func003A))
    set u = null
endfunction

//===========================================================================
function InitTrig_AOmi takes nothing returns nothing
    set gg_trg_AOmi = CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ(gg_trg_AOmi,EVENT_PLAYER_UNIT_SPELL_EFFECT)
    call TriggerAddCondition(gg_trg_AOmi,Condition(function Trig_AOmi_Conditions))
    call TriggerAddAction(gg_trg_AOmi,function Trig_AOmi_Actions)
endfunction[/codes]这是模仿CH剑圣的分身,用技能时没发现什么问题.不过不知道用call TriggerSleepAction(2.00)会不会有问题呢?
发表于 2008-11-18 00:09:10 | 显示全部楼层
为什么会出现问题?除了等待时间不精确外,没有什么大问题
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-21 10:30 , Processed in 0.136052 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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