CarbonatedBlood

Villager
Member
Joined
Sep 15, 2021
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I am having an issue regarding the use of both Yanfly's Class System and Yanfly's Learn Skill scripts. When I access "Skills" from the menu, then "Learn Skills", I am shown not only the skill type of the current class, but all other classes that I can change to with use of the Class System Script. The issue does not occur when the Class System script is absent, instead only displaying the skill type of the current class.

Ideally, I want to allow classes to have unique combinations of skill types (Fighter: Sword, axe, bow. Hunter: Bow, lance, dagger. Mage: Wand, dagger, whip). The only issue I suffer is seeing every skill type when learning skills, if there is not a means to achieve this while using both scripts, then I'll just part with the Class System, which I'd like not to as it's a very pleasing script.

Attached is a demo to example the problem.
 

Attachments

  • test.rar
    1.3 MB · Views: 2

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
998
Reaction score
461
First Language
english
Primarily Uses
RMMV
i dont have a solution but i can point out that this probably wont be the only issue you'll come across with class change + skill learn system.
you'll also find that say hunter learns a bow skill at a low level that fighter doesnt learn until a much higher level or doesnt normally even learn that skill at all, the fighter can end up being able to use that skill at lv1 after you learn it with hunter just because it is a matching skill type.
i originally encountered that issue with learning high level black mage skills then switch to low level red mage that would only learn up to middle tier white and black magic.

my solution ended up being to completely change the class/learning system into a single "build your own class" with equipping skill and learning from skill trees.
some people just made different skill type for each class and having duplicate of skills (like white magic type: cure, and red magic type: cure), that system just looked weird to me with skill learn plugin (literally had to learn "Cure" twice) but was fine when it was only level X learning.

every thread ive seen of issues involving class change + skill learn i dont think ever got solved because they would all involve changing the .js files in different ways unique to each different class and skill type approach. and there's been at least a dozen different approaches.
these 2 plugins when combined definitely the combo with the most issues.

you wouldnt be the 1st to just opt out of the class change plugin and just use evented class change system. or the vise versa of opting out of the skill learn plugin and use other methods to buy skills.
 
Last edited:

CarbonatedBlood

Villager
Member
Joined
Sep 15, 2021
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMVXA
i dont have a solution but i can point out that this probably wont be the only issue you'll come across with class change + skill learn system.
you'll also find that say hunter learns a bow skill at a low level that fighter doesnt learn until a much higher level or doesnt normally even learn that skill at all, the fighter can end up being able to use that skill at lv1 after you learn it with hunter just because it is a matching skill type.
i originally encountered that issue with learning high level black mage skills then switch to low level red mage that would only learn up to middle tier white and black magic.

my solution ended up being to completely change the class/learning system into a single "build your own class" with equipping skill and learning from skill trees.
some people just made different skill type for each class and having duplicate of skills (like white magic type: cure, and red magic type: cure), that system just looked weird to me with skill learn plugin (literally had to learn "Cure" twice) but was fine when it was only level X learning.

every thread ive seen of issues involving class change + skill learn i dont think ever got solved because they would all involve changing the .js files in different ways unique to each different class and skill type approach. and there's been at least a dozen different approaches.
these 2 plugins when combined definitely the combo with the most issues.

you wouldnt be the 1st to just opt out of the class change plugin and just use evented class change system. or the vise versa of opting out of the skill learn plugin and use other methods to buy skills.
Fortunately the initial problem you pose is actually something that I intend. The act of levelling weapon skills in one class, then switching to another class to focus on, say, black magic, while still enjoying the benefits of your weapon skills.

UN-fortunately it does seem like I might have to end up opting out of the Class System. Though, if this really has been such an impossible to fix problem, it'd be great for some messiah coder to descend and resolve it for good. Thank you though ^^
 

CarbonatedBlood

Villager
Member
Joined
Sep 15, 2021
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Believe it or not it seems like my problem is "resolved". I gave equip weapon types to classes, then equip skill types to the weapons themselves. It seems to have solved my problem for now funny enough.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,365
Reaction score
799
First Language
English
Primarily Uses
RMVXA
@CarbonatedBlood you shouldn't need to do that. Gets more complicated.

So what do you want to happen?
I can make it show all skill types but only show the ones you can learn or I can only show the skill types for the classes that are active.

for #2 just comment out one line in the class script. or put this below it.
Ruby:
class Window_LearnSkillCommand < Window_Command
  def include?(stype_id)
    return true if @actor.added_skill_types.include?(stype_id)
    return false
  end
end
 

CarbonatedBlood

Villager
Member
Joined
Sep 15, 2021
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMVXA
@CarbonatedBlood you shouldn't need to do that. Gets more complicated.

So what do you want to happen?
I can make it show all skill types but only show the ones you can learn or I can only show the skill types for the classes that are active.

for #2 just comment out one line in the class script. or put this below it.
Ruby:
class Window_LearnSkillCommand < Window_Command
  def include?(stype_id)
    return true if @actor.added_skill_types.include?(stype_id)
    return false
  end
end
I would like for the learn skill menu to display only the skill types that the current player class can make use of.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,365
Reaction score
799
First Language
English
Primarily Uses
RMVXA
Are you going to use subclasses?
I would recommend Estriole subclass addon.
and the patch I wrote above

You can also possible use these.

There are a few patches and scripts I made for these yanfly scripts. Do a search for them
search for 'estriole' posted by roninator2
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

There are so many coding terms that are complete gibberish to me. Like what the heck is "Return" or "Array"??
Sometimes I forget how tiny and fun working in 16x16 is (or with 18x18 if ya counting the white outline LOL) and before you ask Yes. Yes this is an appropriate ratio of drinks to all the other stuff. :popcorn:
f37ac128dedc8a53af7deb2b12e8ea81becf6e46.png
Phew, sleep all day, awake all night. I don't know what to draw tonight!

Does that count as poetry? ..Is there a super fast way to test my creations in RPG Maker? Has anyone played the new Pokémon games? I'm itching to buy it but I don't think my husband will want me to after he finds out how much I spent on Christmas!
When can we get this?
RPG Maker MZ Saturn.png
Saturn port when?
I'm new to rpgmaker mv, link me some good stuff to learn.

Forum statistics

Threads
117,071
Messages
1,104,312
Members
153,052
Latest member
HaxDotCombo
Top