x,y = 3,3#范围
for m in 0..x
for n in 0..y
a=$game_map.check_event(m,n)
EX,EY = !a.nil? && (a.x,a.y)
end
end
自己玩吧,很多事件就改push进array吧
改了下大写处自己定义作者: chd114 时间: 2012-6-22 16:59
end55rpg 发表于 2012-6-22 16:58
x,y = 3,3#范围
for m in 0...x
for n in 0...y
m和n是什么?作者: chd114 时间: 2012-6-22 17:05
end55rpg 发表于 2012-6-22 16:58
x,y = 3,3#范围
for m in 0...x
for n in 0...y
又出错了···作者: chd114 时间: 2012-6-22 17:14
end55rpg 发表于 2012-6-22 16:58
x,y = 3,3#范围
for m in 0...x
for n in 0...y