View Single Post
  #269    
Old January 15th, 2009 (5:44 AM).
Andryandrew Andryandrew is offline
Italian Asm Hacker
     
    Join Date: Mar 2007
    Age: 24
    Gender:
    Nature: Timid
    Posts: 117
    Quote:
    Originally Posted by .Phones View Post
    Game: Fire red
    Type: Trigger
    Editor: XSE
    Script:
    Spoiler:

    #dynamic 0x7266B8

    #org @start
    checkflag 0x1007
    if 0x1 goto @done
    lockall
    special 0x113
    applymovement 0x7F @move
    waitmovement 0x0
    special 0x114
    releaseall
    msgbox @text
    boxset 0x6
    applymovement 0x4 @move2
    waitmovement 0x0
    lockall
    special 0x113
    applymovement 0x7F @move3
    waitmovement 0x0
    special 0x114
    releaseall
    msgbox @text2
    boxset 0x6
    applymovement 0xFF @move4
    waitmovement 0x0
    givepokemon 0x17E 0x5 0x8B 0x0 0x0 0x0
    msgbox @text3
    boxset 0x6
    applymovement 0xFF @move10
    waitmovement 0x0
    applymovement 0x4 @move5
    waitmovement 0x0
    trainerbattle 0x0 0x188 0x0 @before @after
    msgbox @beaten
    boxset 0x6
    applymovement 0x5 @move6
    applymovement 0x3 @move7
    waitmovement 0x0
    applymovement 0x4 @move9
    waitmovement 0x0
    msgbox @beaten2
    boxset 0x6
    applymovement 0x4 @move8
    waitmovement 0x0
    msgbox @texty
    boxset 0x6
    setflag 0x1007
    end

    #org @move
    #raw 0x13 0x13 0x13 0x13 0x13 0xFE

    #org @text
    = \c\h01\h08Boy: What are you doing with the\nprofessor's pokemon!?\p????: None of your business, kid!

    #org @move2
    #raw 0x62 0x02

    #org @move3
    #raw 0x12 0x12 0x12 0x12 0x12 0xFE

    #org @text2
    = \c\h01\h08Boy: Hey you!\nTake the pokemon from my bag and help\l me out!

    #org @move4
    #raw 0x13 0x13 0x10 0x13 0x10 0x13 0x13 0xFE

    #org @text3
    = You got an \c\h01\h05Aron!

    #org @move10
    #raw 0x11 0x13 0x13 0xFE

    #org @move5
    #raw 0x03 0xFE

    #org @before
    = Let's do this!

    #org @after
    = Let's get out of here!

    #org @beaten
    = We failed....

    #org @move6
    #raw 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE

    #org @move7
    #raw 0x13 0x13 0x13 0x13 0x11 0x11 0x11 0xFE

    #org @move9
    #raw 0x00 0xFE

    #org @beaten2
    = \c\h01\h08Boy: Thanks for helping me,\nmy name is \c\h01\h06Damion.\c\h01\h08\lKeep the pokemon you found in the\lbag,\lits grown accustomed to you,\lI'll be following those two crooks,\lhelp if you would like.

    #org @move8
    #raw 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE

    #org @texty
    = \c\h01\h02\v\h01\: Maybe I will.....

    #org @done
    release
    end

    the problem is, the second camera movement moves the person id 004, and the after battle parts won't work.
    (I realize I'm in over my head xD)
    the parts after the battle doesn't work because after a battle the script finish. you have to add a pointer in the battle command with the pointer of the continuation:
    Quote:
    #dynamic 0x7266B8

    #org @start
    checkflag 0x1007
    if 0x1 goto @done
    lockall
    special 0x113
    applymovement 0x7F @move
    waitmovement 0x0
    special 0x114
    releaseall
    msgbox @text
    boxset 0x6
    applymovement 0x4 @move2
    waitmovement 0x0
    lockall
    special 0x113
    applymovement 0x7F @move3
    waitmovement 0x0
    special 0x114
    releaseall
    msgbox @text2
    boxset 0x6
    applymovement 0xFF @move4
    waitmovement 0x0
    givepokemon 0x17E 0x5 0x8B 0x0 0x0 0x0
    msgbox @text3
    boxset 0x6
    applymovement 0xFF @move10
    waitmovement 0x0
    applymovement 0x4 @move5
    waitmovement 0x0
    trainerbattle 0x0 0x188 0x0 @before @after @start2

    #org @start2
    msgbox @beaten
    boxset 0x6
    applymovement 0x5 @move6
    applymovement 0x3 @move7
    waitmovement 0x0
    applymovement 0x4 @move9
    waitmovement 0x0
    msgbox @beaten2
    boxset 0x6
    applymovement 0x4 @move8
    waitmovement 0x0
    msgbox @texty
    boxset 0x6
    setflag 0x1007
    end

    #org @move
    #raw 0x13 0x13 0x13 0x13 0x13 0xFE

    #org @text
    = \c\h01\h08Boy: What are you doing with the\nprofessor's pokemon!?\p????: None of your business, kid!

    #org @move2
    #raw 0x62 0x02

    #org @move3
    #raw 0x12 0x12 0x12 0x12 0x12 0xFE

    #org @text2
    = \c\h01\h08Boy: Hey you!\nTake the pokemon from my bag and help\l me out!

    #org @move4
    #raw 0x13 0x13 0x10 0x13 0x10 0x13 0x13 0xFE

    #org @text3
    = You got an \c\h01\h05Aron!

    #org @move10
    #raw 0x11 0x13 0x13 0xFE

    #org @move5
    #raw 0x03 0xFE

    #org @before
    = Let's do this!

    #org @after
    = Let's get out of here!

    #org @beaten
    = We failed....

    #org @move6
    #raw 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE

    #org @move7
    #raw 0x13 0x13 0x13 0x13 0x11 0x11 0x11 0xFE

    #org @move9
    #raw 0x00 0xFE

    #org @beaten2
    = \c\h01\h08Boy: Thanks for helping me,\nmy name is \c\h01\h06Damion.\c\h01\h08\lKeep the pokemon you found in the\lbag,\lits grown accustomed to you,\lI'll be following those two crooks,\lhelp if you would like.

    #org @move8
    #raw 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE

    #org @texty
    = \c\h01\h02\v\h01\: Maybe I will.....

    #org @done
    release
    end
    I don't know why the second move camera script doesn't work... It seems correct
    __________________

    Sorry for my bad English... I'm Italian
    Anybody that is a GBA ASM hacker is cool!
    I'm a GBA ASM hacker --> I'm cool :D

    Made Day-Night Routine! You can find the thread HERE