• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.

Modifying EXP gain to a fixed value determined by encounter

WaddleBih

Rookie
Member
Joined
Nov 27, 2024
Posts
2
Hello!
I am currently using Essentials (version 21.1 with hotfixes) to try and recreate an old GBC Pokémon clone.
Issue is: while its systems are very Pokémon-adjacent, a lot of things are not. One of these systems is, that EXP gain is not calculated and instead is a fixed value per-encounter (both wild and "trainers", I'm focusing on the wild encounters for now).
So far, tinkering with the scripts has allowed me to enter the value on the encounter slot, export it to the PBS file and compile that value into the .dat version. Now all I need is for the game to actually get the value from the encounter list and get it all the way over to where the EXP gain is (Battle_ExpAndMoveLearning if I understand the structure correctly). I'm not very proficient with Ruby yet, is there an efficient way to carry the data from one script to another? So far, I've only managed to get it up to the generate_foes function of the Overworld_BattleStarting script.

Short version:

I need to get this data from the encounters PBS/dat file

to the exp value in Battle_ExpAndMoveLearning (set it to 0 as placeholder and so far it works):


Thank you in advance!
 
Back
Top