• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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] Give Pokedex upon win

  • 63
    Posts
    17
    Years
    I am trying to give the player a Pokedex when they beat a trainer. It works, however it works even when the player loses. You receive the Pokedex even after you lose and black out. How do I change it to only give you the Pokedex/any item upon winning only? Thanks!
     
    I'm assuming this is done via an event. Can you show us the code? Make sure that the code that give the player the pokedex is only being fired "On win" - you should have a conditional branch to call the battle for that.
     
    Back
    Top