View Single Post
  #253    
Old January 12th, 2009 (10:16 PM).
The Abyss The Abyss is offline
     
    Join Date: Jul 2008
    Location: Sydney, Australia
    Age: 23
    Nature: Jolly
    Posts: 162
    I can't get this to work. It's my first try at a level script.
    Spoiler:
    #dynamic 0x2DDB4C

    #org @start
    checkflag 0x1000
    if 0x0 goto @show
    if 0x1 goto @done
    release
    end

    #org @show
    lock
    showsprite 0x1000
    applymovement 0x1000 @walk
    waitmovement 0x1000
    msgbox @pokemon 0x6
    givepokemon 0x17E 0x5 0x8B 0x0 0x0 0x0
    setflag 0x828
    fanfare 0x13E
    waitfanfare
    msgbox @got 0x6
    applymovement 0x1000 @walkaway
    setvar 0x4033 0x1
    setflag 0x1000
    release
    end

    #org @walk
    #raw 0x60 0x0D 0x0F 0x0F 0x0F 0x0F 0x0F 0x01 0xFE

    #org @pokemon
    = [blue_fr]Warren: Ah, [player].\nYour mother had invited\n me over to talk about\nyou getting you a Pokemon!\nI have brought one for\n you to save you the hassle\n of catching one yourself.\nHere you go.

    #org @got
    = [red_fr] [player] recieved Aron!

    #org @walkaway
    #raw 0x0C 0x0C 0x0C 0x0C 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0C 0x60 0xFE

    #org @done
    release
    end


    I've got the persons ID at 1000. I made it Script type 2 in the A-Map header. Flag is 4033, value is 0000, the script offset is in offset 2. The script is supposed to happen when you walk down the stairs into the first floor of your house but it restarts the game if you enter the stairs.
    __________________