Status
Not open for further replies.

Puppet Knight

Knight on a Crossbar
Veteran
Joined
Aug 3, 2022
Messages
426
Reaction score
231
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

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,471
Reaction score
10,891
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
4,639
Reaction score
3,769
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
Veteran
Joined
Aug 3, 2022
Messages
426
Reaction score
231
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,023
Reaction score
16,835
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 Profile Posts

oneOfUs.jpg
Streaming more Poppet Quest game even in about 12 minutes.
Some dog owners really impress me. I'm pushing 2-3 metric tons of garbage containers that destroy everything they hit. What do you think is going to happen to your tiny dog when I run it over? And why are you crossing my path to argue with me? Have you never been hit by 200kgs of garbage?

Lesson for you folks. Never mess with an angry garbage container. Or its driver.
I didn't dispose of a file properly and now my whole game won't start: I get a script error in the Scene Manager stage of game launch. What to do? Transfer it all to a new project? That's going to be tedious. Fortunately I am only nine workdays into it.

Forum statistics

Threads
131,680
Messages
1,222,170
Members
173,426
Latest member
sleepykitsune
Top