|Changing the exp per step for the daycare|
|Click here for more tutorials!|
In this tutorial we'll be changing the amount of exp received per step by Pokemon in the DayCare.
First thing you need to do is open up PokemonDayCare, and find this method:
Pss. This is on line 434.
Then, you will need to find this:
for i in 0...2 pkmn=$PokemonGlobal.daycare[i] next if !pkmn maxexp=PBExperience.pbGetMaxExperience(pkmn.growthrate) if pkmn.exp<maxexp oldlevel=pkmn.level pkmn.exp+=1 if pkmn.level!=oldlevel pkmn.calcStats movelist=pkmn.getMoveList for i in movelist if i==pkmn.level # Learned a new move pbAutoLearnMove(pkmn,i) end end end end end
Basically, this executes twice, and says, create a local variable called pkmn which is equal to the pokemon in daycare slot i (which is either 1 or 2, depending which looped time it is)
After that, we execute the rest ONLY if the pokemon isn't null(?).
Then, if the pokemon's experience is less than the maximum experience it can have:
- We create a variable called oldlevel equal to the pokemon's currentLevel.
- We give the pokemon 1 exp point.
- If the pokemon's level has changed, we calculate stats, learn new moves, etc.
Now. The part we want to edit is step 2. SImply change the +=1 to, for example, +=8, to give it 8 experience instead. Note - this is per step.