View Single Post
  #1310    
Old June 9th, 2009 (3:05 PM).
mrhiyuck's Avatar
mrhiyuck mrhiyuck is offline
//
     
    Join Date: Sep 2007
    Posts: 29
    Spoiler:
    Code:
    '---------------
    #dynamic 0x800000
    #org 0xE3D134
    lock
    faceplayer
    checkflag 0x939
    if 0x0 goto @noditto
    checkflag 0x941
    if 0x1 goto @done
    msgbox @1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @take
    msgbox @2 0x6
    release
    end
    
    #org @take
    checkitem 0x4 0x1
    if 0x0 goto @jerk
    removeitem 0x04 0x1
    hidesprite 0x4
    givepokemon 0x84 0xA 0xC3 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    waitfanfare
    closeonkeypress
    setflag 0x941
    msgbox @4 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name
    msgbox @5 0x6
    release
    end
    
    #org @noditto
    msgbox @7 0x6
    release
    end
    
    #org @jerk
    msgbox @8 0x6
    release
    end
    
    #org @name
    call 0x1A74EB
    return
    
    #org @done
    msgbox @6 0x6
    release
    end
    
    #org @1
    = Hello... could you tell me your\nname?\p[player]?\pWell [player], it seems that DITTO\nover there has taken a liking to\lyou.\pIt's had a stressful time here in\nthe lab, so I was hoping he could\lspend time outside with a Trainer.\pWould you take DITTO?
    
    #org @2
    = No? Well come back if you change\nyour mind.\pI feel sorry for the little guy.
    
    #org @3
    = You received a DITTO!
    
    #org @4
    = Would you like to give a\nnickname to DITTO?
    
    #org @5
    = Be a good owner to DITTO!\nBetter then we were...
    
    #org @6
    = Hey [player]! How's DITTO doing?
    
    #org @7
    = Wow... it's been so busy, and now\nit's calmed down.\pWe were running nonstop with\nexperiments to get the Dojo\lworking.\pThat DITTO was the POK\h1bMON\ninvolved in the experiment. I hope\lhe can rest now.
    
    #org @8
    = Oh? You don't seem to have a\nPOK\h1bBALL.\pDITTO's old one was here...\nAll we need is a regular POK\h1bBALL.\pCould you find one?


    This all works.. with a couple exceptions. Even without a pokeball, the checkitem doesn't seem to switch to "jerk". It does take a pokeball if you have one but if you don't it still continues without switching.

    Also hidesprite works, but when you move just one step, the sprite returns. Could someone help me with these?