• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] How to increase xp gain from a certain pokemon in a trainer's party

  • 38
    Posts
    8
    Years
    • Seen Apr 4, 2018
    The rival in my game in the second battle has a luxio which gives around 500 xp and his main pokemon, trapinch, only gives around 200. Is there a way to increase the xp that this particular trapinch gives without affecting the xp from other trapinches?
     
    Last edited by a moderator:
    A (lazy) solution would be to simply create a second species of Trapinch that's only used for that encounter and with increased experience award, although that would probably become very tedious and unreliable if you used it more than once.
     
    The easier solution would be to add this in my opinion:

    CTRL+F and search this line: # 1.57% increase
    Then add directly below it:
    Code:
    # The switch will be needed to stop using this line when encountering the same Pokémon elsewhere
    exp=(exp*2.5).floor if defeated.pokemon.species==328 && $game_switches[[COLOR=Red]1[/COLOR]]==true

    If you really want to make it more indepth and user friendly.
    In your SETTINGS section, add:
    Code:
    # Add a comma followed by the species number .
    # Use commas at the end of a line before starting a new line.
    BOOST=[
    1,27,211,328,329,492
    ]
    Then change the earlier line to this:
    Code:
    [/COLOR][/COLOR]
    [COLOR=Green][COLOR=Black]exp=(exp*2.5).floor if BOOST.include?(defeated.pokemon.species) && $game_switches[[COLOR=Red]1[/COLOR]]==true
    The first script call will use Trapinch specifically, if switch 1 is on... The latter script will use any Pokémon in the SETTINGS variable, BOOST.

    Remember to use your own switch, turn the switch on before and after the battle.

    Like if this helps you.
     
    Is there a way to have your pokemon gain experience after losing the battle?
     
    Back
    Top