Help with Subclass

AntQuin

Villager
Member
Joined
Jul 15, 2016
Messages
8
Reaction score
2
First Language
English
Primarily Uses
Hello there, everyone,


I've integrated Yanfly's subclass plugin (attached) into a new game I'm creating with RPG Maker MV. The game itself is still in its early phases of development, and I am primarily focusing on getting the mechanics of the overall game where I want them before proceeding much further.


In an ideal world, I would like to develop a game which allows a player to have a primary class that can be supplemented by a subclass. The subclass, however, will have a level value worth half of that of the primary class. Final Fantasy XI used this type of game mechanic, and I really enjoyed it (and countless other aspects of that game). To help put it into perspective, here is a hypothetical scenario: 


A player has leveled classes Warrior and Monk each to level 30. He/She then decides it is time to conjoin the two classes in which Monk is the primary class and Warrior supplements it as the subclass. This results in Level 30 Monk / Level 15 Warrior.


While introducing subclass at all definitely provides the player with an extra layer of strategy throughout gameplay, I wish to take it one step further by controlling the subclass' behavior in that whenever the player selects any unlocked class as the subclass, it is going to be worth half of the primary class.


My coding background is not near what it should be to set this up myself, thus why I'm reaching out to all of you for insight and/or assistance. Broken down to fundamentals, though, I feel as though the gist of what I'm aiming to accomplish is something like this:


If PlayerClass.selection = "subclass" and subclass.level >= primaryclass.level


0.5(subclass.level)


Else


use subclass.level


Some of you may be cringing at this example, but hopefully you are able to look beyond what I have here and understand what I'm trying to accomplish.


Any insight or suggestions anyoen has would be greatly appreciated.


Thank you for your time,

View attachment YEP_X_Subclass.js
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
I've moved this thread to Javascript/Plugin Support . Please be sure to post your threads in the correct forum next time. Thank you.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top