• 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.

[Other] Script help.

  • 1,278
    Posts
    9
    Years
    Hey.
    I use XSE and i tried to make just a simple script with a guy giving a pokemon.
    I tried it a long time ago and worked perfectly.
    Alright, the script is like this.
    I dont know why is not working, i just copied the script for testing it.
    It has a problem with the command "compare" i think.

    Spoiler:


    Also if you can help me with another script i would appreciate that.
    I made a new town in A-map and i just want to make sure the player does not go in wild grass until he had obtained a Pokemon.
    Thank you!
     
    Hey.
    I use XSE and i tried to make just a simple script with a guy giving a pokemon.
    I tried it a long time ago and worked perfectly.
    Alright, the script is like this.
    I dont know why is not working, i just copied the script for testing it.
    It has a problem with the command "compare" i think.

    Spoiler:


    Also if you can help me with another script i would appreciate that.
    I made a new town in A-map and i just want to make sure the player does not go in wild grass until he had obtained a Pokemon.
    Thank you!

    The message box for question has to be a yesno message box. You are comparing your 01 (Yes, I want a Pikachu) with a last result that didn't happen (You don't actually ask if you want or not a Pikachu,code-wise).
    Also, I believe you have to have a message there for "@checkup". I could be wrong.
    And is flag 1200 ok to use?
     
    The message box for question has to be a yesno message box. You are comparing your 01 (Yes, I want a Pikachu) with a last result that didn't happen (You don't actually ask if you want or not a Pikachu,code-wise).
    Also, I believe you have to have a message there for "@checkup". I could be wrong.
    And is flag 1200 ok to use?

    Unfortunately, i suck at scripting and i have no idea about what is wrong.
    Actually i remember using it a long time ago.
    I copied the script which i found it and like i said before it worked perefectly.
     
    Unfortunately, i suck at scripting and i have no idea about what is wrong.
    Actually i remember using it a long time ago.
    I copied the script which i found it and like i said before it worked perefectly.

    Yeah, it's pretty close to diegoisawesome's Give Pokémon script.
    Where does it stop working?
    You press "Yes" and get no Pikachu, or you get the Pikachu, but the boxes won't close... Where does it go bananas?
     
    The script should be working properly. You probably don't have rbh files that supports LASTRESULT change it to 0x800D compile and try it out in-game to see if it works. :)
     
    Yeah, it's pretty close to diegoisawesome's Give Pokémon script.
    Where does it stop working?
    You press "Yes" and get no Pikachu, or you get the Pikachu, but the boxes won't close... Where does it go bananas?

    I can't compile the script. It keeps saying that ther is a problem in the line which is the command "compare".
    I tried to give it a try with no compare command, i can compile the script but if i choose "yes" it is like i choose no.
    So there is no "Yes" answer.
     
    Spoiler:
     
    I told you on the previous post to change LASTRESULT to 0x800D lol. It should work once you've changed it.

    Hahaha sorry man i forgot this. Aaaaand it worked. Thank you very much.
    Also if you want and you can help me with the other thing i wrote at the first post you rock.
    Thanks again!
     
    Also if you can help me with another script i would appreciate that.
    I made a new town in A-map and i just want to make sure the player does not go in wild grass until he had obtained a Pokemon.
    Thank you!

    You mean this one?

    Well there are different ways to approach this you can go with script tiles or simply npc's blocking the path. You can like do a hidesprite for the npc's if you are going with those and use the flag 0x828 since it's the one that activates the pokemon menu or maybe a level script to change the position of the npc. Since you're a beginner a script tile would probably be your best go although I can't make an example atm I'll edit the post once I finish what I'm currently doing lol.

    EDIT:
    TOTALLY FORGOT TO EDIT THIS LOL
    Anyways just put this script on a script tile with var 0x5000 just put that in the var number, tho I'm not sure if that's a safe var just change it lol.
    Spoiler:

    I didn't really test this so tell me if something's wrong. :)
     
    Last edited:
    You mean this one?

    Well there are different ways to approach this you can go with script tiles or simply npc's blocking the path. You can like do a hidesprite for the npc's if you are going with those and use the flag 0x828 since it's the one that activates the pokemon menu or maybe a level script to change the position of the npc. Since you're a beginner a script tile would probably be your best go although I can't make an example atm I'll edit the post once I finish what I'm currently doing lol.

    EDIT:
    TOTALLY FORGOT TO EDIT THIS LOL
    Anyways just put this script on a script tile with var 0x5000 just put that in the var number, tho I'm not sure if that's a safe var just change it lol.
    Spoiler:

    I didn't really test this so tell me if something's wrong. :)

    Man, you are the best. It worked like a charm. Thanks again.
     
    Back
    Top