• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist 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✓] Message Script Error

  • 13
    Posts
    11
    Years

    Hello, for some reason I am having problems opening a script in Advanced Map. It keeps saying "No script editor defnied" even though I use XSE 1.1.1. Could anyone help me?
     
    You need to go into your settings, select "Choose script editor" and navigate to the .exe file for XSE. Then double-click it and hit either Yes or No, it doesn't matter.

    [PokeCommunity.com] Message Script Error
     
    Im having another problem now actually, it seems that the message box isn't showing up. But I had no errors in my script. Any help?
     
    If you could post the script that would be a great help :) we should be able to work it out, then. Can you post the original (if you still have) and what appears when you press 'open script' from A-Map?
     
    Last edited:
    Here is the message script I used.

    Code:
    #dynamic 0x800000
    
    #org @start
    lock
    faceplayer
    msgbox @talk1 0x6
    release
    end
    
    #org @talk1
    = Hey there!\nHow are you?\pWhat's your name?\p\v\h01?\nThat's a cool name!

    After open script.

    Code:
    '-----------------------
    #org 0x800000
    lock
    faceplayer
    msgbox 0x880000B '"Hey there!\nHow are you?\pWhat's yo..."
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80000B
    = Hey there!\nHow are you?\pWhat's your name?\p[player]?\nThat's a cool name!
     
    That's fine, nothing wrong there. What about the one from opening from A-Map? Looks like this is probably a compiling error.

    Does anything happen when you run the script? Does it freeze or allow you to continue?
     
    When I run the script nothing happens, it just allows me to continue. When I talk to the girl in game that the message script was given to, it makes the sound as if the message box had appeared. That's about it.
     
    Your msgbox line should look like:

    msgbox 0x880000B MSG_NORMAL "<text extract>"​

    I'm not sure what might be causing that, since you have 0x6 on the original, your varion of XSE is the same as mine as well :S how odd.

    When I run the script nothing happens, it just allows me to continue. When I talk to the girl in game that the message script was given to, it makes the sound as if the message box had appeared. That's about it.

    So it runs, you hear a sound, but don't see a message box...
     
    Code:
    '-----------------------
    #org 0x800000
    lock
    faceplayer
    msgbox 0x880000B '"Hey there!\nHow are you?\pWhat's yo..."
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80000B
    = Hey there!\nHow are you?\pWhat's your name?\p[player]?\nThat's a cool name!
    There appears to be a parameter missing for the msgbox command. As for why that's happened, I'm not sure. In any case, you can shorten this script to this, if it's just a simple NPC who talks:

    Code:
    #dynamic 0x800000
    
    #org @start
    msgbox @string1 MSG_FACE
    end
    
    #org @string1
    = Hey there!\nHow are you?\pWhat's your name?\p[player]?\nThat's a cool name!
     
    I knew something was wrong, and I finally found the answer.
    I was wrong, my mistake. My version of XSE is v1.0.0. So could someone link me to v1.1.1?
     
    May I ask what A-map are you using? If It's A-map 1.95 it adds two more digits. So if your offset is 800000 it adds two more and it will be 80000000. Just delete two digits after putting the offset on the A-map 1.95. I suggest you use 1.92 version, less buggy since 1.95 is a beta version.

    But if it's your XSE, then that's just what you should get the 1.1.1 version and disregard what I said but it keep in mind ;)
     
    Back
    Top