|
发表于 2011-12-18 20:53:11
|
显示全部楼层
最后建一张空地图,把玩家的联盟状态按自己的意愿摆好 比如5v5 6v6
导出地图脚本,会包含下面这段
function InitCustomTeams takes nothing returns nothing
// Force: 队伍 1
call SetPlayerTeam( Player(0), 0 )
call SetPlayerState( Player(0), PLAYER_STATE_ALLIED_VICTORY, 1 )
……
call SetPlayerTeam( Player(4), 0 )
call SetPlayerState( Player(4), PLAYER_STATE_ALLIED_VICTORY, 1 )
// Allied
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
……
……
……
call SetPlayerAllianceStateAllyBJ( Player(9), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(9), Player(8), true )
// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(5), Player(6), true )
……
……
call SetPlayerAllianceStateVisionBJ( Player(9), Player(8), true )
endfunction |
|