Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
338
Reaction score
17
First Language
Portuguese
Primarily Uses
RMVXA
Good morning / Afternoon / evening , everyone.

I am in need of your assistance once again.

Is it possible to create a script that hides a skill type of my choice from the actor's skill list on the menu, even if the actor has skills of that skill type AND even if I had added that skill type to the actor on the database.

Any help is appreciated.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,138
Reaction score
709
First Language
English
Primarily Uses
RMVXA
Is it possible to create a script that hides a skill type of my choice from the actor's skill list on the menu, even if the actor has skills of that skill type AND even if I had added that skill type to the actor on the database.
Is it the same skill type for all actors or just one?
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
338
Reaction score
17
First Language
Portuguese
Primarily Uses
RMVXA
for all of them, just make it so that it becomes invisible in the skill menu. I'm using it for a specific purpose.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,138
Reaction score
709
First Language
English
Primarily Uses
RMVXA
invisible in the skill menu
Good to go.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Hide Skill Type in Menu      ║  Version: 1.00     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Hide Specific Skill Types           ║    05 May 2021     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Specify which skill types to hide in battle or the skill ║
# ║ menu. This applies to everyone.                          ║
# ║ You can specify one or more skill types.                 ║
# ║ Just seperate them with a comma.                         ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝

module R2_hide_skill_command_in_menu
    Battle_Hide = [1,2] # skill types to hide in battle
    Skill_Menu = [2] # skill types to hide in the skill menu
end

class Window_SkillCommand < Window_Command
  def make_command_list
    return unless @actor
    @actor.added_skill_types.sort.each do |stype_id|
      name = $data_system.skill_types[stype_id]
      add_command(name, :skill, true, stype_id) unless
            R2_hide_skill_command_in_menu::Skill_Menu.include?(stype_id)
    end
  end
end

class Window_ActorCommand < Window_Command
  def add_skill_commands
    @actor.added_skill_types.sort.each do |stype_id|
      name = $data_system.skill_types[stype_id]
      add_command(name, :skill, true, stype_id) unless
            R2_hide_skill_command_in_menu::Battle_Hide.include?(stype_id)
    end
  end
end
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
338
Reaction score
17
First Language
Portuguese
Primarily Uses
RMVXA
Great stuff

Thank you so much for this! If I encounter any issue I will make sure to bump the thread.
 

Latest Threads

Latest Posts

Latest Profile Posts

Man, this quick One Map game is causing unprecedented amounts of trouble.
I always end up having issues with things i'd never expect.

Capture.PNG

Those friggin mountains man xD
Time for my daily walk/jog ''Literally starts raining while I open the door''
I just discovered there's a giant jellyfish in the Ace RTP. My day is made.

Forum statistics

Threads
112,401
Messages
1,068,057
Members
146,052
Latest member
Prandom
Top