View Single Post
  #1325    
Old June 9th, 2009 (9:18 PM).
Xatoku's Avatar
Xatoku Xatoku is offline
Game Developer
     
    Join Date: Feb 2009
    Location: Canada
    Gender: Male
    Posts: 451
    I've asked this before but nobody's answered so here it is again,

    In this script everything works 100% except that after the trainerbattle, sprite 0x5 on the screen changes colour. Could somebody tell me the proper settings I should give the sprite?

    Spoiler:
    #dynamic 0x800000

    #org @start
    checkflag 0x368
    if 0x1 goto @end
    lockall
    msgbox @text1 0x6
    applymovement 0x4 @move1
    waitmovement 0x0
    applymovement 0x4 @move2
    waitmovement 0x0
    pause 0x25
    applymovement MOVE_PLAYER @move3
    waitmovement 0x0
    hidesprite 0x4
    showsprite 0x6
    msgbox @text2 0x6
    applymovement MOVE_PLAYER @move4
    waitmovement 0x0
    givepokemon 0x9E 0x5 0x0 0x0 0x0 0x0
    hidesprite 0x2
    fanfare 0x13E
    msgbox @text3 0x4
    waitfanfare
    closeonkeypress
    playsong 0x13B 0x0
    msgbox @text4 0x6
    showsprite 0x5
    applymovement MOVE_PLAYER @move1
    waitmovement 0x0
    applymovement MOVE_PLAYER @move7
    waitmovement 0x0
    applymovement 0x5 @move5
    waitmovement 0x0
    msgbox @text5 0x6
    applymovement 0x5 @move8
    waitmovement 0x0
    hidesprite 0x3
    pause 0x10
    applymovement 0x5 @move9
    waitmovement 0x0
    setvar 0x7030 0x129
    setvar 0x7033 0x158
    trainerbattle 0x9 0x2E5 0x0 @before @no
    setvar 0x7030 0x158
    setvar 0x7033 0x129
    applymovement MOVE_PLAYER @move6
    waitmovement 0x0
    msgbox @text6 0x6
    setflag 0x368
    releaseall
    warp 0x3 0x1 0x2 0x0 0x0
    end

    #org @end
    releaseall
    end

    #org @text1
    = [red_fr][Player]:[black_fr] Hey you!

    #org @text2
    = [red_fr][Player]:[black_fr] That takes care of him.\nNow for Totodile.

    #org @text3
    = [red_fr][Player][black_fr] stole the [navyblue_fr]Totodile.[black_fr]

    #org @text4
    = ???: Hey, you can't take that!

    #org @text5
    = [orange_fr]Gold:[black_fr] My names Gold, and you're\nthe thief who stole my backpack!\p[red_fr][Player]:[black_fr] What backpack?\p[orange_fr]Gold:[black_fr] Don't act like you don't\nknow!\p[orange_fr]Gold:[black_fr] You'll pay for what you did!

    #org @before
    = [orange_fr]Gold:[black_fr] Here goes!

    #org @no
    = Argh, he's strong!

    #org @text6
    = [orange_fr]Gold:[black_fr] You won't get away with this!

    #org @move1
    #raw 0x62
    #raw 0xFE

    #org @move2
    #raw 0x03
    #raw 0xFE

    #org @move3
    #raw 0x50
    #raw 0x51
    #raw 0x02
    #raw 0xFE

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

    #org @move5
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1E
    #raw 0xFE

    #org @move6
    #raw 0x15
    #raw 0x15
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x01
    #raw 0xFE

    #org @move7
    #raw 0x00
    #raw 0xFE

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

    #org @move9
    #raw 0x10
    #raw 0x12
    #raw 0x01
    #raw 0xFE