FANDOM


Changing the exp per step for the daycare
This tutorial was written by Anglican333. Please give credit.
Click here for more tutorials!


In this tutorial we'll be changing the amount of exp received per step by Pokemon in the DayCare.

Implementing

First thing you need to do is open up PokemonDayCare, and find this method:

Events.onStepTaken+=proc {|sender,e|

Pss. This is on line 434.

Then, you will need to find this:

  for i in 0...2
     pkmn=$PokemonGlobal.daycare[i][0]
     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[0]==pkmn.level          # Learned a new move
             pbAutoLearnMove(pkmn,i[1])
           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:

  1. We create a variable called oldlevel equal to the pokemon's currentLevel.
  2. We give the pokemon 1 exp point.
  3. 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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.