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,137
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,137
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

So many good stat names, how do people chose!? :p
I am often just about to give in and ask for help in the forums, when I eventually figure things out myself. Spent almost the whole day with a minor issue, but in the and it's so satisfying that I didn't need to open a thread :D


First time for my AI to do a voice-over for a developer diary.
It has been a long way to make a voice so beautiful.:kaojoy:
The voice in some old trailers is just disastrous. :kaoswt2:
I'm back from an 11 year hiatus. Lol

Forum statistics

Threads
112,344
Messages
1,067,597
Members
145,986
Latest member
Origami
Top