• 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] Make a question/answer script ?

  • 94
    Posts
    11
    Years
    • Seen Sep 18, 2023
    I had the idea of creating a gym where you only have to battle if you answer a question wrong.
    What I now want to ask is how I can create a script, ,where : The person sees you, ask you a question like: "What is the secret ingredient in the Big Mac Sauce?" .You then have to type the answer manually(like when you give a nickname to a Pokemon), like : "french dressing"
    Then the script should check if the given answer is correct. If it is, the person will let you pass.
    If not, you have to battle him!

    Is such a script possible?
     
    It'd require ASM to make the naming happen. Also you'd need to rewrite the current naming routine as it only supports 13 characters or something like that. For making the person approach the player, It'd be best to use green script tiles imo. The ASM which makes a trainer run to the player is standardized, and it won't be easy (unless you know what you're doing) to make it run a specific script and terminate without battling.
     
    13 characters are long enough I think...

    Cool, you can use the same routine as the player naming one then. You'll have to just make a short routine to feed it a destination to store the string, after that just call the routine and use str_cmp to check if they're both equal. The rest is achievable with scripting.
     
    Saddly, I have 0% experience in ASM, so I can't make this happen...

    You should learn the basics of what a pointer is, how to reverse hex things, and once you're comfortable looking at Hex, read a tutorial. It's not that hard to be honest, it's a linear language that's not even OO.
     
    Would it be easier if you have to talk to the Person so that you can battle?
    Then my only proble would still be the typing...
    I should just make a multichoicebox and give different answer possibilitis...
    I think thats easier!
     
    Would it be easier if you have to talk to the Person so that you can battle?
    Then my only proble would still be the typing...
    I should just make a multichoicebox and give different answer possibilitis...
    I think thats easier!

    Yup, a multiple choice box hack would be much easier. Check out my signature, I've already developed something nice for multi-choice boxes :)
     
    Back
    Top