• 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!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our 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.

[Other] XSE applymovement error

  • 8
    Posts
    10
    Years
    • Seen May 18, 2016
    Hello everyone,




    I'm new here, and I've got a problem (maybe other people had the same problem, but I couldn't find any solutions on the internet so...)


    I've just started out with scripting and I was trying to create an applymovement script.


    [PokeCommunity.com] XSE applymovement error

    When the player steps on the green tile, Agatha is supposed to come walk to them and say 'Hey!'.
    But when I step on the tile, the game freezes.
    Anyone familiar with this problem?
    My script is as follows:
    '---------------
    #org 0x8001A5
    applymovement 0x2 0x88001B9
    waitmovement 0x2
    msgbox 0x88001BE MSG_NORMAL '"Hey!."
    release
    end

    '---------
    ' Strings
    '---------
    #org 0x8001BE
    = Hey!.



    '-----------
    ' Movements
    '-----------
    #org 0x8001B9
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0xFE 'End of Movements
     
    When the player steps on the green tile, Agatha is supposed to come walk to them and say 'Hey!'.

    But when I step on the tile, the game freezes.Anyone familiar with this problem?

    My script is as follows:
    '---------------
    #org 0x8001A5
    applymovement 0x2 0x88001B9
    waitmovement 0x2
    msgbox 0x88001BE MSG_NORMAL '"Hey!."
    release
    end

    You're lacking a variable, which the green script tile will need. Have a look at the variables part of this tutorial.

    Basically you need to fill in the information of the event tile in A-Map, and if you only want this script to happen once then add a 'setvar 0x???? 0x1' command to your script (basically acting as a flag) and it won't activate again.
     
    Back
    Top