The PokéCommunity Forums Fan Games ROM Hacking
Script Emerald help with movement after multiple choice script

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Thread Tools
Old December 17th, 2017 (9:46 AM).
Ferelheart Ferelheart is offline
    Join Date: Dec 2015
    Gender: Male
    Posts: 3
    Hello, I am new to scripting with XSE and am having a tough time figuring out how to make a NPC move after asking a yes no question. everything except the movement seems to go off without a problem.

    #org 0xE7FBA5
    checkflag 0x195
    if 0x1 goto 0x8E82E62
    msgbox 0x8E83B3D MSG_YESNO '"Do you wish to challange the\nLege..."
    compare LASTRESULT 0x1
    if 0x1 goto 0x8E82E01
    if 0x0 goto 0x8E82E62
    #org 0xE82E62
    msgbox 0x8E82FB2 MSG_NORMAL '"Safe travels."

    #org 0xE82E01
    msgbox 0x8E82E6D MSG_NORMAL '"Good luck."
    setflag 0x195
    applymovement 0x17 0x8E83BA1
    waitmovement 0x0

    ' Strings
    #org 0xE83B3D
    = Do you wish to challange the\nLegendary Trial? Once you enter\lyou cannot escape till its\lcomplete.

    #org 0xE82FB2
    = Safe travels.

    #org 0xE82E6D
    = Good luck.

    ' Movements
    #org 0xE83BA1
    #raw 0xA 'Step Left (Normal)
    #raw 0x3 'Face Right
    #raw 0xFE 'End of Movements
    Reply With Quote
    Old December 17th, 2017 (4:14 PM). Edited December 17th, 2017 by Avara.
    Avara's Avatar
    Avara Avara is offline
    Author Of Tales
      Join Date: Dec 2011
      Location: Izantine
      Gender: Other
      Nature: Adamant
      Posts: 694
      Is the "person event number" for your OW #17 in A-map? If so, you'll want to change this to 11 in your script - you need to convert it from decimal to hex. Using 17 would make the OW with a person event number of 23 move. XSE has a handy built in dec/hex converter if you get stuck!
      pale tortured blue, blistering through
      Reply With Quote
      Old December 17th, 2017 (4:55 PM).
      Ferelheart Ferelheart is offline
        Join Date: Dec 2015
        Gender: Male
        Posts: 3
        Thank you for the quick reply,
        it worked and your explanation makes sense.
        Reply With Quote

        Quick Reply

        Join the conversation!

        Create an account to post a reply in this thread, participate in other discussions, and more!

        Create a PokéCommunity Account
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump

        All times are GMT -8. The time now is 3:46 PM.