[pre lang="ruby"] direnshuliang = 0
for target in @target_battlers
direnshuliang += 1
end
# 对像方动画
for target in @target_battlers
#如果 “对象方的动画” 的位置为 “画面”
if $data_animations[@animation2_id].position == 3
#这个动画全体的透明度变为 255/direnshuliang
end[/pre]
[pre lang="ruby"]
for target in @target_battlers
if $data_animations[@animation2_id].position == 3
target.animation_id = @animation2_id
break#中断循环
end
end
[/pre]