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

[Scripting Question] Calling the same Trainer with new Pokemons

  • 38
    Posts
    9
    Years
    • Seen Nov 26, 2023
    Well guys, i tried follow the wiki tutorial and it wont work for me.

    Now i have lots of Rocket Grunts, but, they always use the same pokemon!!!

    Already setup it in trainers.txt and using this for call battle:

    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,0,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,1,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,2,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,3,false)

    Used various numbers in range of 0 and 9 and no ones working...

    Anyone can tell me what im doind wrong?!
     
    Last edited by a moderator:
    Well guys, i tried follow the wiki tutorial and it wont work for me.

    Now i have lots of Rocket Grunts, but, they always use the same pokemon!!!

    Already setup it in trainers.txt and using this for call battle:

    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,0,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,1,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,2,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,3,false)

    Used various numbers in range of 0 and 9 and no ones working...

    Anyone can tell me what im doind wrong?!

    https://pokemonessentials.wikia.com/wiki/Defining_a_trainer

    https://pokemonessentials.wikia.com/wiki/Trainers
     

    I followed the steps on wiki and still dont find my error by myself =(

    when i try test the trainers in debug the same thing happens... debug can recognize theres different trainer, but still loading the same pokemons...

    [PokeCommunity.com] Calling the same Trainer with new Pokemons


    [PokeCommunity.com] Calling the same Trainer with new Pokemons
     
    Last edited:
    Have you made any edits to the core scripts at all? Or are you on a vanilla version of Essentials? Barring that, I can't see why it wouldn't work, even after comparing it with my own trainers.
    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,0,false) # Yours
    pbTrainerBattle(PBTrainers::TEAMROCKET_F,"Grunt",_I("Not even you can spoil this feeling!"),false,1) # Mine
     
    Well guys, i tried follow the wiki tutorial and it wont work for me.

    Now i have lots of Rocket Grunts, but, they always use the same pokemon!!!

    Already setup it in trainers.txt and using this for call battle:

    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,0,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,1,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,2,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,3,false)

    Used various numbers in range of 0 and 9 and no ones working...

    Anyone can tell me what im doind wrong?!

    Code:
    pbTrainerBattle(PBTrainers::LEADER_Brock,"Brock",_I("Whoa!"),false,1,false)
    pbTrainerBattle(PBTrainers::LEADER_Brock,"Brock",_I("Whoa!"),false,4,false)


    Code:
    #-------------------
    LEADER_Brock
    Brock
    2
    GEODUDE,12,,ROCKPOLISH,MUDSPORT,DEFENSECURL,TACKLE
    ONIX,16,,TACKLE,HARDEN,BIND,ROCKTOMB
    #-------------------
    LEADER_Brock
    Brock,4
    6
    ONIX,50,,STONEEDGE,EARTHQUAKE,IRONHEAD,SANDSTORM
    GOLEM,50,,STONEEDGE,EARTHQUAKE,SUCKERPUNCH,IRONDEFENSE
    KABUTOPS,50,,STONEEDGE,AQUAJET,SUPERPOWER,METALSOUND
    OMASTAR,50,,HYDROPUMP,ANCIENTPOWER,HIDDENPOWER,ICEBEAM
    AERODACTYL,50,,STONEEDGE,EARTHQUAKE,IRONHEAD,SANDSTORM
    RELICANTH,50,,STONEEDGE,EARTHQUAKE,IRONHEAD,SANDSTORM
    #-------------------

    so your code should be

    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,1,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,2,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,3,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,4,false)

    Make sure TrainerType has been edited as well
    Code:
    79,TEAMROCKETF,Team Rocket,32,VS Team Rocket Grunt.mp3,,Team Rocket Encounter.mp3,Female,,
     
    Have you made any edits to the core scripts at all? Or are you on a vanilla version of Essentials? Barring that, I can't see why it wouldn't work, even after comparing it with my own trainers.
    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,0,false) # Yours
    pbTrainerBattle(PBTrainers::TEAMROCKET_F,"Grunt",_I("Not even you can spoil this feeling!"),false,1) # Mine

    Using the EX from Zeak, EBS included but i think no edits in the core

    Code:
    pbTrainerBattle(PBTrainers::LEADER_Brock,"Brock",_I("Whoa!"),false,1,false)
    pbTrainerBattle(PBTrainers::LEADER_Brock,"Brock",_I("Whoa!"),false,4,false)


    Code:
    #-------------------
    LEADER_Brock
    Brock
    2
    GEODUDE,12,,ROCKPOLISH,MUDSPORT,DEFENSECURL,TACKLE
    ONIX,16,,TACKLE,HARDEN,BIND,ROCKTOMB
    #-------------------
    LEADER_Brock
    Brock,4
    6
    ONIX,50,,STONEEDGE,EARTHQUAKE,IRONHEAD,SANDSTORM
    GOLEM,50,,STONEEDGE,EARTHQUAKE,SUCKERPUNCH,IRONDEFENSE
    KABUTOPS,50,,STONEEDGE,AQUAJET,SUPERPOWER,METALSOUND
    OMASTAR,50,,HYDROPUMP,ANCIENTPOWER,HIDDENPOWER,ICEBEAM
    AERODACTYL,50,,STONEEDGE,EARTHQUAKE,IRONHEAD,SANDSTORM
    RELICANTH,50,,STONEEDGE,EARTHQUAKE,IRONHEAD,SANDSTORM
    #-------------------

    so your code should be

    Code:
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,1,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,2,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,3,false)
    pbTrainerBattle(PBTrainers::TEAMROCKETF,"Grunt",_I("Eu não acredito! Eu perdi.."),false,4,false)

    Make sure TrainerType has been edited as well
    Code:
    79,TEAMROCKETF,Team Rocket,32,VS Team Rocket Grunt.mp3,,Team Rocket Encounter.mp3,Female,,

    still wont working =(
     
    Last edited by a moderator:
    Back
    Top