• 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.

[Script✓] Setting the Nature of a created pokemon (CFRU)

  • 118
    Posts
    5
    Years
    Hi, everybody!

    So, the problem that I'm having is that I can't find a way to set the nature of a pokemon, something which is vital to the hack that I'm working on. No scripting tutorial seems to mention it and I can't find any hacks that support it. The closest I've gotten is finding the GIVEPOKEMON_CUSTOM_HACK in CFRU, but I can't get it to work. Here's the example code I'm using to test this:

    '---------------
    #org 0x800000
    setflag 0x829
    setflag 0x82F
    special 0x16F
    checkflag 0x828
    if 0x1 goto 0x88000B3
    msgbox 0x88000BE MSG_YESNO '"Hello.\nSorry to trouble you.\nI c..."
    compare LASTRESULT 0x1
    if 0x1 goto 0x8800033
    msgbox 0x8800121 MSG_NORMAL '"That's okay.\pI'm sure someone els..."
    release
    end

    '---------------
    #org 0x8000B3
    msgbox 0x88001CC MSG_NORMAL '"Are you taking good care\nof Charm..."
    release
    end

    '---------------
    #org 0x800033
    setvar 0x8000 0xFFFF
    setvar 0x8001 0xFFFF
    setvar 0x8002 0xFFFF
    setvar 0x8003 0xFFFF
    setvar 0x8004 0x5
    setvar 0x8005 0x1
    setvar 0x8006 0x1E
    setvar 0x8007 0x1E
    setvar 0x8008 0x1E
    setvar 0x8009 0x1E
    setvar 0x800A 0x1E
    setvar 0x800B 0x1E
    givepokemon 0x26C 0x50 0x0 0x0 0x1 0x0
    fanfare 0x13E
    msgbox 0x8800154 MSG_KEEPOPEN '"[black_fr]You received a Charmande..."
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox 0x8800174 MSG_YESNO '"[black_fr]Would you like to give a..."
    compare LASTRESULT 0x1
    if 0x1 call 0x88000AC
    msgbox 0x88001AA MSG_NORMAL '"Please take care of\nCharmander."
    release
    end

    '---------------
    #org 0x8000AC
    call 0x81A74EB
    return

    '---------------
    #org 0x1A74EB
    fadescreen 0x1
    special 0x9E
    waitstate
    return


    '---------
    ' Strings
    '---------
    #org 0x8000BE
    = Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?

    #org 0x800121
    = That's okay.\pI'm sure someone else will\ntake it.

    #org 0x8001CC
    = Are you taking good care\nof Charmander?

    #org 0x800154
    = [black_fr]You received a Charmander!

    #org 0x800174
    = [black_fr]Would you like to give a\nnickname to Charmander?

    #org 0x8001AA
    = Please take care of\nCharmander.


    The Archeops should be shiny and have the same nature every time, but it doesn't. If anybody knows how to fix this or knows of any other way to change a pokemon's nature, please let me know.
    Thanks!
     
    Last edited:
    Back
    Top