MV How do you make a classes stats always be a % of another classes stats?

Heyooo!!!

pretty simply put i would like to make one classes stats always scales as a percentage of another classes stats.

ex. Class 1 will always have 50% of class 2's stats.
I intend to make it so class 1 cant equip anything or level but class 2 can and with that will effect class 1's stats.


if you have any questions let me know and ill be happy to explain.





thanks!!!
Edit: nvm, missed the tag.

I assume you're using Yanfly's Class System plugin from the YEP library?
I guess the question is - why bother with class 1 having stats? If it's always going to be 50% of class 2, why don't you just make it have nothing and make class 2's stats 50% higher? It seems like a complicated addition for no reason.
@Trihan
I'm looking at that plugin but again I'm trying to search for something that allows % of other stats. i don't know for sure if that can do that, i could be wrong?

@ATT_Turan
actor 1 has different skills and abilities that actor 2 doesn't have and actor 1 might be a series of actors to swap from, only allowing one of them in the party. This makes for more customization and choices. i get what your saying with just making actor 2 150% stronger but actor 2 doesn't have the same skills as actor 1.
@ATT_Turan
actor 1 has different skills and abilities that actor 2 doesn't have and actor 1 might be a series of actors to swap from, only allowing one of them in the party. This makes for more customization and choices. i get what your saying with just making actor 2 150% stronger but actor 2 doesn't have the same skills as actor 1.
I don't understand this response - your question had nothing to do with skills, it had to do with stats. My answer to you had nothing to do with skills.

Secondly, you are now completely changing your question by using the words actor instead of class. So you need to be more clear (which is what Trihan asked you in the first place): are you having both of these classes on one actor, or are you saying that one actor in your party has no stats of his own, but only based on whoever else is in the party with him?
@ATT_Turan
your original statement was
If it's always going to be 50% of class 2, why don't you just make it have nothing
I'm assuming your referring to just getting rid of class 1 entirely.
the reason why i don't want that is because class 1 has skills class 2 doesn't have. making it worth it.
example: in the game class 2 has a companion (class 1) that they can choose from a selection. that companion adds different skills that actor 2 doesn't have.
That being said i would like that companion to have scaling stats based on class 2.

Hope that makes sense. And i apologize, all my actors have 1 specific class so i often use them interchangeably. the companion in this situation would be a separate actor so i guess im referring to actors but when it comes to those formulas isn't it always done in the class notes? I could be wrong.
It's still not entirely clear what you're actually trying to accomplish here. Could you give a more concrete example of exactly what this would look like in your game and take us through a scenario where it's relevant?
@ATT_Turan
I'm assuming your referring to just getting rid of class 1 entirely.
That's not what I said - I said get rid of its stats. The way you wrote your post, it sounded like you were having two classes on one character, which is fairly common in JRPGs. In that case, instead of doing some complicated thing with deriving the stat growth of one class, you'd simply make it have no stats and the actor gets all of them from class 2.
all my actors have 1 specific class so i often use them interchangeably.
If you do that, you'll cause confusion - always stick to the terminology the engine uses.
the companion in this situation would be a separate actor so i guess im referring to actors but when it comes to those formulas isn't it always done in the class notes? I could be wrong.
You're not wrong, and your original post wasn't wrong. It was our presumption that you were having both classes on one actor because that's somewhat common in JRPGs, and this idea of an entire character having no stats of his own is unheard of as far as I know.

That means there's not going to be any existing plugin that will do it for you automatically.
@ATT_Turan
yeah your right, often forget about the multiclass system, something i dont have in my game. my bad.

okay ill look into passive states and see if there is some sort of note tag that can pull stat points from another actor in battle and use it..
You can give your actor a passive state (or multiple) that turn on and off based on who else is in the party. Then I think you'd use Custom Apply and Custom Remove Effects from Yanfly's Buffs and States Core to do the math of the stats.
@ATT_Turan

kkkkk you got it, ill take a dive into that and see what i can do. ill report my findings.
@ATT_Turan
im just having a hard time finding the notetag that will pull a % of another users stats to add as the buff for buff and states core.

<Custom Apply Effect>
code
code
</Custom Apply Effect>

don't know what to substitute for "code" if im using the stats of another actor.

or it could be

<Custom stat Buff Turn>
turn = 10;
turn += user.agi;
</Custom stat Buff Turn>
There isn't a notetag for it, you need to look up how to reference actor stats via JavaScript.

There's absolutely nothing wrong with asking for help (and I'll toss you a bone if I have some free time to think through it), but for how much you're asking for help and how complicated some of the things you want to do are, you'd really do yourself a service by doing some JavaScript tutorials so you can start figuring out how to write this stuff and (as important) how to find the information.
@boulops1 If you have some time, you can check out the video below to gain some insight into the the javascript code being used under the hood of the editor.

