Yanfly Job Points - Tying JP Gain to a Stat

Exlo

Villager
Member
Joined
Nov 22, 2015
Messages
13
Reaction score
1
First Language
English
I've been looking around for an answer to this question, but couldn't find it anywhere. Does anyone know if it's possible to effect JP gain for specific actors using that actors stats? I'm trying to create something like in Fallout, where high Intelligence results in more experience. The formula I'm trying to apply to it is something like:

1 + magic attack / (magic attack / 2.5) = Number of JP Gained Per Level

I've been trying to apply this directly to the plugins parameters in the "JP Per Level" box.The problem is mostly that I know next to nothing about Javascript or even RPGMaker MV in general. Any help is greatly appreciated, even if it's just to tell me it can't be done. Thanks. C;

EDIT: Yanfly's Job Points Plugin - http://yanfly.moe/2015/11/13/yep-27-job-points/
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Please add a link to the plugin.
 

Exlo

Villager
Member
Joined
Nov 22, 2015
Messages
13
Reaction score
1
First Language
English
Sorry about that, updated the original post.
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
245
Reaction score
82
First Language
German
Try this formular:

1 + this.mat / (this.mat / 2.5)

mat stands for magic attack

Here's a list of the stats

hp => HP
mp => MP
tp => TP
mhp => Max HP
mmp => Max MP
atk => Attack
def => Defense
mat => Magic Attack
mdf => Magic Defense
agi => Agility
luk => Luck
hit => Hit Rate
eva => Evasion Rate
cri => Critical Rate
cev => Critical Evasion Rate
mev => Magic Evasion Rate
mrf => Magic Reflection Rate
cnt => Counter Attack Rate
hrg => HP Regeneration Rate
mrg => MP Regeneration Rate
trg => TP Regeneration Rate
tgr => Target Rate
grd => Guard Effect Rate
rec => Recovery Effect Rate
pha => Pharmacology
mcr => MP Cost Rate
tcr => TP Charge Rate
pdr => Physical Damage Rate
mdr => Magical Damage Rate
fdr => Floor Damage Rate
exr => Experience Rate
 
 
Last edited by a moderator:

Exlo

Villager
Member
Joined
Nov 22, 2015
Messages
13
Reaction score
1
First Language
English
Thank you for the reply. I tried entering this with a little variation, I decided on:  this.luk / (this.luk / 2.5) 

The plugin doesn't show any signs of being unable to process what I ask for, but the results are... weird. He's just gaining 2 JP every level. This is the same for several levels in a row, and if the formula was taking effect, by level 4 he would have 10 luck, and so should be gaining 4 JP (or at least more than 2!).

So now I'm just confused. :c
I will say that I didn't know how to abbreviate some of those stats, though, so that is very useful to me!
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
245
Reaction score
82
First Language
German
Thank you for the reply. I tried entering this with a little variation, I decided on:  this.luk / (this.luk / 2.5) 

The plugin doesn't show any signs of being unable to process what I ask for, but the results are... weird. He's just gaining 2 JP every level. This is the same for several levels in a row, and if the formula was taking effect, by level 4 he would have 10 luck, and so should be gaining 4 JP (or at least more than 2!).

So now I'm just confused. :c

I will say that I didn't know how to abbreviate some of those stats, though, so that is very useful to me!
Let's calculate it.

If your character has 10 luck and gains a level, your formular would be:

10 / (10 / 2.5) =>

10 / 4  = 2.5

The result is 2.5 not 4.

And 2.5 will be 2 JP, so it works as it should. BD

With your formular, the result will always be 2.5.
 
Last edited by a moderator:

Exlo

Villager
Member
Joined
Nov 22, 2015
Messages
13
Reaction score
1
First Language
English
Oooh I think I got myself confused when I wasn't using my calculator incorrectly over here, it had been showing me the result in parenthesis instead of the problem as a whole! Here I thought I had a good way to scale the points going. c':

Thank you so much, it's good to know I should be able to come up with something now!
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top