• 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.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • 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.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

Not using the correct version of a trainer

  • 77
    Posts
    12
    Years
    • Seen Sep 7, 2015
    Hey,
    I have an trainer in my game that will not use the correct battle team.
    For Example,
    The script says pbTrainerBattle(PBTrainers::POKEMONTRAINER_May,"May",_I("Awww... But at least I tried."),false,1,false,1)
    and that is supposed to give this team:
    POKEMONTRAINER_May
    May,1
    2,POTION
    ZIGZAGOON,4,,TACKLE,GROWL
    WURMPLE,5,,TACKLE,STRINGSHOT,POISONSTING,,1,F,,,TIMID,,,,true
    but it gives
    POKEMONTRAINER_May
    May,0
    2,POTION
    ZIGZAGOON,2,,TACKLE,GROWL
    WURMPLE,3,,TACKLE,STRINGSHOT,,,1,F,,,TIMID,,,,true

    Does anyone know how to make it so it uses the May,1 team instead of the May,0 team?
     
    Delete the last ",1" - pbTrainerBattle(PBTrainers:POKEMONTRAINER_May,"May",_I("Awww... But at least I tried."),false,1,false[S-HIGHLIGHT],1[/S-HIGHLIGHT])
     
    Thanks for the help, but the other problem was when you try to add another battle through the editor, it gives this error:
    Exception: NameError
    Message: uninitialized constant PokeBattle_Pokemon:PBStats
    PokeBattle_Pokemon:806:in `calcStats'
    PokeBattle_Pokemon:804:in `each'
    PokeBattle_Pokemon:804:in `calcStats'
    PokeBattle_Pokemon:884:in `initialize'
    PTrainer_NPCTrainers:128:in `new'
    PTrainer_NPCTrainers:128:in `pbNewTrainer'
    PTrainer_NPCTrainers:114:in `loop'
    PTrainer_NPCTrainers:137:in `pbNewTrainer'
    PTrainer_NPCTrainers:108:in `each'
    PTrainer_NPCTrainers:108:in `pbNewTrainer'
     
    Last edited:
    Have you made recently edits to PBStat, in script editor?

    This is the original script:
    Spoiler:
     
    Thanks so much.
    If anyone knows info on how to input double encounters, it would be appreciated.??????
     
    Folle64,Thank you so much for the help and Franzo, as well.
    It helped me to move forward in the game that I'm hoping to present sometime this year on this website :)
    |
     
    Back
    Top