@ThreeSixNine you appear to have left out a link 😉
@ThreeSixNine you appear to have left out a link 😉
Thank you! I guess it wasn't working the way I thought it would trying to send it on my phone lol

It has been updated
@ATT_Turan
yeah honestly I'm very new to all of this and getting into the RPG Maker i was surprised to see so much was left out.. felt like a big click bait after i bought it.. its essentially useless without YEP's plugin list or a series other creators work.

with that in mind i honestly didn't think the questions I've been asking should of been that complicated. i just figured they'd all almost be common questions in RPG's. guess im a bit of a hardcore theory crafter haha

@ThreeSixNine I appreciate that link thanks man! ill look into it shortly

one thing i find difficult about coding or just my style of learning is i need to find a source that teaches Javascript and shows its use in RPG Maker. Otherwise im often lost trying to learn it. i know Java can be used for a multitude of things and so if its not showing me how to code something that changes things within the game, i cant connect the dots and it becomes pretty difficult for me.
It's far from "essentially useless," but part of making a game is learning to code. Even if you never use or customize a plugin or find a need to make a script call, and you only use the event editor, that's a simplified form of coding. And then, of course, when you get into more advanced customization you'll need to use actual coding in the language the engine uses.

When you say you thought almost all of your questions would be common questions in RPGs...what games have you played that did these things? I know I've never played a JRPG that had persistent summoned pets, nor one with a character based off someone else's stats, just to recall two of your questions.

As far as the coding goes...again, both the tutorial forum here and a number of YouTube videos have introductions to JavaScript in the context of RPG Maker, but you would really be served well doing some basic tutorials. Otherwise, you won't understand the more advanced syntax that you see in the engine or plugins.

Be careful when you're looking things up - Java and JavaScript are not the same.
@ATT_Turan
yeah honestly I'm very new to all of this and getting into the RPG Maker i was surprised to see so much was left out.. felt like a big click bait after i bought it.. its essentially useless without YEP's plugin list or a series other creators work.

with that in mind i honestly didn't think the questions I've been asking should of been that complicated. i just figured they'd all almost be common questions in RPG's. guess im a bit of a hardcore theory crafter haha

@ThreeSixNine I appreciate that link thanks man! ill look into it shortly

one thing i find difficult about coding or just my style of learning is i need to find a source that teaches Javascript and shows its use in RPG Maker. Otherwise im often lost trying to learn it. i know Java can be used for a multitude of things and so if its not showing me how to code something that changes things within the game, i cant connect the dots and it becomes pretty difficult for me.
One thing to keep in mind is that, as far as my own personal experience has been, learning JavaScript for RPGMaker MV has been 2-fold. That is to say that I had to watch a lot of videos and do a lot of exercises to learn the basics of JavaScript and then I had to try to apply what I though I learned about JavaScript to MV.

While MV uses JS, it is it's own program and has it's own functions that a JS tutorial just won't cover.

I can point you in the direction of a few really good YT series on the basics of JS, if you're interested, as the above video will benefit you much more if you're familiar with the basics of JS.

Also, I would like to reiterate what ATT_Turan said above, about the event editor being a simplified form of coding. The editor is basically acting as a translator between you and the code. If you're making events, you are generating JS for the MV software to evaluate and run.
When you say you thought almost all of your questions would be common questions in RPGs...what games have you played that did these things? I know I've never played a JRPG that had persistent summoned pets, nor one with a character based off someone else's stats, just to recall two of your questions.
haha i guess i just think in terms of what happens in other types of games (not necessarily JRPG) and wonder what would make sense replicating that in a JRPG. the persistent summons to me just seemed to make sense cause it would be annoying to have to keep summoning a pet every battle if that class is based around the idea of using pets lots and having said pet scale off their master seems like a way to have things scale efficiently.

good to know about Java and Javascript differences thanks.

and yeah your both right its always good to understand the basis of anything before diving into something difficult. im just someone who needs to know the direction im headed when learning something or how it applies and contribute to what im doing or it becomes harder for me to learn. plus im husslin every day on this project so i am trying to be as efficient as possible. I've definitely done a few things that took super long to find out someone did in a much simpler, streamlined way. so many different sections to tackles ahhh! i honestly appreciate all the help you guys and this forum gives so so much. without it i would have folded my hands and called it quits a long long time ago.

if you guys know a series that shows how to incorporate JS into doing things in MV id love to sink my teeth into that.

like you said 369 -
While MV uses JS, it is it's own program and has it's own functions that a JS tutorial just won't cover.
i know most of the basic premises behind coding but incorporating it into MV is what id like to see how they do.

thank you guys btw

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-make-a-classes-stats-always-be-a-of-another-classes-stats.134720/