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

[Script] little help please.

  • 14
    Posts
    6
    Years
    Okay here is one problem I am having.

    I changed the lay out of town so the exit is on the left side and not the top.

    Here is the script for prof Oak stopping you.


    '---------------
    #org 0x1655ED
    lockall
    setvar 0x4001 0x0
    goto 0x8165605

    '---------------
    #org 0x165605
    setvar 0x8004 0x0
    setvar 0x8005 0x2
    special 0x174
    textcolor 0x0
    pause 0x1E
    playsong 0x12E 0x0
    preparemsg 0x817D72C '"OAK: Hey! Wait!\nDon't go out!"
    waitmsg
    pause 0x55
    closeonkeypress
    applymovement MOVE_PLAYER 0x81A75ED
    waitmovement 0x0
    sound 0x15
    applymovement MOVE_PLAYER 0x81A75DB
    waitmovement 0x0
    pause 0x1E
    showsprite 0x3
    compare 0x4001 0x0
    if 0x1 call 0x81656B8
    compare 0x4001 0x1
    if 0x1 call 0x81656C3
    pause 0x1E
    msgbox 0x817D74A MSG_KEEPOPEN '"OAK: It's unsafe!\nWild POKéMON li..."
    closeonkeypress
    pause 0x1E
    compare 0x4001 0x0
    if 0x1 call 0x81656CE
    compare 0x4001 0x1
    if 0x1 call 0x81656E0
    setdooropened 0x10 0xD
    doorchange
    applymovement 0x3 0x816572E
    applymovement MOVE_PLAYER 0x8165758
    waitmovement 0x0
    setdoorclosed 0x10 0xD
    doorchange
    setvar 0x4055 0x1
    clearflag 0x2B
    setvar 0x4050 0x1
    setflag 0x2C
    setflag 0x4001
    warp 0x4 0x3 0xFF 0x6 0xC
    waitstate
    releaseall
    end

    '---------------
    #org 0x1656B8
    applymovement 0x3 0x81656F2
    waitmovement 0x0
    return

    '---------------
    #org 0x1656C3
    applymovement 0x3 0x81656FB
    waitmovement 0x0
    return

    '---------------
    #org 0x1656CE
    applymovement 0x3 0x8165705
    applymovement MOVE_PLAYER 0x8165731
    waitmovement 0x0
    return

    '---------------
    #org 0x1656E0
    applymovement 0x3 0x8165719
    applymovement MOVE_PLAYER 0x8165744
    waitmovement 0x0
    return


    '---------
    ' Strings
    '---------
    #org 0x17D72C
    = OAK: Hey! Wait!\nDon't go out!

    #org 0x17D74A
    = OAK: It's unsafe!\nWild POKéMON live in tall grass!\pYou need your own POKéMON for\nyour protection.\pI know!\nHere, come with me!


    '-----------
    ' Movements
    '-----------
    #org 0x1A75ED
    #raw 0x2D 'Face Down (Delayed)
    #raw 0xFE 'End of Movements

    #org 0x1A75DB
    #raw 0x62 'Exclamation Mark (!)
    #raw 0xFE 'End of Movements

    #org 0x16572E
    #raw 0x11 'Step Up (Normal)
    #raw 0x60 'Hide
    #raw 0xFE 'End of Movements

    #org 0x165758
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x60 'Hide
    #raw 0xFE 'End of Movements

    #org 0x1656F2
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE 'End of Movements

    #org 0x1656FB
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE 'End of Movements

    #org 0x165705
    #raw 0x10 'Step Down (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (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 0x2E 'Face Up (Delayed)
    #raw 0xFE 'End of Movements

    #org 0x165731
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (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

    #org 0x165719
    #raw 0x10 'Step Down (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (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 0x2E 'Face Up (Delayed)
    #raw 0xFE 'End of Movements

    #org 0x165744
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (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

    which of those lines do I need to delete?
     
    Last edited:
  • 14
    Posts
    6
    Years
    XXXXXXXXXXX
    XFFFFFFFFFFX
    XFHFFFFFHFX
    X FFFFFFFFFFX
    X FFFFFFFLFFX
    X FFFFFFFFFFX
    OFFFFFFFPFFX
    XXXXXXXXXXX

    That is more or less a map of the layout of my town.
    X= tree
    H = house
    L = Lab
    P = Pound
    O = out
    F = free space
     
    Last edited:
    Back
    Top