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

Having an issue with the script

  • 1
    Posts
    262
    Days
    • Seen Oct 3, 2023
    When my player enters the following script, the game crashes.
    '---------------
    #org 0x801A95
    applymovement MOVE_PLAYER 0x8801B0B
    msgbox 0x8801B37 MSG_NORMAL '"Ouvi um barulho depois do parque,\..."
    applymovement MOVE_PLAYER 0x8801B0E
    end


    '---------
    ' Strings
    '---------
    #org 0x801B37
    = Ouvi um barulho depois do parque,\nno bosque


    '-----------
    ' Movements
    '-----------
    #org 0x801B0B
    #raw 0x3 'Face Right
    #raw 0xFE 'End of Movements

    #org 0x801B0E
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x0 'Face Down
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x3 'Face Right
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0xFE 'End of Movements
     
  • 124
    Posts
    8
    Years
    • Seen Apr 5, 2024
    When my player enters the following script, the game crashes.
    '---------------
    #org 0x801A95
    applymovement MOVE_PLAYER 0x8801B0B
    msgbox 0x8801B37 MSG_NORMAL '"Ouvi um barulho depois do parque,\..."
    applymovement MOVE_PLAYER 0x8801B0E
    end


    '---------
    ' Strings
    '---------
    #org 0x801B37
    = Ouvi um barulho depois do parque,\nno bosque


    '-----------
    ' Movements
    '-----------
    #org 0x801B0B
    #raw 0x3 'Face Right
    #raw 0xFE 'End of Movements

    #org 0x801B0E
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x0 'Face Down
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x3 'Face Right
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0xFE 'End of Movements

    Hey buddy, im going to assume thats a trigger script event, it looks like you forgot to add setvar at the end/or you added too many movements, i think it can only handle 16 or something at a time...maybe a lockall is also needed and a releaseall at the end. Either way, this area is for decomps and ur question belongs on binary scripting forum. I hope this helps!
     
    Back
    Top