Players experience per level generator
This generator will create a file with all the "levels" required data so you can import them in Reldens.
The generator code can be found here: https://github.com/damian-pastorini/game-data-generator/blob/master/lib/generator/players-experience-per-level.js
Require parameters:
"startExp": is the experience required to reach the first level.
"baseGrowthFactor": this is the multiplier by which the previous level experience will be multiplied, and it's going to be incremented on each level iteration by the "growthIncrease" property.
"baseGrowthFactorPerLevel": this is a container to specify a new "growthFactor" starting the specified level. Following the example below, this way if the initial growthFactor is 2, it will be applied until the level 5 when it changes to 1.5. It is normal to decrease this value according the required experience increase, otherwise the required experience will get too high in the latest levels.
"maxLevel": loop will generate data until this level inclusive.
"growthIncrease": as noted above this value is used to increase the "baseGrowthFactor" per level iteration.
To use the generator follow these steps:
Go to your game folder and create a folder called "generate-data".
Inside the created folder create a new file named "players-experience-per-level.json".
Save the following content in the file:
This JSON contains the parameters that will be passed to the players-experience-per-level
command.
Open a console for the command line in your game folder. As next, we need to generate the "levels" for those sets.
Run the following command:
As result, a new folder called "generated" will be created under your "game" folder, and there you will find a file with the generated data like:
Last updated