CreateVsEnemy
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>battle</title>
</head>
<body>
<p><font color="#0000FF">int</font><font color="#FF8C00"> </font>
<font color="#00FF00"> battle</font>.<font color="#FF8C00">CreateVsEnemy</font>(<font color="darkgreen">int
</font>玩家索引, <font color="blue">int</font> 自己引索, <font color="blue">int</font>
战半宠物数组[10])</p>
<p><strong>函数功能:</strong></p>
<p><font color="#008000">创建一场战斗</font></p>
<p><strong>参数说明:</strong></p>
<table border="1" width="37%" id="table1">
<tr>
<td width="151">玩家索引 </td>
<td>[字符型]</td>
<td width="304">玩家的索引号</td>
</tr>
<tr>
<td width="151">自己引索</td>
<td>[整型]</td>
<td width="304">通常用于NPC的索引号,指与NPC挑战</td>
</tr>
<tr>
<td height="25" width="151">战半宠物数组</td>
<td height="25">[整型数组]</td>
<td height="25" width="304">用于设置战半始初化战半的宠物ID</td>
</tr>
</table>
<p><strong>返回值:</strong></p>
<p>返回一个战斗索引</p>
<p><strong>使用例子:</strong></p>
<p><font color="darkgreen">--战斗宠物数组,设置战斗的宠物ID,最大10只</font><br>
<font color="#333333">enemytable = {<font color="red">371</font>,
<font color="red">372</font>, <font color="red">373</font>, <font color="red">
374</font>, <font color="red">375</font>, <font color="red">376</font>,
<font color="red">377</font>, <font color="red">378</font>, <font color="red">
379</font>, <font color="red">380</font> }<br>
</font> <font color="darkgreen">--建立一场战斗(玩家索引,自己引索,战斗宠物数组)</font><br>
battleindex = <font color="#00FF00">battle</font>.<font color="#FF8C00">CreateVsEnemy</font>(toindex, meindex,
enemytable)<br>
</p>
</body>
</html>