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

gym battle

14
Posts
15
Years
    • Seen Jun 27, 2013
    quoted from the WIKI " It is filled with trainers, one of whom is a Gym Leader who rewards the player a Gym Badge and a TM once they are defeated." but where is the TM that is given defined. the example gym in essentials does not have a normal give item script.
     

    Derxwna Kapsyla

    Derxwna "The Badman" Kapsyla
    437
    Posts
    12
    Years
  • All you need to do is have it call the "Give Item" script sometime after the battle ends, but not before the player leaves.
    It should look something like this I'd suppose
    c42392eba32f605f7eb4c2c22ecd9f23.png
     
    1,405
    Posts
    11
    Years
  • add Kernel.pbReceiveItem(PBItems::X) in a script command

    X is the item you want the player to get,you can look up what you need to replace X with in the editor by scrolling to the item or by looking in the right .txt file in PBS

    Derxwna Kapsyla already showed an example above
     
    14
    Posts
    15
    Years
    • Seen Jun 27, 2013
    thanks guys. I wasnt sure if there was an internal script which automatically did this with gym leaders.
     
    Back
    Top