Project1
标题:
请教这句脚本放在事件的脚本框里怎么换行
[打印本页]
作者:
typhon_524
时间:
2009-11-16 16:15
标题:
请教这句脚本放在事件的脚本框里怎么换行
有一句比较长,该怎么换行?
for i in 1..10
if $game_map.terrain_tag($game_player.x, $game_player.y)==$game_map.terrain_tag($game_map.events[i].x, $game_map.events[i].y)
p "同一地形"
end
end
复制代码
作者:
夏季冰川
时间:
2009-11-16 16:42
用个笨办法,不知道行不行:
v1=$game_player.x
v2=$game_player.y
for i in 1..10
v3=$game_map.events[i].x
v4=$game_map.events[i].y
v5=$game_map.terrain_tag(v1,v2)
v6=$game_map.terrain_tag(v3,v4)
if v5==v6
p "同一地形"
end
end
复制代码
作者:
上帝的眼睛
时间:
2009-11-16 22:50
class Interpreter
def godseyes
for i in 1..10
if $game_map.terrain_tag($game_player.x, $game_player.y)==$game_map.terrain_tag($game_map.events[i].x, $game_map.events[i].y)
p "同一地形"
end
end
end
end
复制代码
放在脚本编辑器的最后
调用时输入godseyes即可
作者:
紫苏
时间:
2009-11-17 00:20
for i in 1..10
if $game_map.terrain_tag($game_player.x,
$game_player.y) ==
$game_map.terrain_tag(
$game_map.events[i].x,
$game_map.events[i].y)
p "同一地形"
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1