• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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] problem with scripting

  • 119
    Posts
    11
    Years
    • Seen Dec 24, 2024
    I just started pokemon hacking, I have learned by now basic mapping, and basic scripting(didn't went to events or warps). I mapped my first and second town and route 1, and decided that I should start scripting. I went to couple of tutorials and tried the simple commend to see how it works(I am using XSE as my scripting program):
    #dynamic 0x800000
    #org @start
    lock
    faceplayer
    msgbox @1 0x6
    release
    end

    #org @1
    = Hi.\nI'm an NPC
    I save it, compile it with my ROM, check twice that I chose the right files, copy the script offset to the one of my NPC's in the advance map and save it. Went to check if it works in the game, and 3 things happen:
    1. the game freezes
    2. A black screen
    3. nothing happens

    Am I doing something wrong ? thanks for the helpers
     
    First of all make sure the unknown of the OW sprite is 03.
    Then I guess movement should be 11 make it 11 and then try it. I am not much sure that why we need to do it.
    That's all i can do if I am wrong then let me know and if i can help with something the also let me know.
     
    First of all make sure the unknown of the OW sprite is 03.
    Then I guess movement should be 11 make it 11 and then try it. I am not much sure that why we need to do it.
    That's all i can do if I am wrong then let me know and if i can help with something the also let me know.

    Unknown should be 03 when its a Script.

    Change the Person event no. & it should work.
     
    I just started pokemon hacking, I have learned by now basic mapping, and basic scripting(didn't went to events or warps). I mapped my first and second town and route 1, and decided that I should start scripting. I went to couple of tutorials and tried the simple commend to see how it works(I am using XSE as my scripting program):
    #dynamic 0x800000
    #org @start
    lock
    faceplayer
    msgbox @1 0x6
    release
    end

    #org @1
    = Hi.\nI'm an NPC
    I save it, compile it with my ROM, check twice that I chose the right files, copy the script offset to the one of my NPC's in the advance map and save it. Went to check if it works in the game, and 3 things happen:
    1. the game freezes
    2. A black screen
    3. nothing happens

    Am I doing something wrong ? thanks for the helpers

    Hey yer online. Did you tried that ?? did that worked ?? if yes let us know please.
     
    The script is valid, it should work. There should be no need to put anything in the 'Unknown' field, either. The 'Person ID' field does not require a value, either, unless you have a flag set in the person's script to make it disappear after the script has run. Also, make sure that the 'Person event no' field near the top (right underneath the 'Delete event' button), is 1 higher than the 'No' field above it. If that doesn't work, maybe the map you put it on is somehow faulty or got corrupted for some reason.

    As 72485rahul said, it may be worth it to try it on a clean rom.
     
    IDK why didnt they worked for you but here goes my screen shots-
    Spoiler:
     
    Back
    Top