无忧谷主幻 发表于 2014-10-13 23:18 该角色加入的时候,变量随机数。每个技能设定一个分歧
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) endend
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