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

[Other] Level Script Issue

BCTElite

Be still, my heart 'cause it's freakin' out
81
Posts
11
Years
  • So I've made a script that should activate when first entering the Lab, however I have a few issues with it.

    The first is that it is kinda broken, there is a part in the script where the prof walks over to a computer and says a message. He is then supposed to walk back but he doesn't, the game freezes, however the music keeps playing.

    The next issue is that, before I added the movement in and the script didn't freeze, the script loaded every time I walked into the lab, I only want it to once, and only after I have spoken to the prof outside.
    I have tried to fix this w/a flag check but that did not work
    also, if I enter the lab before the prof sprite has been loaded on it, i simply keep looping the script and eventually walk off the map.

    The final issue I have (a small one) is that the text is all in black, not the normal blue.

    I'll put the script below!

    Spoiler:
     
    3,830
    Posts
    14
    Years
    • Age 27
    • OH
    • Seen yesterday
    Here are some fixes to the script that you could make.

    Code:
    #dynamic 0x800000
    
    #org @start
    lockall // never forget to lock
    setvar 0x4001 0x0
    goto 0x8808E05
    
    '---------------
    #org 0x808E05
    applymovement 0x4 0x8808E36
    applymovement MOVE_PLAYER 0x8808E41
    waitmovement 0x0 // just use waitmovement 0x0 to wait for all movements to complete
    msgbox 0x8808E59 MSG_NORMAL
    applymovement 0x4 0x8808E4B
    waitmovement 0x0
    msgbox @waits 0x6
    applymovement 0x4 @waiting
    waitmovement 0x0
    msgbox 0x8808F06 MSG_NORMAL '"Hawthorn: Sorry about that, I just..."
    releaseall
    end
    
    #org @waits
    = Hawthorn: ..., I see.
    
    #org 0x808E59
    = Hawthorn: [player], congrats on getting\na Pokémon. I remeber my first\lPokémon, my partner gave it to me\las a birthday gift a long time ago\lnow. Anyway, I have asked here to\l...
    
    #org 0x808F06
    = Hawthorn: Sorry about that, I just\ngot an automated message from the\lLuxborough Pokémart. My parcel has\ljust got in. Could you do me a\lfavour and go and get it for me?
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x808E36
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x0 'Face Down
    #raw 0xFE 'End of Movements
    
    #org 0x808E41
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE 'End of Movements
    
    #org 0x808E4B
    #raw 0x62 'Exclamation Mark (!)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE
    
    #org @waiting
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0xFE 'End of Movements

    For the most part the script wasn't terrible. The most obvious issue is that you never used a lock command.
     
    Back
    Top