Jump to content
主视角中国

LIU88叔叔来有个IDEA


RobinHood

Recommended Posts

MOHaa内只有德军和盟军可以对战,

就是说只能是盟军一个(其它都是德军)或德军一个(其它都是盟军)的状况下才可实现..

当那一个人DEAD时决定胜负(OBJ类型3或4)

问题:

1.无法TEST,只有俺一人

2.在OBJ类型3或4中,恐怕老是那一个人为一方

原理:

做一记数器,当一方人数为1时,其它的人自动加入对方

有空搞一搞....

Link to comment
Share on other sites

俺是没时间TEST

这是记数器

thread body_counter 
end

//*****************

body_counter:

while(1)
{
level.allies = 0
level.axis = 0
for(local.i=1;local.i<=$player.size;local.i++)
{
if($player[local.i].dmteam=="allies")
{
level.allies++
}
else if($player[local.i].dmteam=="axis")
{
level.axis++
}
}
iprintln ("Axis: " + (level.axis))
iprintln ("Allied: " + (level.allies))
wait 5
}
end[/code]

有兴趣TEST一下....这是步骤1的TEST....

Link to comment
Share on other sites

$player[local.i] stufftext ("join_team allies")  //自动加入盟军
$player[local.i] stufftext ("join_team axis") //自动加入德军
//------------------------------------------------------------
当计数器盟军人数=2时,人物自动加入德军,
if($player[local.i].dmteam == "allies")
{
if (level.allies == 2)
{
$player[local.i] stufftext ("join_team axis")
}
}[/code]

这是俺的初步的想法......

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

访客
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 创建新的...