$x1 = $game_variables[1]
$x2 = $game_variables[2]
$y1 = $game_variables[3]
$y2 = $game_variables[4]
for ev in $game_map.events.values
if ev.x > $x1 and eve.x < $x2
if ev.x > $y1 and eve.x < $y2
#事件自己写,随机移动
end
令用一个脚本〔脚本格子不够〕
$x1 = $game_variables[1]
$x2 = $game_variables[2]
$y1 = $game_variables[3]
$y2 = $game_variables[4]
for ev in $game_map.events.values
if ev.x == $x1 and eve.x == $x2
if ev.x == $y1 and eve.x == $y2
#事件自己写,后退一步
end
end
end作者: 玛尔斯 时间: 2010-8-25 12:24
假如区域是圆的呢。。。。作者: fux2 时间: 2010-8-25 12:27 回复 玛尔斯 的帖子