• 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!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

How can I can make Trainer's pokemon a variable?

  • 3
    Posts
    9
    Years
    • Seen Apr 2, 2016
    Hey Guys, I need help, I want to trainer's pokemon's level to be a variable and not a single number.
    I mean, I want to make gym leaders' pokemons a little stronger by leveling them up and theirs levels will depend of our pokemon's level, something like this:

    Code:
    poke=$Trainer.party[0]
    pokemon=PokeBattle_Pokemon.new(:MAGIKARP,poke.level,$Trainer)
    pbAddPokemon(pokemon)

    With that code the event gives me a Magikarp with the same level of my first pokemon, I want to do the same with trainers but I can't.
    I hope you can help me.
    Thanks
     
    you can try to use custom trainer by Stochastic.
    And make a trainer event like this
    [PokeCommunity.com] How can I can make Trainer's pokemon a variable?
     
    Hey Guys, I need help, I want to trainer's pokemon's level to be a variable and not a single number.
    I mean, I want to make gym leaders' pokemons a little stronger by leveling them up and theirs levels will depend of our pokemon's level, something like this:

    Code:
    poke=$Trainer.party[0]
    pokemon=PokeBattle_Pokemon.new(:MAGIKARP,poke.level,$Trainer)
    pbAddPokemon(pokemon)

    With that code the event gives me a Magikarp with the same level of my first pokemon, I want to do the same with trainers but I can't.
    I hope you can help me.
    Thanks

    There are trainer modifiers in the PField_EncounterModifiers section, as of v15.1+
     
    Back
    Top