# 设置对应生成随机数的当前行动
for action in available_actions
if action.rating > rating_max - 3
if value < action.rating - (rating_max - 3)
self.current_action.kind = action.kind
self.current_action.basic = action.basic
if self.state?(21) and $data_skills[self.current_action.skill_id].scope == 7
#什么都不做
else
self.current_action.skill_id = action.skill_id
end
self.current_action.decide_random_target_for_enemy
return
else
value -= action.rating - (rating_max - 3)
end
end
end