Help with Yanfly Class System

Hi. I'm pretty noob of rpgmaker, and meganoob of scripting.
I'd be vry happy if you could help me to edit a little thing in the Yanfly Class sistem mechanics (Version 1.10).

I set this :

SWITCH_ENABLE_CLASS    = 1

to making the choice disabled at the starting of the game.

But i've reached a certain point into the game when the option of see the class menu should be enabled.

How can i do that?

I've read to bind it to a switch, and I try to do it, but without any result as you may suppose

[IMG]http://rmrk.net/Smileys/default/smiley.gif[/IMG]

Thanks again
The requirement to "enable class" is that it be located in the main menu. You also need to set SHOW CLASS to a switch(might as well use the same switch number).

If you are using YANFLY MENU ENGINE, look around line 101; there you should see COMMANDS. One of the commands is :class.

If you change the location of the class menu, such as placing it in the stats menu, it will not work(by default).

If this advice still doesn't work for you, try changing your switch number; check if any scripts might be interfering such as one with built in switch to same as yours.

Hope this helps!
I set this :


SWITCH_ENABLE_CLASS    = 1


I've read to bind it to a switch, and I try to do it, but without any result as you may suppose
How did you bind it to a switch and how did you use it?


It should go like you did above with CLASS and the first switch, controlling switch #1 should enable and disable the class.


Please post a link to the script and screenshots of how you use the switch you set.
He said he is using YANFLY CLASS SYSTEM. The ability to bind a switch is part of the script config. If he 'ENABLES CLASS' he must also 'SHOW CLASS' which is a switch config just below ENABLE. The way the script is setup, it must appear in the main menu, so class scene must be set or made available there.

After that, it's only a matter of changing set switch or switches to on for the class menu to activate.

More on YANFLY CLASS ENGINE: there is also the ability to enable primary and/or secondary. Again, in order to actually see these options in the menu, corresponding SHOW switch options must be set and turned on!

Link to the script: https://yanflychannel.wordpress.com/rmvxa/core-scripts/class-system/

Lines where switch config are located:

#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

# - Switch Settings -

#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

# These are the switches that govern whether or not certain menu items will

# appear and/or will be enabled. By binding them to a Switch, you can just

# set the Switch ON/OFF to show/hide or enable/disable a menu command. If

# you do not wish to use this feature, set these commands to 0.

#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

SWITCH_SHOW_CLASS = 0 # Switch that shows Class in Main Menu.

SWITCH_ENABLE_CLASS = 0 # Switch that enables Class in Main Menu.

SWITCH_SHOW_PRIMARY = 0 # Switch that shows Subclass in Class Menu.

SWITCH_ENABLE_PRIMARY = 0 # Switch that enables Subclass in Class Menu.

SWITCH_SHOW_SUBCLASS = 0 # Switch that shows Subclass in Class Menu.

SWITCH_ENABLE_SUBCLASS = 0 # Switch that enables Subclass in Class Menu.

end # CLASS_SYSTEM

end # YEA

HOPE THIS HELPS!!
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


If you need help with a script, ALWAYS post a link to it.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanfly-class-system.40750/