Hide skilltype in battle until unlocked, but show it in the menu

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,680
Reaction score
895
First Language
Dutch
Primarily Uses
N/A
Hi!
So I have a stealth skilltype for my character. As it works now, whenever player uses "Dusk Cut" skilltype Stealth is activated in battle. Normally it isn't shown.
However, in that case it won't show up in the menu. If I add skilltype Stealth to my character itself, then it is not disabled in battle (shows up despite nit being usable). Is there a way to like, disable skilltype "Stealth" in battle unless "Dusk Cut" is used?
But then have it show up in the menu so the player can check what skills are listed in it?
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
128
Reaction score
32
First Language
German
Primarily Uses
RMVXA
I don't know if this will help, but I had a similar problem and use this code to hide skill type 10 in battle:
Code:
class Window_ActorCommand < Window_Command
  #--------------------------------------------------------------------------
  # * Add Skill Command to List
  #--------------------------------------------------------------------------
  def add_skill_commands
    @actor.added_skill_types.sort.each do |stype_id|
      name = $data_system.skill_types[stype_id]
      if stype_id != 10 #define non-battle skill type number here
        add_command(name, :skill, true, stype_id)
      end
    end
  end
end
That said I do not know how to expand it to take your character's status effect into account, sorry.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,680
Reaction score
895
First Language
Dutch
Primarily Uses
N/A
Sadly that didn't work for me. I think because I'm using Yanfly's battle commands. But that one also has no option to hide skilltypes. It can hide skills but thta's not what I'd want.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,326
Reaction score
482
First Language
English
Primarily Uses
RMVXA
I don't know if it will work, but I've looked up some options.

or
Ruby:
        DEFAULT_ACTOR_COMMANDS =[
            # "AUTOBATTLE",
            "ATTACK",
            # Comment out or remove 'SKILL LIST'
            #"SKILL LIST",
            # Insert 'SKILL TYPE 1'; instead of each skill type being displayed,
            # only skill type 1 will show up on the battle menu for the actor.
            "SKILL TYPE 1",
            "SUBCLASS LIST",
            "DEFEND",
            "ITEMS",
            "EQUIP",
    ] # Do not remove this.
which I'm wondering if it could be modified to work like this
Ruby:
        DEFAULT_ACTOR_COMMANDS =[
            # "AUTOBATTLE",
            "ATTACK",
            # Comment out or remove 'SKILL LIST'
            #"SKILL LIST",
            # Insert 'SKILL TYPE 1'; instead of each skill type being displayed,
            # only skill type 1 will show up on the battle menu for the actor.
            "SKILL TYPE 1" => if $game_switches[X],
            "SUBCLASS LIST",
            "DEFEND",
            "ITEMS",
            "EQUIP",
    ] # Do not remove this.
Then activating switch when that other skill is used.

Similarly this could be modified in the same way.

Might need another script for the menu skill type
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,680
Reaction score
895
First Language
Dutch
Primarily Uses
N/A
Would be nice if something like



Code:
Ruby:
        DEFAULT_ACTOR_COMMANDS =[
            # "AUTOBATTLE",
            "ATTACK",
            # Comment out or remove 'SKILL LIST'
            #"SKILL LIST",
            # Insert 'SKILL TYPE 1'; instead of each skill type being displayed,
            # only skill type 1 will show up on the battle menu for the actor.
            "SKILL TYPE 1" => if $game_switches[X],
            "SUBCLASS LIST",
            "DEFEND",
            "ITEMS",
            "EQUIP",
    ] # Do not remove this.

Was possible yes
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,680
Reaction score
895
First Language
Dutch
Primarily Uses
N/A

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,680
Reaction score
895
First Language
Dutch
Primarily Uses
N/A
I found a solution via multiple scripts. There's a script that can disable/enable skill types, then when using X skill I enable skill types at will via a common event (via a state). Once the state timer is up, it disables them again.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Every time the official RMWeb account makes a post, I think it's @Eliaquim writing it!

It's driving me crazy, but it's also wonderfully hilarious.
// Looks at Elfkisser, realizes he'd have to either install Windows 10 or compile it for Linux
// Didn't install Elfkisser.
Too much effort for a curiosity. :popcorn:
I was just high-fiving myself for all I've learnt in the engine, and how far I've come, only to forget to remove the Immortal state from a semi-scripted battle. Now the enemy never dies and I feel so smart >.>
Playtest your stuff. Always playtest.
just spent FOREVER troubleshooting an issue with my keyboard... turns out the cord was just loose OTL

Forum statistics

Threads
99,224
Messages
963,224
Members
130,813
Latest member
Gremter
Top