View Single Post
  #2594    
Old December 5th, 2009 (5:51 PM). Edited December 5th, 2009 by Aether Noir.
Aether Noir's Avatar
Aether Noir Aether Noir is offline
<(^.^<) (>^.^)>
     
    Join Date: Feb 2009
    Posts: 9
    Arghhhh, I've been trying this over and over and can't find a solution on my own, so here goes.

    I'm trying to give a mantine, and then hide the sprite that gave it to you, but the sprite never shows up at all. Here's what I've got, and keep in mind this is my VERY FIRST non pure-speech script ever.

    I'm using XSE, on FireRed and the general goal of this script is to give a pokemon, and have the pokeball sprite go away forever.

    Decompiled:
    Spoiler:
    #dynamic 0x2000

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @done
    checkflag 0x828
    if 0x1 goto @done
    msgbox @1 0x5
    compare LASTRESULT 0x1
    if 0x0 goto @stop
    if 0x1 call @name
    checkflag 0x20
    if 0x1 goto @hide

    #org @name
    givepokemon 0xE2 0x5 0x0 0x0 0x0 0x0
    msgbox @6 0x6
    compare LASTRESULT 0x1
    if 0x0 goto @hide
    call 0x1A74EB
    msgbox @3 0x6
    fanfare 0x13E
    waitfanfare
    setflag 0x20
    return

    #org @stop
    msgbox @2 0x6
    release
    end

    #org @hide
    hidesprite 0x92
    call @done

    #org @done
    msgbox @5 0x6
    release
    end

    #org @1
    = There's a Mantine that was saved\l from Aether Bay here,\l do you want it?

    #org @2
    = Well, it'll stay here if you\lchange your mind.

    #org @3
    = [black_fr]Obtained a Mantine!

    #org @4
    = It is in good shape,\l considering it was just\l rescued after a storm.

    #org @5
    = The place where you\l got the rescued Mantine!

    #org @6
    = [black_fr]Would you like to give a\nnickname to Mantine?


    Compiled:
    Spoiler:
    '---------------
    #org 0x34F023
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto 0x834F0A6
    checkflag 0x828
    if 0x1 goto 0x834F0A6
    msgbox 0x834F0B1 MSG_YESNO '"There's a Mantine that was saved\l..."
    compare LASTRESULT 0x1
    if 0x0 goto 0x834F092
    if 0x1 call 0x834F05A
    checkflag 0x92
    if 0x1 goto 0x834F09D
    '---------------
    #org 0x34F0A6
    msgbox 0x83526F0 MSG_NORMAL '"The place where you\l got the resc..."
    release
    end

    '---------------
    #org 0x34F092
    msgbox 0x834F0FC MSG_NORMAL '"Well, it'll stay here if you\pchan..."
    release
    end

    '---------------
    #org 0x34F05A
    givepokemon 0xE2 0x5 0x0 0x0 0x0 0x0
    msgbox 0x8352720 MSG_NORMAL '"[black_fr]Would you like to give a..."
    compare LASTRESULT 0x1
    if 0x0 goto 0x834F09D
    call 0x81A74EB
    msgbox 0x834F12D MSG_NORMAL '"[black_fr]Obtained a Mantine!"
    fanfare 0x13E
    waitfanfare
    setflag 0x92
    return

    '---------------
    #org 0x34F09D
    hidesprite 0x92
    call 0x834F0A6
    '---------------
    #org 0x1A74EB
    fadescreen 0x1
    special 0x9E
    waitstate
    return


    '---------
    ' Strings
    '---------
    #org 0x34F0B1
    = There's a Mantine that was saved\l from Aether Bay here,\l do you want it?

    #org 0x3526F0
    = The place where you\l got the rescued Mantine!

    #org 0x34F0FC
    = Well, it'll stay here if you\pchange your mind.

    #org 0x352720
    = [black_fr]Would you like to give a\nnickname to Mantine?

    #org 0x34F12D
    = [black_fr]Obtained a Mantine!
    __________________
    Currently at the drawing board for my first hack, Wally's Legacy.