随机攻击的判断公共事件是:
for t in $scene.target_battlers
t.hp = t.last_hp
end
@a=$scene.active_battler
if @a.is_a?(Game_Enemy)
t=$game_party.random_target_actor
else
t=$game_troop.random_target_enemy
end
$scene.target_battlers=[t]
s=$scene.skill
for t in $scene.target_battlers
t.skill_effect(@a,s)
end
如不清楚我整理个范例