Sera

Veteran
Veteran
Joined
Oct 27, 2015
Messages
80
Reaction score
16
First Language
English
I have a really simple request: I would like a plugin that allows me to define custom stats.

These stats do not need to be displayed in the status screen or anywhere in-game. They require only two functions:
1. The ability to assign static values to them in the Notes section of the Class editor.

2. The ability to call on these stats in damage formulas.

Basically, every class in my game needs a set of hidden stats such as 'base attack', 'base defense', etc. These are then added to the actor's actual attack and defense in some damage formulas. They will never change and are completely hidden from the player.

I suspect the reason this hasn't been done already is because it's so simple, meaning anyone could probably do it for themselves, but a few of us are absolutely inept at Javascript, so a simple plugin like this could be a huge help.
 
Last edited by a moderator:

kuoushi

Villager
Member
Joined
Oct 28, 2015
Messages
14
Reaction score
15
First Language
English
I'm working on something that actually has a similar feature planned for the future. I might be able to strip it down to do just this. It might take me a couple of days to get to it because I'm a little busy but I'll see what I can do.
 

kuoushi

Villager
Member
Joined
Oct 28, 2015
Messages
14
Reaction score
15
First Language
English
Well, I should probably thank you. I was putting together a quick custom stats plugin for you using some code that I had already written and was running into a weird bug while testing it. Turns out the bug was also in my original, bigger plugin so I had to track down all the various issues and fix them in both.


That being said, here's your plugin:


https://github.com/kuoushi/KuoMV/blob/master/CustomStats.js


It works like this, you say which stats you want to exist in the plugin's parameters. I included some default values there to kind of show you how to do it.


To customize the default values on a per class basis you'll have to add a notetag to each class for each stat. These stats can then be used in your damage formulas.


Read the help in the plugin, it should let you know what you need to do a bit more precisely.
 

Sera

Veteran
Veteran
Joined
Oct 27, 2015
Messages
80
Reaction score
16
First Language
English
Oh god, now I feel really bad! Literally about thirty minutes before I noticed this post, a friend of mine wrote me an identical plugin which was working like a charm.
I'm going to test out yours as well and I'll try to use whichever runs most efficiently, but I still feel bad that I essentially have to render one of your plugins moot by choosing the other.

Thank you so much for creating this in any case, I'm sure lots of people besides myself will get tons of use out of it! It's a very simple concept but it's so key to many different types of games.
 

kuoushi

Villager
Member
Joined
Oct 28, 2015
Messages
14
Reaction score
15
First Language
English
Not a problem at all. The plugin will definitely get some use from me and it also helped me track down bugs in my other plugins.
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm tempted to leave the Fight/Escape choice in the Boss Battle submission and make Escape pop up Nedry from Jurassic Park: "Uh uh unh!"
Is it weird that i feel overwhelmed from reading codes that i wrote few months ago? Lol.

I dont even know where to continue!:hsad:
Ami
Gosh,I want to Play this Game Again one more again!

Seeing my Own Character & Kannono Once Again!
Tales_of_the_World_Radiant_Mythology_3_JPN_PSP-Coverart.jpg
I've been a bit to depressed to get work done on the game lately. Don't worry, I'll be okay.

Forum statistics

Threads
115,305
Messages
1,088,792
Members
149,950
Latest member
Fenceghost
Top