以下引用分子轨道理论于2008-9-24 21:58:54的发言:
if $game_actors != nil then
$game_actors.recover_all
end
以下引用wy29于2008-9-24 23:35:41的发言:
问题八成是$game_actors = nil未定义,
或者
i > $game_actors.size index超出最大值。
以下引用浩气青天于2008-9-24 22:04:34的发言:
是不是脚本设置得战斗结束后自动恢复,但是现在却不给回复了,是吗?
以下引用wy29于2008-9-25 3:39:52的发言:
<br><script language="javascript">
<!--
strCont="“if $game_actors != nil then\r\n$game_actors.recover_all\r\nend”\r\n\r\n这招只是躲避问题,跳过一个recover_all,后面如果再用$game_actors,就会继续出错。\r\n\r\n解决问题应该确保$game_actors定义了。";
document.write(ubb.spbShowTopic(strCont,1));
//-->
</script>“if $game_actors != nil <font color="#000099">then</font><br>
$game_actors.recover_all<br>
end”<br>
<br>
这招只是躲避问题,跳过一个recover_all,后面如果再用$game_actors,就会继续出错。<br>
<br>
解决问题应该确保$game_actors定义了。
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |