找回密码
 点一下
查看: 2323|回复: 8

算不算动态注册?

[复制链接]
3 GA币 回复本帖可获得 3 GA币奖励! 每人限 10 次
发表于 2014-3-15 11:36:39 | 显示全部楼层 |阅读模式
本帖最后由 蘑菇 于 2014-3-15 12:32 编辑

function c takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'AUan' ) ) then
        return false
    endif
    return true
endfunction

function d takes nothing returns nothing
    call BB()
endfunction

//===========================================================================
function InitTrig_a takes nothing returns nothing
    set b = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( b, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call AA()
//AA()只运行了一次
    call TriggerAddCondition( b, Condition( function c) )
    call TriggerAddAction( b, d )
/*如果在这里记录条件和动作只显示一次,不知在d里再次输入{。。。。}算不算动态注册
{ set ? = CreateTrigger(  )
  call TriggerRegisterAnyUnitEventBJ( ?, EVENT_PLAYER_UNIT_SPELL_EFFECT )     call TriggerAddCondition( ?, Condition( function ??) )  
  call TriggerAddAction( ?, 动作)  
  call saveTriggerCondition(??)
  call saveTriggerAction(?)}
*/
endfunction

发表于 2014-4-15 18:57:47 | 显示全部楼层

回帖奖励 +3 GA币

如果 InitTrig_a 只运行了一次, 那就不算动态了
回复

使用道具 举报

发表于 2014-5-3 19:33:09 | 显示全部楼层

回帖奖励 +3 GA币

我只是来领奖的
回复

使用道具 举报

发表于 2014-7-4 00:02:33 | 显示全部楼层

回帖奖励 +3 GA币

虽不明 但觉厉 路过1下
回复

使用道具 举报

发表于 2014-8-5 13:50:39 | 显示全部楼层

回帖奖励 +3 GA币

代码不完整啊,call BB() 然后BB部分的代码在哪里?
回复

使用道具 举报

发表于 2014-11-11 11:43:40 | 显示全部楼层

回帖奖励 +3 GA币

看不懂
回复

使用道具 举报

发表于 2017-9-13 13:10:21 | 显示全部楼层

回帖奖励 +3 GA币


虽不明 但觉厉 路过1下
回复

使用道具 举报

发表于 2017-10-24 02:58:59 | 显示全部楼层

回帖奖励 +3 GA币

写个demo试试呗  我觉得算
回复

使用道具 举报

发表于 2022-11-21 15:20:21 | 显示全部楼层

回帖奖励 +3 GA币

应该算            
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-24 00:55 , Processed in 0.294117 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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