• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    7
    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:
  • 12
    Posts
    7
    Years
    • Seen Oct 4, 2016
    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.
     

    Nickalooose

    --------------------
  • 1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    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.
     
  • 18
    Posts
    5
    Years
    • Seen Sep 4, 2019
    Is there a way to have your pokemon gain experience after losing the battle?
     
    Back
    Top