• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • The site will be down for planned maintenance beginning shortly. We apologize for any inconvenience this causes!
  • 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.

Modifying Requirements for Pokemon truancy

AmethystRain

pixie-powered judgment!
  • 208
    Posts
    13
    Years
    • Seen Nov 28, 2022
    Firstly, let me be clear that what I mean in the title is not related to the ability Truant (I just couldn't think of a better way to phrase it).

    Ever since R/B it has been a staple of the main series games to include a function wherein until one has a certain badge, traded Pokemon over Level __ occasionally disobey. This is done to prevent players from trading into their games ridiculously over-leveled Pokemon, and thereby clearing the game effortlessly.

    I've learned that this feature is also included in Essentials, and it gave me an idea. One of the things that irks me the most as a developer is when people raise only a single Pokemon. It becomes extremely over-powered, completely surpasses the level curve built for teams of 6, and basically takes the entire challenge out of the game.

    In order to discourage this, I would like to extend this truancy of Pokemon over a certain level to encompass not just traded Pokemon, but ones owned by the Original Trainer as well. I would also like to have control over the badge-to-level requirements (so as to keep it synchronised with the game's level curve).

    So, the question is, are the above things practical using Essentials, and if so, how might I go about implementing them?
     
    You'll be wanting the def pbObedienceCheck?, which can be found in the script section PokeBattle_Battler.

    To make even originally-yours Pokémon disobey you, simply delete the red part of the following line (1088):
    Code:
    if [COLOR=Red]@pokemon.isForeign?(@battle.pbPlayer) &&[/COLOR] @level>badgelevel
    The line immediately after that one is the calculation for whether the Pokémon will disobey (higher levelled Pokémon will disobey more often). The badge-to-level part can't be missed
     
    Couple days late in reply- put it in immediately, but didn't get around to testing it until just earlier.

    Anyway, it works like a charm, thank you~ <3
     
    Back
    Top