• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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
    10
    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