Jump to content
Sign in to follow this  
Minjo Master

Skill type descriptions in help window

Recommended Posts

So I've got a fair few different skill types in my game. I would like to give them all some flavor text explaining some of the subtle differences between them (like which skill types are sealed by which states, etc.) and I think the help window up in the skill scene would be perfect for that. But it's only used when you've got your cursor over individual skills by default.

 

What I would like is for a way to set up a short little description for each of my skill types. I'm pretty sure this isn't too hard... I would imagine I would set up an array of the strings for each one, corresponding with the Skill Type's ID. And then set up the scene to display the corresponding string in the help window when the cursor is over that skill type. Sadly, Ace's scripting language is Ruby and not English, and I'm still not above "fiddling" levels of scripting. Can anyone lend me a hand with this?

Share this post


Link to post
Share on other sites

 

 

class Scene_Skill < Scene_ItemBase
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  alias pc27_type_help_create_command_window create_command_window
  def create_command_window
    pc27_type_help_create_command_window
    @command_window.help_window = @help_window
  end
end

class Window_SkillCommand < Window_Command
  #--------------------------------------------------------------------------
  # * Update Help Text
  #--------------------------------------------------------------------------
  def update_help
    @help_window.show_skill_type(current_ext)
  end
end

class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # * Update Skill Type Help
  #--------------------------------------------------------------------------
  def show_skill_type(current_ext)
    contents.clear
    draw_text_ex(0, 0, PC27::SkillHelp::Hash[current_ext])
  end
end

module PC27
  module SkillHelp
    Hash = {
#Skill Type ID => "Description", (use \n as newline)
             1 => "Special of awesomeness omg so cool\ngiv candy!!!",
             2 => "Magic",
    }
  end
end

 

 

 

Like this?

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.

×