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
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.
|All times are GMT -8. The time now is 10:20 AM.|
© 2002 - 2015 The PokéCommunity™, pokecommunity.com.
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éCommunity.com.
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.