Thread: [Tutorial] PKSV Extra Scripting Tutorials
View Single Post
  #25    
Old September 12th, 2013 (9:50 AM).
graphicsturtle123's Avatar
graphicsturtle123 graphicsturtle123 is offline
     
    Join Date: Sep 2013
    Gender: Female
    Posts: 6
    This is what my script should be:

    Quote:
    #dyn 0x740002

    #org @start
    lock
    faceplayer
    msgbox @text ' ????: So, Whatdaya say? /pWant this rare POK\eMON or not?
    callstd MSG_YESNO
    if true jump @givetorchic
    if false jump @no
    end

    #org @givetorchic
    checkflag 0x250
    if 0x1 jump :end
    setflag FR_POKEMON
    addpokemon TORCHIC 0x5 NONE 0 0 0
    setflag 0x250
    storepokemon 0 TORCHIC
    message @get-msg
    fanfare 0x101
    showmsg
    waitfanfare
    waitbutton
    message @yes
    :end
    release
    end


    #org @no
    message @no
    release
    end

    #org @noroom-msg
    = You don't have enough room in your party.

    #org @get-msg
    = You got a \v\h02!

    #org @speech
    = ????: So, Whatdaya say? /pWant this rare POK\eMON or not?

    #org @yes
    = ????: I picked this POK\eMON up in /pHOENN[.] Don't worry I didn't /nsteal it[.]/p Maybe I'll see you around[.]

    #org @no
    = ????: Hmph[.] /pYou do know you're missing out /non the opportunity of a lifetime?
    But when I open it on advance map it looks like this:
    Quote:
    #org 0x8740002
    '-----------------------------------
    checkflag 0x250
    if true jump 0x874003B ' Flag is set
    setflag FR_POKEMON
    countpokemon
    compare LASTRESULT 0x6
    if == jump 0x874003D ' Equal To
    addpokemon TORCHIC 5 NONE 0x0 0x0 0x0
    setflag 0x250
    storepokemon 0x0 TORCHIC
    message 0x8740071 ' You got a \v\h02!
    fanfare 0x101
    showmsg
    waitfanfare
    waitbutton
    release
    end

    #org 0x874003B
    '-----------------------------------
    release
    end

    #org 0x874003D
    '-----------------------------------
    msgbox 0x8740047 ' You don't have enoug...
    callstd MSG_NOCLOSE ' Non-closing message
    release
    ' Release commands close any open messages
    end


    #org 0x8740071
    = You got a \v\h02!

    #org 0x8740047
    = You don't have enough room in your party.
    What is wrong?
    Please help...
    Reply With Quote