FANDOM


Temporarily disable exp gain
This tutorial was written by -FL-. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


This tutorial explains how to make a switch that when its ON the player pokémon don't gain exp in a battle. Change ZZZ to one switch number. In PBExperience change

def PBExperience.pbAddExperience(currexp,expgain,growth)
  if growth>=6 || growth<0
    return ArgumentError.new("The growth rate is invalid.")
  end
  exp=currexp+expgain
  maxexp=pbGetExpInternal(MAXLEVEL,growth)
  exp=maxexp if exp>maxexp
  return exp  
end

to

def PBExperience.pbAddExperience(currexp,expgain,growth)
  if $game_switches[ZZZ]
    return currexp
  else
    if growth>=6 || growth<0
      return ArgumentError.new("The growth rate is invalid.")
    end
    exp=currexp+expgain
    maxexp=pbGetExpInternal(MAXLEVEL,growth)
    exp=maxexp if exp>maxexp
    return exp  
  end
end

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.