Yanfly equip core lunatic mode question

Although this could be used in other contexts as well.

I am currently using the yanfly actor variables plugin to give each character a set of six core stats (strength, constitution, dexterity, intelligence, wisdom and charisma) in addition to the ones the game gives you by default (so I'm not renaming the currently existing stats). 

I want to make it that a weapon does damage based on the weapons own attack stat plus the characters strength stat. I would use the note area in the weapon section to alter it's attack.

<Custom Parameters>

atk = $gameVariables.value(41);

</Custom Parameters>

In this case I'm referring to a specific characters strength stat. I know in theory how I could make it use the strength stat of whoever is equiping the weapon, but not how to actually do it. 

It would look something like this:

<Custom Parameters>

atk = $gameVariables.value(<equipingCharacter>*20 + 21);

</Custom Parameters>

Where <equipingCharacter> is the index integer of the character equiping the weapon.

The first two arrays are used for game variables and each character gets their own array of twenty variables.

This code would assume that each characters extra stats appear in the same order in the variables.
Bump I guess

The latest yanfly video showed some use of the equip core that is very close to what I need for this. 




Presumably the user keyword is some sort of pointer the actor that has this weapon equipped. I tried user.index() but that doesn't work. 

How do I get the index of the user?

Also, could someone point me to some sort of resource that has all of RPG maker MVs objects and their attributes? Is this yanfly guy a developer working for the RPG maker people? If not, how do they know all this stuff?
Presumably the user keyword is some sort of pointer the actor that has this weapon equipped. I tried user.index() but that doesn't work. 

How do I get the index of the user?

Also, could someone point me to some sort of resource that has all of RPG maker MVs objects and their attributes? Is this yanfly guy a developer working for the RPG maker people? If not, how do they know all this stuff?
Index? The index of what?

There is no index() function in the actor "class".

Do you mean the actorId (the number from your database)?

That would be

user.actorId();How Yanfly knows that stuff?

He looks at the source code for MV, probably 😉

In this thread, you'll find a link with the source code split into smaller files with a little documentation for each file.
Thank you so much. This is exactly what I was looking for.

That actorId is what I meant by index.

That download definitely helps, took me seconds to find all the attributes for the actor class.  

I was looking through the js files in the project directory, but couldn't find what I was looking for.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-equip-core-lunatic-mode-question.52874/