• 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?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.

Not using the correct version of a trainer

  • 78
    Posts
    10
    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