This is pretty neato. I'll try it out if I actually make it through to completing something!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
target.damage = "#{skill.name} learned!"
if target.is_a?(Game_Enemy)
ids = []
target.actions.each {|act| ids.push(act.skill_id) if act.kind == 1}
elsif target.is_a?(Game_Actor)
ids = target.skills.clone
end
def do_the_thing_with_the_skillz(enemy)
case enemy
when 1 then return 1
when 2 then return 1
when 3 then return 2
when 4 then return 3
end
return nil
end
when [1, 2, 3].include? then return 1
def do_the_thing_with_the_skillz(enemy)
return 1 if [1,2,3].include?(enemy)
return 2 if [4,5].include?(enemy)
return 3 if [6,7,8,23].include?(enemy)
return nil
end
if target.is_a?(Game_Enemy)
ids = do_the_thing_with_the_skillz(target.id)
else # It should never be targeting an actor, so this part shouldn't even come up.
ids = nil
end