Yanfly Job Points Question - Gain at level up

Craig

Veteran
Veteran
Joined
Oct 19, 2015
Messages
47
Reaction score
65
First Language
English
Primarily Uses
RMMV
Hey guys! I know next to NOTHING about JS, but was wondering if someone could help me with Yanfly's Job Points plugin.

I know you can change the parameters to only give JP at level up, but I don't know the correct variable name for what I am trying to do.

I would like each actor to gain 100 JP + (whatever their new level is x 1.5).

So essentially 100 + (actorlvl * 1.5), but obviously that doesn't work, because I don't know the correct way to write it, lol.

Can someone help me out? 

Oh, and I would also like the JP aftermath screen to only show if someone levels up. Is that possible?

Thanks in advance!
 

MuteDay

Mutation Engine
Veteran
Joined
Oct 19, 2015
Messages
253
Reaction score
39
First Language
English
pretty sure it would be 100+(this.Level*1.5) and about it showing only if someone levels up, without editing the code, no it isnt posible currently
 

Craig

Veteran
Veteran
Joined
Oct 19, 2015
Messages
47
Reaction score
65
First Language
English
Primarily Uses
RMMV
pretty sure it would be 100+(this.Level*1.5) and about it showing only if someone levels up, without editing the code, no it isnt posible currently
That's for replying!

I tried that (actually decided I would rather use 100*(this.Level*1.5) instead. It no longer crashed the game at the end of a battle when I would level up, but when the JP aftermath comes up, everyone who level's up receives "NaN" JPs. When I open the skill screen they have received 0 JP :(
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
229
Reaction score
74
First Language
German
That's for replying!

I tried that (actually decided I would rather use 100*(this.Level*1.5) instead. It no longer crashed the game at the end of a battle when I would level up, but when the JP aftermath comes up, everyone who level's up receives "NaN" JPs. When I open the skill screen they have received 0 JP :(
You have to use

100 * (this.level * 1.5)

with a small "l" instead of a big "L".
 
Last edited by a moderator:

MuteDay

Mutation Engine
Veteran
Joined
Oct 19, 2015
Messages
253
Reaction score
39
First Language
English
sorry about that, i was half asleep when i wrote that. but yea use small l instead of big
 

Craig

Veteran
Veteran
Joined
Oct 19, 2015
Messages
47
Reaction score
65
First Language
English
Primarily Uses
RMMV
You have to use

100 * (this.level * 1.5)

with a small "l" instead of a big "L".
Thank you so much! Works perfectly :D I guess I need to start learning a little JS!
 

MuteDay

Mutation Engine
Veteran
Joined
Oct 19, 2015
Messages
253
Reaction score
39
First Language
English
lol only if you want to, if not feel free to post your questions or message me with your questions
 

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

Latest Threads

Latest Posts

Latest Profile Posts

The video of a psycho chasing people on the streets with a sword before getting subdued is wild. Apparent screenshots of his Twitter feed before it went private reveal a dangerous delusional mindset. I heard there was a bow person too. The crazies are really coming out of the woodworks.
Stream will be live shortly with some Witcher 3, followed by a session of the Interactive Text Adventure! Feel free to drop by!
Managed to find a way to hang a bed cover over my window. So no more being toasted alive in the afternoon!:kaoswt2:
So, uh, has anyone tried buying any resources from KokoroReflections? Because I've been looking for a 'buy' button on the site for like 10 minutes now and can't find one.
Any also thought it's too cringy to put the word "and you" in your credit as a special thanks?
Cause that's what I thought...

Forum statistics

Threads
97,993
Messages
948,395
Members
129,254
Latest member
Swiftz
Top