找回密码
 点一下
查看: 1692|回复: 3

RPG图改了玩家数量出现的问题!那位高手帮忙解决一下我的疑惑!

  [复制链接]
发表于 2009-11-24 19:22:39 | 显示全部楼层 |阅读模式
我是个超级改图菜鸟!
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 )
发表于 2009-11-24 19:25:04 | 显示全部楼层
在玩家7以上的玩家就根本没出现过,也就是根本没初始化过。
根本没有玩家7以上的玩家………………

顺便说下,GA不讨论改图。
回复

使用道具 举报

 楼主| 发表于 2009-11-24 19:34:03 | 显示全部楼层
楼上的仁兄,恕在下愚钝,不懂大哥所云!能解释详细点否??
鄙人超级菜菜是也!

我看这里是 “疑难问题解答区”啊!!
我就有“疑难问题”啊!就来这里找“解答”来了!
回复

使用道具 举报

发表于 2009-11-24 19:48:55 | 显示全部楼层
GA不讨论改图,此帖锁定
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 23:46 , Processed in 0.072612 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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