加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
class Interpreter def tansuo_gb_sc #怪伴数量=探索楼层+5 $gb_sl = $game_variables[25] + 5 $gb_sl = 40 if $gb_sl>40 map = load_data(sprintf("Data/Map%03d.rxdata", 10)) temp = Marshal.load(Marshal.dump(map)) while $gb_sl > 0 gb_id = rand(temp.events.size)+1 next if gb_id == 1 x = rand($game_map.width) y = rand($game_map.height) if $game_map.passable?(x, y, 0) #从仓库图召唤探索怪伴 Dm.mts(10,gb_id,x,y) $gb_sl -= 1 end end end end
class Interpreter
def tansuo_gb_sc
#怪伴数量=探索楼层+5
$gb_sl = $game_variables[25] + 5
$gb_sl = 40 if $gb_sl>40
map = load_data(sprintf("Data/Map%03d.rxdata", 10))
temp = Marshal.load(Marshal.dump(map))
while $gb_sl > 0
gb_id = rand(temp.events.size)+1
next if gb_id == 1
x = rand($game_map.width)
y = rand($game_map.height)
if $game_map.passable?(x, y, 0)
#从仓库图召唤探索怪伴
Dm.mts(10,gb_id,x,y)
$gb_sl -= 1
end
end
end
end
|