• 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!
  • Akari, Selene, Mint, Solana - 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.

Trainer Pok?mon are being randomised for some reason

  • 2
    Posts
    9
    Years
    • Seen Apr 27, 2016
    Trainer Pokémon are being randomised for some reason

    Hello all,
    I am having an issue with setting up a trainer. I want the trainer to have a specific pokemon team, but whenever I initiate the battle the trainer has a randomized pokemon instead of what I wanted it to be.

    I inputted the following info using the Editor.

    Trainer Type:
    10,BUGCATCHER,Bug Catcher,16,,,,Male,

    Trainers PBS:
    BUGCATCHER
    Dave
    1
    CATERPIE,10,,TACKLE,STRINGSHOT


    The code for the event:

    Comment: Battle: Fight me!
    Comment: Type:BUGCATCHER
    Comment: Name:Dave
    Comment: EndSpeech:Awww man...
    Comment: EndBattle:I better catch more pokemon to beat you.
    Script: pbTrainerIntro(:BUGCATCHER)
    Script: Kernel.pbNoticePlayer(get_Character(0))
    Text: Fight me!
    Conditional Branch: Script: pbTrainerBattle(PBTrainers::BUGCATCHER,"Dave",_I("Awww man.."),false,0,false,0)
    Control Self Switch: A =ON

    Branch End
    Script: pbTrainerEnd


    What I want to happen is the trainer to send out a lvl 10 Caterpie, instead it sends out a random pokemon that is between lvl 6 and 12. I have read over the essentials wiki several times and searched the web to try and find an answer for this and couldn't come up with anything to figure this out. I tried anything that I could think of but nothing seemed to work. Any help would be greatly appreciated for this!

    ** I would post pictures for the various things but I just made this account and can't post pictures yet apparently.
     
    It looks like you've failed to do some reading and thinking. You did not say that you were using scripts from the Gen 6 project, which is a mistake to begin with because how can you expect people to help you properly if you don't give us the information we need? You then apparently didn't care to look at those scripts, otherwise you would have noticed that one of them is a randomiser. From there, you only need to do a little bit of research to find out under what circumstances the randomiser script works.
     
    My apologies, I forgot to mention which system I was using and didn't realize that was that much of a difference in the coding for trainers in the gen 6 project. I did think it was an issue somewhere in the scripts that was causing this, and did look through a number of scripts to try and find it but wasn't sure where it was. I'll do some more research and script searching. Thank you for your time
     
    Back
    Top