The PokéCommunity Forums

The PokéCommunity Forums (
-   Pokémon Essentials (
-   -   gym battle (

reddevilz January 15th, 2013 8:06 PM

gym battle
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 January 16th, 2013 12:12 AM

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

Quilva January 16th, 2013 7:28 AM

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

reddevilz January 16th, 2013 8:35 AM

thanks guys. I wasnt sure if there was an internal script which automatically did this with gym leaders.

All times are GMT -8. The time now is 10:20 AM.

Like our Facebook Page Follow us on Twitter © 2002 - 2015 The PokéCommunity™,
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / Poké
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2015.