|
发表于 2011-4-20 09:57:54
|
显示全部楼层
可以达到
function HiddenMultiboard takes player p returns nothing
local multiboard m = CreateMultiboard()
if p != null then
if GetLocalPlayer() == p then
call MultiboardDisplay(m, true)
endif
else
call MultiboardDisplay(m, true)
endif
call DestroyMultiboard(m)
set m = null
endfunction
function SetPlayerToTeam takes player p1,player p2 returns nothing
call SetPlayerAlliance( p1, p2, ALLIANCE_PASSIVE, true )//被动结盟
call SetPlayerAlliance( p1, p2, ALLIANCE_SHARED_VISION, true)//共享视野
call SetPlayerAlliance( p1, p2, ALLIANCE_HELP_REQUEST, true)//联盟帮助要求
call SetPlayerAlliance( p1, p2, ALLIANCE_HELP_RESPONSE, true)//联盟帮助响应
call SetPlayerAlliance( p1, p2, ALLIANCE_SHARED_XP, true)//联盟共享优先权
call SetPlayerAlliance( p1, p2, ALLIANCE_SHARED_SPELLS, true)//联盟共享魔法
call SetPlayerAlliance( p1, p2, ALLIANCE_SHARED_ADVANCED_CONTROL, true )//共享单位(看到英雄头像)
call SetPlayerAlliance( p2, p1, ALLIANCE_PASSIVE, true )//被动结盟
call SetPlayerAlliance( p2, p1, ALLIANCE_SHARED_VISION, true)//共享视野
call SetPlayerAlliance( p2, p1, ALLIANCE_HELP_REQUEST, true)//联盟帮助要求
call SetPlayerAlliance( p2, p1, ALLIANCE_HELP_RESPONSE, true)//联盟帮助响应
call SetPlayerAlliance( p2, p1, ALLIANCE_SHARED_XP, true)//联盟共享优先权
call SetPlayerAlliance( p2, p1, ALLIANCE_SHARED_SPELLS, true)//联盟共享魔法
call SetPlayerAlliance( p2, p1, ALLIANCE_SHARED_ADVANCED_CONTROL, true )//共享单位(看到英雄头像)
call HiddenMultiboard(p1)
call HiddenMultiboard(p2)
endfunction |
|