REVEALING UNUSED SKILL TYPES OUT OF BATTLE?

Posts

Pages: 1
Hi again!

This one's pretty minor and if there's no simple fix for it, I'm not that bothered by it.

Basically, some of my characters need to gain a certain state in order to unlock other skill types they have. I also have them equip skills through equipment.

Ergo, it's weird to equip an item and you aren't able to check from the menu what kind of skill it is and what it does since the skill type doesn't show up (since the state only exists in combat).

EDIT: Nevermind, I just did the state thing, and made it add the revealing states via common event after each battle. No big deal and it works pretty well, so don't bother answering. XD

Is there a fix for this? Or am I going to have to make new "invisible" states that only apply outside of combat that exist for the singular purpose of making the "sealed" skill types show up?

#==============================================================================
# ** Window_SkillCommand
#------------------------------------------------------------------------------
# This window is for selecting commands (special attacks, magic, etc.) on the
# skill screen.
#==============================================================================

class Window_SkillCommand < Window_Command
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
return unless @actor
stype = @actor.added_skill_types
@actor.skills.each do |skill|
next if stype.include?(skill.stype_id)
stype.push(skill.stype_id)
end
stype.sort.each do |stype_id|
name = $data_system.skill_types[stype_id]
add_command(name, :skill, true, stype_id)
end
end
end

Here's a little snippet you can use. If understood correct you want a skills skill type to appear in the menu even if the actor doesn't have that skill type? With this, it checks all the actors skills skill types and adds them onto his unlocked skill types. This also only runs in the skill menu.
Pages: 1