• 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 Conquest 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.

Trainer Level Scaling (PE v19.1)

  • 3
    Posts
    3
    Years
    • Seen Dec 3, 2021
    In my game I want all 'boss' trainers to scale with the player's Pokémon, but I can't find a complete script that works with PE v19.1. Somehow I've managed to build a script, borrowing heavily from the existing 'trainer modifier' script within Overworld_EncounterModifiers, plus code from wtmn_bk and thor348 (links below for reference).

    Wtmn_bk - (broken link removed)
    Thor348 - https://www.pokecommunity.com/showthread.php?t=309204&highlight=happiness

    Here is the actual script:

    Spoiler:


    The script will update the Pokémon's stats , but doesn't account for Pokémon evolution. This wasn't an issue for me as all my trainers will have teams based on the number of badges the player has and the region is split into different 'zones' to prevent players running through the whole game without battling the gyms (which would result in high level, non-evolved Pokémon battles).

    The only thing I will mention is that the Pokémon's moves won't update. This is because I wanted to use moves defined in trainers.txt and when I added pkm.reset_moves to the script it would only use moves the Pokémon knows at that level.

    I haven't been able to work out how the script calculates the levels of the opponent's Pokémon. I looked at Thundaga's tutorial, which also uses thor348's script, but that only suggests you play around with the numbers to change the levels rather than describing what they actually do. (Note: I am not hating on Thundaga - his tutorials have been incredibly helpful and he will be getting lots of credit in my game.) If you are able to explain, I would be eternally grateful.

    Anyway I wanted to contribute something to the community to say thanks for all the help you've unknowingly given me. I hope this helps at least one of you. Feel free to improve upon the script or make any additions. No credit required as I have very little scripting knowledge and pretty much stumbled on this by pure luck!
     
    When I was looking at Radical Red I never been able to force the game to cap the level since with the exp share the game becomes so easy . will it work with level cap
     
    Back
    Top