Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] - [Yanfly] Class System help

Started by Imaidegawa, January 06, 2015, 10:01:58 PM

0 Members and 1 Guest are viewing this topic.

Imaidegawa

Hello everyone!
I'm using Yanfly's Class System Script and I found two problems. The first one, which I tried to solve, is to make Subclass something unavailable and un-present from the game. I made a edit to the script, however I'm afraid I didn't did the right away:
[spoiler]
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # - General Class Settings -
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # These are the general settings regarding the whole script. They control
    # various rules and regulations that this script undergoes. These settings
    # will also determine what a subclass can do for a player.
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    CLASS_MENU_TEXT = "Class"  # Text that appears in the Main Menu.
    MAINTAIN_LEVELS = false    # Maintain through all classes. Default: false.
    DEFAULT_UNLOCKS = [ 1 ]   # Classes unlocked by default.
   
    # The display between a primary class and a subclass when written in a
    # window will appear as such.
    SUBCLASS_TEXT = "%s/%s"
   
    # This adjusts the stat rate inheritance for an actor if an actor has a
    # subclass equipped. If you want to disable this, set the rate to 0.0.
    SUBCLASS_STAT_RATE = 0.0
   
    # This adds subclass skill types to the available skill types usable.
    SUBCLASS_SKILL_TYPES = false
   
    # This adds subclass weapons to equippable weapon types.
    SUBCLASS_WEAPON_TYPES = false
   
    # This adds subclass weapons to equippable armour types.
    SUBCLASS_ARMOUR_TYPES = false
   
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # - Class Scene Commands -
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # These settings adjust how the class scene appears. Here, you can adjust
    # the command list and the order at which items appear. These are mostly
    # visual settings. Adjust them as you see fit.
    #
    # -------------------------------------------------------------------------
    # :command         Description
    # -------------------------------------------------------------------------
    # :primary         Allows the player to change the primary class.
    # :subclass        Allows the player to change the subclass.
    #
    # :learn_skill     Requires YEA - Learn Skill Engine
    #
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    COMMANDS =[ # The order at which the menu items are shown.
    # [ :command,   "Display"],
      [ :primary,   "Primary"],
    # [ :custom1,   "Custom1"],
      [:learn_skill, "Custom"],
    # [ :custom1,   "Custom2"],
    # [ :custom2,   "Custom3"],
    ] # Do not remove this.
   
   [...]etc
[/Spoiler]

The second one is to make the access only available to 001 Actor only (the first actor of all)., since I don't want the other actor being able to change classes nor I want them to appear in the class menu.

That's all, I think D:

PhoenixFire

You may want to post the whole script; it looks like all that you have above is part of the configuration portion, rather than the part of the script that actually does any of the "real work" of processing what you configure in that section.

Imaidegawa

#2
I tried to insert the whole script, but when I pressed the button to post I got an error saying it exceeded the maximum number of  characters ):
I'm gonna leave a link to the script, however if it's against the rules I'm sorry >_< I'll take out if it is so.

https://github.com/Archeia/YEARepo/blob/master/Core/Class_System.rb

Edit: I was able to solve the problem.