Is there a way to add a custom EXP curve?

Rainfall

Veteran
Veteran
Joined
Nov 21, 2012
Messages
42
Reaction score
6
First Language
English
My game does not get experience on a traditional way, instead you get a few for doing missions, or exploring areas, collecting cards and so on, and it should be 100 EXP per level up forever.

Is this somehow possible in the maker? :D
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
yes and no - in the database, you have some limits on the formula values you enter for the EXP formula.


However, it can be changed by plugin, and there is a chance of changing it by editing the values in the json for the class data
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
565
Reaction score
276
First Language
German
Primarily Uses
You'll need a plugin to achieve that:

Game_Actor.prototype.expForLevel = function(level) {    var c = this.currentClass();    var basis = c.expParams[0];    var extra = c.expParams[1];    var acc_a = c.expParams[2];    var acc_b = c.expParams[3];    return Math.round(basis*(Math.pow(level-1, 0.9+acc_a/250))*level*            (level+1)/(6+Math.pow(level,2)/50/acc_+(level-1)*extra);};This is the original function that defines the experience formula. If you want to change it into "100 EXP per level", you can remove all the lines from the second to the second last and replace them by

return (level-1) * 100;

Edit: Andars suggestion to edit the json files should work as well if you don't want to use another plugin.
 
Last edited by a moderator:

Rainfall

Veteran
Veteran
Joined
Nov 21, 2012
Messages
42
Reaction score
6
First Language
English
Sorry, both of your suggestions sounds good, but I don't know how to implement either of these. I'm not very experienced with that kind of stuff. :p

Edit:

I made it with some common knowledge and intuition! XD

Thanks Another Fen, it works! Just made a plugin like yours and put it in! :D
 
Last edited by a moderator:

Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
12
First Language
English
Is this a locked topic? No?

It's only a week old, so I don't think this counts as necroposting.

What formula should I write if I want the experience curve to go up at a consistent rate (basically a flat slope)?

Will the changes made in the json file affect what I visibly see in the editor?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,714
First Language
English
Primarily Uses
RMMV
It is not a locked topic, but it is not your topic and your question is not the same, so you really should just start another.


Don't the defaults already give you a flat slope (a straight line)?
 

Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
12
First Language
English
It is not a locked topic, but it is not your topic and your question is not the same, so you really should just start another.

Don't the defaults already give you a flat slope (a straight line)?
I may be seeking a different result, but the theme (custom exp curves) is still the same. No sense flooding the boards with duplicate topics.

And no, as hard as I've tried, I can't make the EXP curves a straight line. Only, well, curves.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top