• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

gym battle

  • 14
    Posts
    16
    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.
     
    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
    [PokeCommunity.com] gym battle
     
    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
     
    thanks guys. I wasnt sure if there was an internal script which automatically did this with gym leaders.
     
    Back
    Top