• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist 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.

Show Pokemon and recieve an evolution stone - Problem

  • 55
    Posts
    11
    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
     
    What leads you to believe that there's a problem with this event? Does it not work? Does it produce an error? Why haven't you told us what went wrong?

    Have you checked the syntax and spelling of all the code? Are you using :: correctly?
     
    Back
    Top