Status
Not open for further replies.

Puppet Knight

Knight on a Crossbar
Regular
Joined
Aug 3, 2022
Messages
717
Reaction score
917
First Language
English
Primarily Uses
RMMZ
Good afternoon lovely people,

I have been hard at work building out my Equip Slots plugin and ran into a bit of a snag.

Currently my plugin refuses to address subclasses in place with Class Change System VisuStella MZ and I cannot get it to take into account notetags from anything beyond the primary class equipped by an actor.

This is the line currently in place that pulls the classSlots note tag:

const classSlotIds = this.currentClass().meta.classSlots ? this.currentClass().meta.classSlots.split(',').map(Number) : [ ];

Anyone have any ideas how I might also have that script check note tags in subclasses and add them to the classSlotIds array?


My plugin's thread if you want to take a peek there for reference


I am almost certain this is a super simple fix. I am just overlooking something
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,926
Reaction score
11,873
First Language
German
Primarily Uses
RMMV
depends - it's either simple or impossible.

If the VS documentation gives you a public script code for accessing the subclasses, then you just need to use that code.

However if Visustella doesn't give a public code for this, then there is no way for you to find the required code on your own, because the Visustella scripts are obfuscated.
In such a case your only chance is to send a request toward Visustella to make that part of their code into a public one.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
5,258
Reaction score
4,734
First Language
EN
Primarily Uses
RMMZ
Copied directly from that page:

Q. How do I get the data on which classes and multiclasses an actor has? A. You would have to use the following code to acquire their data: actor.multiclasses() - This returns an array of all of the multiclasses an actor has. - This includes the actor's primary class.
Have you tried that?
 

Puppet Knight

Knight on a Crossbar
Regular
Joined
Aug 3, 2022
Messages
717
Reaction score
917
First Language
English
Primarily Uses
RMMZ
Have you tried that?

It was a work in using _multiclasses and going over the arrays a couple times and just a whole thing lol
 
Last edited:

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Time for the next chance for y'all to affect my advent calendar! Where should Day 7's sprite come from: land, sea, or demon realm? :rwink:
Throné's final boss is weird. He is a guy holding a baby while fighting off attackers. I think his name was Santos. I might be thinking of someone else.
I think I've just about finished fighting the fight with the tileset I was most intimidated by for game jam. No pictures yet, the map isn't presentable, but I think the tileset will work! I'm very relieved XD
Twitch! At it again with more gamedev for a couple hours, followed by some Valheim with my friend. Feel free to drop by~
these 80+ gb updates on several years old games are the absolute worst. I just want to play for an hour or so before bed to unwind. Sorry, gotta spend that time downloading an update. Then my mods will be broken so I'll have to start over or wait for those to be updated to. Is a complete game within three years of the pay to be a beta tester period really to much to ask?

Forum statistics

Threads
136,782
Messages
1,269,874
Members
180,523
Latest member
Reimu
Top