Thread: [Tutorial] Advanced Scripting Tutorial
View Single Post
  #119    
Old February 22nd, 2007 (10:00 AM).
D-Trogh's Avatar
D-Trogh D-Trogh is offline
Dead
     
    Join Date: Jul 2005
    Location: Belgium
    Age: 25
    Gender: Male
    Posts: 438
    Send a message via Windows Live Messenger to D-Trogh
    Ok, I've made my second script ! [Spoiler!!]
    But, it doesn't work :\
    (I use PokéScript, so it's written for PokéScript...)
    RED » What goes wrong/Doesn't work..
    BLUE » This is done every time instead of doing the good thing..
    Spoiler:
    #org $Test
    lock
    faceplayer
    checkflag 0x10A
    IfTrue $Item
    msgbox $1st
    callstd 0x6
    applymovement 0x1 $personmove
    applymovement 0xFF $playermove
    pause 0x10
    applymovement 0x1 $personmove2
    pause 0x10

    setflag 0x10A
    release
    end

    #org $1st
    = Piss off !

    #org $personmove
    #raw 0xA
    #raw 0xFE

    #org $playermove
    #raw 0xE
    #raw 0xFE

    #org $personmove2
    #raw 0xB
    #raw 0xFE


    #org $Item
    lock
    faceplayer
    checkflag 0x10B
    IfTrue $LMA
    msgbox $here
    callstd 0x5
    IfTrue $receive 'It never goes to $receive
    msgbox $NO
    callstd 0x6
    clearflag 0x10A
    goto $Test
    release
    end

    #org $here
    = Will you leave me alone when I give\nyou this ?

    #org $NO
    = You won't huh ?!


    #org $receive
    lock
    faceplayer
    msgbox $hereitem
    callstd 0x6
    giveitem 0xD 0x1
    setflag 0x10B
    release
    end

    #org $hereitem
    = Take it and beat it !

    #org $LMA
    lock
    faceplayer
    msgbox $LMalone
    callstd 0x6
    release
    end

    #org $LMalone
    = L.E.A.V.E M.E. A.L.O.N.E. !!!\nGot the message ?!


    I think it's wierd the 'IfTrue $receive' doesn't work, because the 'checkflag 0x10A ; IfTrue $Item' does !!

    BTW:
    This thread is becoming a 'Script-Debug-Help-Me-WHAAH-Thread' if you know what I mean..
    I asked Scizz already to open such a thread next to the 'Simple Questions' one.. but -meh-
    __________________
    [NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]