本帖最后由 RyanBern 于 2014-10-31 09:21 编辑
写错重写...
for i in 0...$game_actors.size if $game_actors[i].id > 20 # i号角色 r = rand(5) #0,1,2,3,4 s = [12,22,35,46,0] #skills skill = s[r] $game_actors[i].learn_skill(skill) end end
for i in 0...$game_actors.size
if $game_actors[i].id > 20 # i号角色
r = rand(5) #0,1,2,3,4
s = [12,22,35,46,0] #skills
skill = s[r]
$game_actors[i].learn_skill(skill)
end
end
|