YANFLY ENGINE ACE - HIDE MENU SKILLS

RPG Maker VX Ace

Hide skills in the menu

  • YF
  • 12/15/2011 09:10 PM
  • 3393 views


Link to Script

Have some skills you want hidden until certain conditions are met? Well, now you can! This script will only hide the skills from the default skill list menus. Anything that displays otherwise may or may not hide them depending on the script and what it bases off of.



<hide always>

This skill will always be hidden from the default skill list windows.

<hide in battle>

This skill will always be hidden from the default skill window in battle.

<hide until usable>

This will require the skill to be usable before it appears in the window.

<hide if switch: x>

This skill will be hidden if switch x is on. The skill will be shown if switch x is off. This switch is considered part of the “any” category.

<hide any switch: x>
<hide any switch: x, x>

This skill will be hidden if any of the switches x is on. Use multiple tags or separate the switch ID’s with commas.

<hide all switch: x>
<hide all switch: x, x>

This skill will be hidden until all of the switches x are on. Use multiple tags or separate the switch ID’s with commas.



<hide eval>
string
string
</hide eval>

For the more advanced users, replace string with lines of code to check for whether or not to hide the skill. If multiple lines are used, they are all considered part of the same line.

Here are some small examples.



<hide eval>
@actor.level > 10 &&
@actor.hp <= 1000
</hide eval>

This hides the skill if the actor’s level is above 10 and the actor’s HP is below 1000.



<hide eval>
.include?(@actor.class_id)
</hide eval>

This hides the skill if the actor’s current class is 2, 3, or 4.



<hide eval>
$game_party.item_number($data_items) > 0 ||
$game_party.item_number($data_items) > 0 ||
$game_party.item_number($data_items) > 0
</hide eval>

Hides the skill if the party has any of the items 1, 2, or 3.

---

Original Blog Page