View Single Post
  #7354    
Old October 8th, 2012 (7:51 AM).
awipe1's Avatar
awipe1 awipe1 is offline
     
    Join Date: Aug 2012
    Gender: Male
    Posts: 215
    I wrote a script and the nicknaming part does not work, anyone know why? What happens is you say yes to nicknaming, the screen shows up but in the top left corner instead of there being a picture of charmander, there is a picture of an egg and when you enter a nickname, nothing happens, the name is still charmander, he is the script.
    Spoiler:

    #dynamic 0x800000

    #org @main
    lock
    faceplayer
    checkflag 0x1002
    if 0x1 goto @takecare2
    checkflag 0x1001
    if 0x1 goto @didyou
    trainerbattle 0x1 0x6 0x0 @talk1 @talk2 @afterbattle
    end

    #org @afterbattle
    msgbox @talk3 MSG_KEEPOPEN
    closeonkeypress
    setflag 0x1001
    compare LASTRESULT 0x1
    if 0x1 goto @yes
    msgbox @no MSG_NORMAL
    release
    end

    #org @yes
    givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
    setflag 0x1002
    fanfare 0x13E
    msgbox @Char MSG_KEEPOPEN
    waitfanfare
    closeonkeypress
    msgbox @nick MSG_YESNO
    compare LASTRESULT 0x1
    if 0x1 gosub @nickyes
    msgbox @Takecare MSG_NORMAL
    release
    end

    #org @nickyes
    call 0x1A74EB
    return

    #org @didyou
    msgbox @haveyou MSG_YESNO
    compare LASTRESULT 0x1
    if 0x1 goto @yes
    msgbox @no MSG_NORMAL
    release
    end

    #org @takecare2
    msgbox @howis MSG_NORMAL
    release
    end

    #org @talk1
    = Hey Kid!\nDid you beat all my friends?\pHmmm guess you are here for\nthe prize, am I right?\pwell I will not give it\nup so easy!\pProve yourself\nto me first!

    #org @talk2
    = Wow!!!\nNo one has beat me before!!!\pMy prize to you is my\nweakest pokemon!\pMy Charmander!

    #org @Talk3
    = That was a great battle!\nNo one has ever beat'n me before!\pI never liked my Charmander.\nMaybe he will be happier with you!\pSo, do you want my Charmander or not?

    #org @no
    = Oh okay. Talk to me if you change\nyour mind!

    #org @Char
    = You received a Charmander!

    #org @nick
    = Do you want to give a nickname to\nthis Charmander?

    #org @takecare
    = Take good care of my Charmander!

    #org @howis
    = How is my Charmander doing?

    #org @haveyou
    = Have you changed your mind about\nCharmander?