View Single Post
  #134    
Old September 20th, 2008 (2:10 AM). Edited September 20th, 2008 by -DarK-.
-DarK- -DarK- is offline
Hold Your Colour
     
    Join Date: Jun 2007
    Location: Belgium
    Age: 24
    Gender: Male
    Nature: Brave
    Posts: 185
    EDIT2: I found it! Now I know why the checkflag/setflag didn't work for me!`

    Explanation: I never knew you had to insert the hex number you used for setflag in the PersonID thing in A-map, that's why it didn't work.

    Here's the final script:
    Code:
    #Dynamic 0x86981D
    
    #ORG @start
    checkflag 0x200
    if b_true goto @gone
    lock
    faceplayer
    msgbox @pokeball
    boxset 5
    compare LASTRESULT 0x1
    if b_true goto @yes
    else goto @no
    boxset 6
    release
    end
    
    #org @pokeball
    = This POKéBALL is lying on the\nground. Maybe someone left it\lbehind ...\lPick it up?
    
    #org @yes
    givepokemon 0x9B 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @cyndaquil
    boxset 6
    waitfanfare
    hidesprite 0x7
    setflag 0x200
    release
    end
    
    #org @no
    msgbox @untouched
    boxset 6
    release
    end
    
    #org @untouched
    = You leave the POKéBALL untouched.
    
    #org @cyndaquil
    = [player] received a CYNDAQUIL.
    
    #org @gone
    hidesprite 0x7
    end
    Yay!
    __________________