Stat Distribution Panel (SDP) System
J/JE/Jragyn
Introduction
In RPGs, there can be a wide variety of different means to power up your character. Sometimes its via basic level ups, sometimes you consume items, sometimes it is purely from equipment, and the list goes on. This system is the "Stat Distribution" system, where the player gains points from whatever means, and then spends them to power up various parameters. In most the stat distribution systems I've seen, it was always purely points typically gained by leveling up, and then spent on single parameters one at a time, always up. The term "panels" seen in the title comes from the quirk of this system, where the RM dev can group up a collection of parameters that all will be powered up at the same time (or powered down if you want) when leveling up your "panels". This gives the power to the RM dev to allow for some creative spins on how their players level up.
Features
- Create "panels" that contain one or more parameters that affect the player on a per-actor basis.
- Parameters can be any of the 27 parameters, be it the base (MHP/ATK/MAT) or ex (HIT/EVA/CRI) or sp (GRD/REC/EXR).
- Parameters can increase flat or by percent (use caution with percent, especially when working with ex/sp params!)
- "Panels" have a basic cost formula that is largely adjustable to be flat or multiplicative based on the rank.
- "Panels" can be ranked up one or a thousand times if you felt the need to allow the player such versatility.
- "Panels" have an open space for javascript to execute upon maxing out the rank (such as learning a new skill or unlocking another panel).
Screenshots
How to Use
Because I built it to work with JABS, it is designed to hook into the JABS quick menu. However, it should work fine without, and live happily in your main menu, or just from plugin command scene call.
There are also a couple of note tags that come into play with this plugin, let us go over them:
All configuration for SDPs to be unlocked by the player are found within the plugin settings. See the demo project for samples.
Plugin Commands / Script Calls / Plugin Settings
From top to bottom depicted in the screenshot of plugin commands above:
- Access the SDP Menu:
From top to bottom depicted in the screenshot of plugin settings above:
- SDP Switch:
When you enter the "Stat Distribution Panels" setting, it'll bring you to a list view of all panels that you've created (or that were predefined by me). All panels must be defined here that you want to include in your project. Panels can be created/adjusted here, and it'll affect existing save files. Though you can adjust parameters that will allow balance adjustments on existing save files, if the player has maxed a panel, the reward cannot be re-earned or changed.
Click into the below spoiler to learn more about panel configuration.
Name:
The formula is:
PanelParameters:
When you enter the "Panel Parameters" setting, it'll bring you to a list view of all parameters that you've created (or that were predefined by me). Here you will define all parameters that this particular panel affects.
Parameter Id:
I also built this to work in tandem with enemies as mentioned before. If you opted to follow the concept I described where enemies can provide SDPs, then the following script call may also be useful to know:
JavaScript:
// The following notes go into an enemy's note box:
<sdpPoints:NUM>
// Where NUM is the number of points you want this enemy to reward the player with.
// The following enemy note is optional; I built them for my project, but you can use it too:
<sdpPanel:KEY:ITEM_ID:DROP_CHANCE>
// Where KEY is the unique string identifier for the panel.
// Where ITEM_ID is the id of the item in the database that maps to an item.
// Where DROP_CHANCE is the integer percent chance of the item dropping.
/*
The design concept behind having an enemy directly drop the panel was that panels would
uniquely be dropped by enemies, which activated a common event, which had some party
conversation and unlocked the panel. This is not required. You can just as easily use
the plugin command however you wish to unlock a panel at any time.
*/
All configuration for SDPs to be unlocked by the player are found within the plugin settings. See the demo project for samples.
Plugin Commands / Script Calls / Plugin Settings
From top to bottom depicted in the screenshot of plugin commands above:
- Access the SDP Menu:
- Unlock Panel(s):
- Lock Panel(s):
- Add/Remove SDP points:
- Add/Remove party's SDP points:
From top to bottom depicted in the screenshot of plugin settings above:
- SDP Switch:
- SDP Icon:
- Stat Distribution Panels:
- SDP JABS Menu Icon:
- Show In Both:
When you enter the "Stat Distribution Panels" setting, it'll bring you to a list view of all panels that you've created (or that were predefined by me). All panels must be defined here that you want to include in your project. Panels can be created/adjusted here, and it'll affect existing save files. Though you can adjust parameters that will allow balance adjustments on existing save files, if the player has maxed a panel, the reward cannot be re-earned or changed.
Click into the below spoiler to learn more about panel configuration.
Name:
Key:
IconIndex:
Is Unlocked:
Description:
MaxRank:
The next three config options are related to cost.
The formula is:
Code:
baseCost + (multGrowthCost * (flatGrowthCost * rank))
PanelParameters:
MaxReward:
MaxDescription: (not pictured in the screenshot above)
When you enter the "Panel Parameters" setting, it'll bring you to a list view of all parameters that you've created (or that were predefined by me). Here you will define all parameters that this particular panel affects.
Parameter Id:
Growth per Rank:
Growth Type:
I also built this to work in tandem with enemies as mentioned before. If you opted to follow the concept I described where enemies can provide SDPs, then the following script call may also be useful to know:
JavaScript:
// where KEY is the key of the panel you want to know if is unlocked:
$gameSystem.getSdp(KEY).isUnlocked();
Demo
A demo showcasing the primary functionalities can be found at the download link below.
Download
The SDP system lives in my test-bed project, so this should be the same link as the one you find in my JABS thread.
Final Note
I deliberately left all code open for the public to view and edit as they see fit (please be kind and give credit where credit is due!).
Additionally, if you have questions about the code, I'd be happy to explain most anything you'd see in the J-SDP.js file (or any of my plugins).
Thank you, and happy RM-ing!
- The tilesets and some characters/faces (and the obvious core plugin at the top) are not mine, they were from VisuStella and co., so... thank you for making even other devs lives like my own easier to just pick up and get started doing actual content creation!
- I believe it was Avy's work that created the icons in the iconset. It is a bit patchworky because I wanted more things, but still, credit is due where credit is due.
- The characters/faces that are named with the pattern: "chara_*" are just characters I made using the built-in character generator. You are free to use them if you want, but know that with a little bit of time you could probably make your own! (and a bit of paint.net efforts)
- I believe it was Avy's work that created the icons in the iconset. It is a bit patchworky because I wanted more things, but still, credit is due where credit is due.
- The characters/faces that are named with the pattern: "chara_*" are just characters I made using the built-in character generator. You are free to use them if you want, but know that with a little bit of time you could probably make your own! (and a bit of paint.net efforts)