for actor in $game_party.actors
if actor.state?(20)
# 学会40号特技
actor.learn_skill(40)
actor.remove_state(20, true)
end
end
如果想要批处理的话就是这样 可以N个物品调用同一个公共事件
for i in 40..50
for actor in $game_party.actors
if actor.state?(i)
actor.learn_skill(i)
actor.remove_state(i,true)
end
end
end