• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] WHATS WRONG WITH MY SCRIPT?

  • 57
    Posts
    10
    Years
    • Seen Jul 11, 2014
    Please help me

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    checkflag 0x801
    if 0x1 goto @give
    msgbox @givepokemon 0x6
    if 0x0 goto @set
    release
    end

    #org @give
    givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @received 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @Nickname
    compare LASTRESULT 0x1
    if 0x1 call @name
    msgbox @Takegoodcare 0x6
    release
    end

    #org @set
    setflag 0x801
    msgbox @what 0x6
    release
    end

    #org @name
    call 0x1A74EB
    return

    #org @givepokemon
    = Hi! [player]! I have a pokemon\nhere!

    #org @What
    = What? You dont have yet pokemon\nmenu?

    #org @received
    = Thats your starter pokemon! An\nEEVEE!

    #org @Nickname
    = You know its fun to give your\npokemon a nickname! Would you like\lto give anickname on your new\lEEVEE?

    #org @Takegoodcare
    = When I was young! I met a strange\ntrainer and he said that I must\ltake good care on that Pokemon, I\lnever knew that Ill give it to a\lspecial trainer!

    whats wrong with that?
     
    Please help me

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    checkflag 0x801
    if 0x1 goto @give
    if 0x0 goto @set
    release
    end

    #org @give
    givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @received 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @Nickname
    compare LASTRESULT 0x1
    if 0x1 call @name
    msgbox @Takegoodcare 0x6
    release
    end

    #org @set
    setflag 0x801
    msgbox @what 0x6
    checkflag 0x801
    if 0x1 goto @give
    release
    end

    #org @name
    call 0x1A74EB
    return

    #org @givepokemon
    = Hi! [player]! I have a pokemon\nhere!

    #org @What
    = What? You dont have yet pokemon\nmenu?

    #org @received
    = Thats your starter pokemon! An\nEEVEE!

    #org @Nickname
    = You know its fun to give your\npokemon a nickname! Would you like\lto give anickname on your new\lEEVEE?

    #org @Takegoodcare
    = When I was young! I met a strange\ntrainer and he said that I must\ltake good care on that Pokemon, I\lnever knew that Ill give it to a\lspecial trainer!

    whats wrong with that?


    Updated your script in the quote
     
    I just did -.- it should work

    True? If that so, how did you put that? and what happened? Does the script gave you an eevee and st your pokemon menu?

    Could you give a brief description of what exactly the script is trying to do? I have a feeling you're including unnecessary parts. Is this meant to be the first time the player gets a Pokémon?

    yah! ^_^ that's the quick starter....
     
    Last edited by a moderator:
    You're really not being clear as to what you want this script to do, but I'm going to take a wild guess and assume you just want to check if the player has a Pokémon or not, and if they don't to give them a Pokémon and activate the Pokémon menu:

    Code:
    #dynamic 0x800000
    #include stditems.rbh
    #include stdpoke.rbh
    
    '---------------
    #org @start
    lock
    faceplayer
    checkflag 0x200
    if 0x0 goto @snippet1
    msgbox @string1 MSG_NORMAL '"What? You dont have yet pokemon\nm..."
    release
    end
    
    '---------------
    #org @snippet1
    msgbox @string2 MSG_NORMAL '"Hi! [player]! I have a pokemon\nhe..."
    givepokemon PKMN_EEVEE 0x5 ITEM_NONE 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @string3 MSG_KEEPOPEN '"Thats your starter pokemon! An\nEE..."
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @string4 MSG_YESNO '"You know its fun to give your\npok..."
    compare LASTRESULT 0x1
    if 0x1 call @snippet2
    msgbox @string5 MSG_NORMAL '"When I was young! I met a strange\..."
    setflag 0x200
    release
    end
    
    '---------------
    #org @snippet2
    call @snippet3
    return
    
    '---------------
    #org @snippet3
    fadescreen 0x1
    special 0x9E
    waitstate
    return
    
    
    '---------
    ' Strings
    '---------
    #org @string1
    = What? You dont have yet pokemon\nmenu?
    
    #org @string2
    = Hi! [player]! I have a pokemon\nhere!
    
    #org @string3
    = Thats your starter pokemon! An\nEEVEE!
    
    #org @string4
    = You know its fun to give your\npokemon a nickname! Would you like\lto give anickname on your new\lEEVEE?
    
    #org @string5
    = When I was young! I met a strange\ntrainer and he said that I must\ltake good care on that Pokemon, I\lnever knew that Ill give it to a\lspecial trainer!

    Note that, as it is, @string1 makes no sense at all: I suggest rewording it to be more like "Hi [player]! How is that EEVEE faring you?" or something.
     
    Back
    Top