Jump to content
Minjo Master

"Next Skill Learned" in skill menu

Recommended Posts

So I was thinking it would be nice to have a little window that showed the next skill whichever character was going to learn next, and at what level, when you're checking out their skills in the Skill menu. Unfortunately I don't have the foggiest idea where I'd begin to check that. Is it something I'd have to write a bunch of conditional stuff for, or is there a way to actually get the name and level of the next skill and then display it? I'm guessing it would look best at the bottom of the screen, pushing the skill list window up one line and having a line to itself. But I'm really inept with this stuff, so if anyone could give me guidance or if anyone's done it before already, hook me up?

Share this post


Link to post
Share on other sites
def collect_next_skill(id)
    level = []
    $game_actors[id].class.learnings.each do |learning|
      level.push(learning.level) if learning.level > $game_actors[id].level
    end
    skill = []
    $game_actors[id].class.learnings.each do |learning|
      skill.push(learning.skill_id) if learning.level == level.min
    end    
    return skill
end

maybe there's a better way, but this will do.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×