|
我是个超级改图菜鸟!
5人玩的地图准备改成6个人玩!结果出问题了!特到这里来淘金啊!!
势力1的玩家数量成功修改了!但是势力2的玩家数量(就是电脑)减少了!
原来势力1是5人,势力2是两个,把势力1改为6人以后,势力2的电脑就只有一个了!
把势力1的人数改到7人后,势力2干脆就不见了!TNND
我把J的字段发下面!
function InitCustomPlayerSlots takes nothing returns nothing
call SetPlayerStartLocation( Player(0), 0 )
call ForcePlayerStartLocation( Player(0), 0 )
call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(0), false )
call SetPlayerController( Player(0), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(1), 1 )
call ForcePlayerStartLocation( Player(1), 1 )
call SetPlayerColor( Player(1), ConvertPlayerColor(1) )
call SetPlayerRacePreference( Player(1), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(1), false )
call SetPlayerController( Player(1), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(2), 2 )
call ForcePlayerStartLocation( Player(2), 2 )
call SetPlayerColor( Player(2), ConvertPlayerColor(2) )
call SetPlayerRacePreference( Player(2), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(2), false )
call SetPlayerController( Player(2), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(3), 3 )
call ForcePlayerStartLocation( Player(3), 3 )
call SetPlayerColor( Player(3), ConvertPlayerColor(3) )
call SetPlayerRacePreference( Player(3), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(3), false )
call SetPlayerController( Player(3), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(4), 4 )
call ForcePlayerStartLocation( Player(4), 4 )
call SetPlayerColor( Player(4), ConvertPlayerColor(4) )
call SetPlayerRacePreference( Player(4), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(4), false )
call SetPlayerController( Player(4), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(5), 5 )
call ForcePlayerStartLocation( Player(5), 5 )
call SetPlayerColor( Player(5), ConvertPlayerColor(5) )
call SetPlayerRacePreference( Player(5), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(5), false )
call SetPlayerController( Player(5), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(6), 6 )
call ForcePlayerStartLocation( Player(6), 6 )
call SetPlayerColor( Player(6), ConvertPlayerColor(6) )
call SetPlayerRacePreference( Player(6), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(6), false )
call SetPlayerController( Player(6), MAP_CONTROL_COMPUTER )
call SetPlayerStartLocation( Player(7), 7 )
call ForcePlayerStartLocation( Player(7), 7 )
call SetPlayerColor( Player(7), ConvertPlayerColor(7) )
call SetPlayerRacePreference( Player(7), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(7), false )
call SetPlayerController( Player(7), MAP_CONTROL_USER )
call SetPlayerStartLocation( Player(10), 8 )
call ForcePlayerStartLocation( Player(10), 8 )
call SetPlayerColor( Player(10), ConvertPlayerColor(10) )
call SetPlayerRacePreference( Player(10), RACE_PREF_ORC )
call SetPlayerRaceSelectable( Player(10), false )
call SetPlayerController( Player(10), MAP_CONTROL_COMPUTER )
call SetPlayerStartLocation( Player(11), 9 )
call ForcePlayerStartLocation( Player(11), 9 )
call SetPlayerColor( Player(11), ConvertPlayerColor(11) )
call SetPlayerRacePreference( Player(11), RACE_PREF_ORC )
call SetPlayerRaceSelectable( Player(11), false )
call SetPlayerController( Player(11), MAP_CONTROL_COMPUTER )
endfunction
function InitCustomTeams takes nothing returns nothing
call SetPlayerTeam( Player(0), 0 )
call SetPlayerState( Player(0), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(1), 0 )
call SetPlayerState( Player(1), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(2), 0 )
call SetPlayerState( Player(2), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(3), 0 )
call SetPlayerState( Player(3), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(4), 0 )
call SetPlayerState( Player(4), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(5), 0 )
call SetPlayerState( Player(5), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(6), 0 )
call SetPlayerState( Player(6), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(7), 0 )
call SetPlayerState( Player(7), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(6), true )
call SetPlayerTeam( Player(10), 1 )
call SetPlayerState( Player(10), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerTeam( Player(11), 1 )
call SetPlayerState( Player(11), PLAYER_STATE_ALLIED_VICTORY, 1 )
call SetPlayerAllianceStateAllyBJ( Player(10), Player(11), true )
call SetPlayerAllianceStateAllyBJ( Player(11), Player(10), true )
call SetPlayerAllianceStateVisionBJ( Player(10), Player(11), true )
call SetPlayerAllianceStateVisionBJ( Player(11), Player(10), true ) |
|