• 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.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • 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.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

Show Pokemon and recieve an evolution stone - Problem

  • 55
    Posts
    12
    Years
    • Seen Oct 8, 2019
    Hi guys,

    I want to create a guy that gives you an evolutionstone for showing him some pokemon, e.g. if the player has a Pikachu in his party, the guy gives a thunderstone.

    There must be a fallacy somewhere, but I couldn't find it.

    First thing is Page 1, where he describes who he is and a Variable X is set to 1. Than a self switch leads to Page 2.


    Code:
    Page 2 starts with a check, if Variabe X is equal to 1. 
          If yes, it checks, if the certain pokemon in party.
          If no, it checks, if Variable X is equal to 2.
              If yes it checks, if the certain pokemon is in party
              If no, it checks, if Variable X is equal to 3
    ...
    
    If the pokemon is in party.
         If yes, he will give a thunderstone and add +1 to Variable X
         If no, the guy describes the pokemon again.

    Hope you get what I mean, there is a picture in the attach with the code. Hope you can help me out. Thank you in advance.

    [PokeCommunity.com] Show Pokemon and recieve an evolution stone - Problem
     
    Mmmm use different pages? You are making the check for Pikachu after the Houndour check. Id suggest you create a new page and enable a switch after you are done with Houndour. After he gives you the Fire Stone, just make him say the same thing he says inmediatly in the same page about the Pikachu. Using the -1 variable for a check makes it a bit messier.

    Here's how I'd do it.

    [PokeCommunity.com] Show Pokemon and recieve an evolution stone - Problem
     
    Back
    Top