|
楼主 |
发表于 2009-8-28 14:13:02
|
显示全部楼层
猪头兄那段代码不能直接拿来用吧?
我在触发器里对共享进行了设置, 然后把该触发转成文本的. 并用另一条触发运行他. 还是没效果...
是不是这样还是算触发器而不是R大所说的 J 呢?
该文本内容如下.
function Trig_xxx_Actions takes nothing returns nothing
call SetPlayerAllianceBJ( Player(0), ALLIANCE_SHARED_CONTROL, false, Player(0) )
call SetPlayerAllianceBJ( Player(0), ALLIANCE_SHARED_ADVANCED_CONTROL, false, Player(0) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_SHARED_CONTROL, true, Player(0) )
call SetPlayerAllianceBJ( Player(1), ALLIANCE_SHARED_ADVANCED_CONTROL, true, Player(0) )
endfunction
//===========================================================================
function InitTrig_xxx takes nothing returns nothing
set gg_trg_xxx = CreateTrigger( )
call TriggerAddAction( gg_trg_xxx, function Trig_xxx_Actions )
endfunction |
|