View Single Post
Old June 9th, 2009 (7:00 AM).
Quickster's Avatar
Quickster Quickster is offline
Dream or Drop?
    Join Date: Oct 2007
    Gender: Male
    Nature: Quiet
    Posts: 351
    Originally Posted by Gamer2020 View Post
    Hey guys. I have a problem.
    Basically I wrote a script so that when the player steps on a certain spot a sprites goes up to him and battles him.
    It works up until after the battle where it just plain goes sour.
    Ive attached a small video to show you what happens.

    This is the script
    #dynamic 800000

    #org @start
    checkflag 0x1005
    if 0x1 call @done
    call @pre
    applymovement 0x01 @move1
    waitmovement 0x0
    sethealingplace 0x6
    setflag 0x1005
    trainerbattle 0x1 0x237 0x0 @before @after @run

    #org @pre
    applymovement 0x01 @move3
    msgbox @stuff 0x2

    #org @run
    msgbox @text 0x2
    applymovement 0x01 @move2
    waitmovement 0x0
    hidesprite 0x01
    setflag 0x1005

    #org @done

    #org @move1
    #raw 0x56
    #raw 0x09
    #raw 0x0A
    #raw 0x02
    #raw 0xFE

    #org @move2
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0xFE

    #org @move3
    #raw 0x00
    #raw 0xFE

    #org @before
    = How much did you hear?

    #org @after
    = Didn't think you'd be that strong.

    #org @text
    = Bye now!

    #org @stuff
    = They're are Whirlpools blocking\nthe entrances sir.

    This is the amap stuff for the sprite

    and this is the amap stuff for the script tile.

    I think I am just overlooking something so please if you know what I did wrong please tell me.

    Im not sure,but you might need a waitmovment in the #org @pre
    also the number should be 0003 and 4050 on a green script tile.
    I laugh looking at this.

    But sometimes I want to come back to it...