• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - 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] WHATS WRONG IN MY SCRIPT?

  • 57
    Posts
    10
    Years
    • Seen Jul 11, 2014
    #dynamic 0x800000

    #org @Start
    msgbox @1 0x6
    warp 0x0 0x9 0xFF 0x19 0x8
    setflag 0x800
    end

    #org @1
    = What?

    The "What?" line is supposed to be the word that the player will say before warping in an specific area... I put Set flag because Ill put an event there.... It compiled but when I open the rom in VBA.. The game has corrupted! Please, tell me whats wrong in my script....

    Tools that I used
    Advance MAp 1.92
    XSE 1.1.1
     
    There's nothing in that script that would corrupt your game so it must have been something else which led to that. Additionally, there are some things you should change in you script to make it work correctly. Try inserting this script into a untouched ROM:

    Code:
    #dynamic 0x800000
    
    #org @start
    msgbox @talk 0x6
    setflag 0x200 // Its generally accepted that you should only use flags inside of the 200 - 2FF range unless they have other specific uses. [URL="https://www.pokecommunity.com/showthread.php?t=302347"]Read this thread for more information[/URL]
    warp 0x0 0x9 0xFF 0x19 0x8 // The warp command automatically ends the script so it should be placed at the end with the setflag moved in front of it
    
    #org @talk
    = What?
     
    There's nothing in that script that would corrupt your game so it must have been something else which led to that. Additionally, there are some things you should change in you script to make it work correctly. Try inserting this script into a untouched ROM:

    Code:
    #dynamic 0x800000
    
    #org @start
    msgbox @talk 0x6
    setflag 0x200 // Its generally accepted that you should only use flags inside of the 200 - 2FF range unless they have other specific uses. [URL="https://www.pokecommunity.com/showthread.php?t=302347"]Read this thread for more information[/URL]
    warp 0x0 0x9 0xFF 0x19 0x8 // The warp command automatically ends the script so it should be placed at the end with the setflag moved in front of it
    
    #org @talk
    = What?

    you're so cool thanks for helping me, Ill try to follow what you've said...
     
    Back
    Top