• 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?".
  • 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
    8
    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:

    Zeak6464

    Zeak #3205 - Discord
  • 1,101
    Posts
    11
    Years
    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
     
  • 38
    Posts
    8
    Years
    • Seen Nov 26, 2023

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

    Calling the same Trainer with new Pokemons


    Calling the same Trainer with new Pokemons
     
    Last edited:

    Derxwna Kapsyla

    Derxwna "The Badman" Kapsyla
  • 437
    Posts
    12
    Years
    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
     

    Zeak6464

    Zeak #3205 - Discord
  • 1,101
    Posts
    11
    Years
    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,,
     
  • 38
    Posts
    8
    Years
    • Seen Nov 26, 2023
    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