View Single Post
  #7420    
Old November 7th, 2012 (3:10 PM).
itman itman is offline
Back to ROM hacking. :D
     
    Join Date: May 2007
    Age: 23
    Nature: Adamant
    Posts: 100
    Quote:
    Originally Posted by crystalmole View Post
    Ok so I tried doing that and came up with this script.
    Spoiler:
    #dynamic 0x800000
    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @done
    applymovement 0x4 @move
    waitmovement 0x4
    msgbox @1 0x6
    applymovement 0x4 @move2
    waitmovement 0x4
    release
    end

    #org @done
    msgbox @2 0x6
    release
    end

    #org @1
    = Wait! You cant go out\pWithout a Pokemon!

    #org @2
    = Yay!

    #org @move
    #raw 0x62
    #raw 0x0
    #raw 0x10

    #org @move2
    #raw 0x1
    #raw 0x11



    It made the game freeze as soon as I stepped on the tile :(
    Do you know what I did wrong?
    Try it now.

    Spoiler:
    #dynamic 0x800000
    #org @start
    faceplayer
    checkflag 0x828
    if 0x1 goto @done
    applymovement 0x4 @move
    waitmovement 0x0
    msgbox @1 0x6
    applymovement 0x4 @move2
    waitmovement 0x0
    release
    end

    #org @done
    msgbox @2 0x6
    release
    end

    #org @1
    = Wait! You cant go out\pWithout a Pokemon!

    #org @2
    = Yay!

    #org @move
    #raw 0x62
    #raw 0x0
    #raw 0x10
    #raw 0xFE

    #org @move2
    #raw 0x1
    #raw 0x11
    #raw 0xFE


    You can't put "lock" in a trigger script: it'll lock everything.
    Also, at the end of your movements, you need to put "#raw 0xFE"

    Lastly, just use "waitmovement 0x0", it's the "perfect pause".

    Also in A-map, you need to set a variable and an unknown.
    So set the first unknown to 0003 and teh first variable to 4052 (it can be anything really, but that's just what I use).