Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Disable Skills?

Status
Not open for further replies.
I'm looking for a call script command that will disable the party's skills for the duration of one battle and then another command that will turn them back on. I don't what the characters to forget the skills, just have them grayed out so that they cannot use them in that particular battle.

If this is not possible, a second alternative would be to have the party forget all their skills and then relearn them after the battle. Right now, I believe you can only forget/learn skills one at a time, though I know they can be learned or forgotten consecutively. The problem with this is trying to figure out what skills the party has learned thus far. Really, though, I would rather find a way just to disable all skills as described earlier. Thanks for reading and hopefully someone can help.
 
Why not make a status effect like Silence?

You could set it to never end (until you tell it to) and name it Normal if you don't want the name to actually show.

Induce it to the entire party before the battle, then cure it afterwards.
 
Wow. And the sad thing is I never would have thought of that. Thanks, Racheal. Your method works like a charm.

**EDIT**
All right, I ran into a problem.

I can disable magic, just fine, but the attack skills are still available. I would like to find a way to disable both magic and general attack skills. I'm not so sure this can be achieved by just changing the state.
 
Behold the power of Ruby!!!

Code:
class Game_Party
  attr_accessor :disable_all_skills
  alias_method :seph_disableskillsandsuch_gmprty_init, :initialize
  def initialize
    seph_disableskillsandsuch_gmprty_init
    @disable_all_skills = false
  end
end

class Game_Actor
  alias_method :seph_disableskillsandsuch_gmactr_scu?, :skill_can_use?
  def skill_can_use?(skill_id)
    if $game_party.disable_all_skills
      return false
    end
    return seph_disableskillsandsuch_gmactr_scu?(skill_id)
  end
end

Now, to disable everyone skills, just use:
Code:
$game_party.disable_all_skills = true

To re-enable their skills, use:
Code:
$game_party.disable_all_skills = false
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top