View Single Post
  #7539    
Old January 16th, 2013 (3:08 AM).
ShyRayq's Avatar
ShyRayq ShyRayq is offline
Unprofessional Unprofessional
     
    Join Date: Aug 2007
    Gender: Male
    Nature: Adamant
    Posts: 1,519
    Hey guys, I have a script that doesn't seem t work in my FR rom

    Spoiler:

    '---------------
    #org 0x730420
    checkflag 0x1216
    if 0x1 goto 0x8730488
    showsprite 0xA
    applymovement 0xA 0x873048B
    applymovement MOVE_PLAYER 0x873048F
    waitmovement 0x0
    msgbox 0x87304A1 MSG_KEEPOPEN '"Oh!\nSorry, I didn't see you there..."
    fanfare 0x100
    special 0x0
    waitfanfare
    closeonkeypress
    trainerbattle 0x1 0x2 0x500 0x873051E 0x8730548 0x8730461
    end

    '---------------
    #org 0x730488
    release
    end

    '---------------
    #org 0x730461
    msgbox 0x8730560 MSG_NORMAL '"By the way, I'm Brendan!\nThat bat..."
    applymovement 0xA 0x8730493
    applymovement MOVE_PLAYER 0x873049E
    waitmovement 0x0
    hidesprite 0xA
    setflag 0x1216
    setvar 0x5000 0x1
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x7304A1
    = Oh!\nSorry, I didn't see you there!\lHey, you seem like a capable\ltrainer...\lHow about we battle? Don't worry\lI'll heal you.

    #org 0x73051E
    = Now that I've healed you,\nlet's battle!

    #org 0x730548
    = Wow! You're powerful!

    #org 0x730560
    = By the way, I'm Brendan!\nThat battle really had me going!\lI seriously think you have loads\lof potential. I hope I can see you\lagain.\lSee ya!


    '-----------
    ' Movements
    '-----------
    #org 0x73048B
    #raw 0x10 'Step Down (Normal)
    #raw 0x62 'Exclamation Mark (!)
    #raw 0xFE 'End of Movements

    #org 0x73048F
    #raw 0x10 'Step Down (Normal)
    #raw 0x1 'Face Up
    #raw 0xFE 'End of Movements

    #org 0x730493
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (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 0xFE 'End of Movements

    #org 0x73049E
    #raw 0x2 'Face Left
    #raw 0xFE 'End of Movements


    Also the rom uses the Jambo Trainer Mugshot Hack so that is why the 3rd trainerbattle value is 0x500

    Anyway, the problem is that, I placed it in Viridian City in front of the Pokemon Centre. I open the game, and I try to walk into Viridian, but the game restarts. If someone could help explain why this is, this would help a lot.

    Also the script box only has the Var Number filled in which is 5000
    __________________
    3DS Friend Code: 5069-3944-3902
    IGN: Peter; (X, Y, OR, AS, M)
    Friend Safari: (Fighting) Throh, Meditite, Breloom
    Living Pokedex Complete: LG, E, Pl, B, B2, Y, OR, M
    Big thanks especially to DestinedJagold, Xerneas_X, Elements1 and ~RNC~

    PM me if you want to trade, or add my FC.