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.

[VX] Requesting "Dual weapon" option for classes.

In VX there's an option for Actors called "Two Swords Style". I'd like to be able to set that according to class, not actor. I need this script because in my game you select what class your Actor is.

For example: Every actor that changes to assassin class would gain the "Dual Weapon" ability.

I've already searched to see if this has been done. I did it pretty quickly, though, so I am sorry if it's been done already. If you do plan on creating this script it'd be awesome if you could add the other options available for actors to the classes as well. (Example: Critical Bonus, Super Guard, etc.) But, of course if that is too much to ask for that's fine by me. I really only need the "Two Sword Style". Thank you for taking your time to read this. If you are confused on what I am asking for please notify me so I can explain.
 
Here
#==============================================================================
# ** Classes Configuration Module
#==============================================================================

module Classes
  Two_Swords_Style = [1,2]
  Fix_Equipment = [3,4]
  Auto_Battle = [5]
  Super_Guard = [6]
  Pharmacology = [7]
  Critical_Bonus = [8]
end

#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles the actor. It's used within the Game_Actors class
#  ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Two Sword Style
  #--------------------------------------------------------------------------
  def two_swords_style
    return Classes::Two_Swords_Style.include?(@class_id)
  end
  #--------------------------------------------------------------------------
  # * Fix Equipment
  #--------------------------------------------------------------------------
  def fix_equipment
    return Classes::Fix_Equipment.include?(@class_id)
  end
  #--------------------------------------------------------------------------
  # * Auto Battle
  #--------------------------------------------------------------------------
  def auto_battle
    return Classes::Auto_Battle.include?(@class_id)
  end
  #--------------------------------------------------------------------------
  # * Super Guard
  #--------------------------------------------------------------------------
  def super_guard
    return Classes::Super_Guard.include?(@class_id)
  end
  #--------------------------------------------------------------------------
  # * Pharmacology
  #--------------------------------------------------------------------------
  def pharmacology
    return Classes::Pharmacology.include?(@class_id)
  end
  #--------------------------------------------------------------------------
  # * Critical Bonus
  #--------------------------------------------------------------------------
  def critical_bonus
    return Classes::Critical_Bonus.include?(@class_id)
  end
end

I didn't had the time to test the script because I'm not at home. But I'm sure it will work.
Just change the values (class ID) in the arrays of the Classes module.
 

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