Enemies experience rewards per level
This generator will create a file with the "experience rewards" by enemies per "variation" and "level".
There you can see how all the attributes below are used for the calculations.
Require parameters:
"levelsExperienceByKey" or pass the levels experience file path when executing the command: this generator requires to know ALL the player levels experience data in the same format provided by the "levels generator".
This can be passed as plain JSON in the levelsExperienceByKey
configuration, like:
If you are passing the levels experience file path like players-experience-per-level.json
, then you can keep avoid this parameter since it will be included by the generate command, see the following link: https://github.com/damian-pastorini/reldens/blob/master/bin/generate.js#L141
"variations": this has to include each variation key for which the experience has to be created with the corresponding value.
As bigger the value is, the biggest the amount of given experience will be.
"decrementProportionPerLevel": this property contains the values used to decrease the proportion of experience given per level, this way high level enemies will give less experience in proportion in order to increase the required kills count and by that making the leveling more difficult.
IMPORTANT: if you are using the MonstersExperiencePerLevel
class in your own script, note the levels keys must be passed as "strings".
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 "monsters-experience-per-level.json".
Save the following content in the file:
This JSON contains the parameters that will be passed to the monsters-experience-per-level
generator.
Now open a console for the command line in your game folder.
Run the following command:
And if you want to pass the experience by level using the file path, run this 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