• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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✓] Script for the Magikarp dude

  • 290
    Posts
    11
    Years
    Can you change this so the man will give a Feebas?

    Code:
    '---------------
    #org 0x16F75F
    lock
    faceplayer
    checkflag 0x249
    if 0x1 goto 0x816F8A2
    showmoney 0x0 0x0 0x0
    checkgender
    compare 0x800D 0x0
    if 0x1 goto 0x816F786
    compare 0x800D 0x1
    if 0x1 goto 0x816F794
    end
    
    '---------------
    #org 0x16F8A2
    msgbox 0x819DC9A 0x4 '"MAN: Well, I don't give refunds.\n..."
    release
    end
    
    '---------------
    #org 0x16F786
    msgbox 0x819DA9A 0x5 '"MAN: Hello there, laddie!\nHave I ..."
    goto 0x816F7A2
    
    '---------------
    #org 0x16F794
    msgbox 0x819DB34 0x5 '"MAN: Hello there, sweetie pie!\nHa..."
    goto 0x816F7A2
    
    '---------------
    #org 0x16F7A2
    compare 0x800D 0x0
    if 0x1 goto 0x816F888
    checkmoney 0x1F4 0x0
    compare 0x800D 0x0
    if 0x1 goto 0x816F895
    textcolor 0x3
    setvar 0x4001 0x81
    givepokemon 0x81 0x5 0x0 0x0 0x0 0x0
    compare 0x800D 0x0
    if 0x1 goto 0x816F7F6
    compare 0x800D 0x1
    if 0x1 goto 0x816F822
    compare 0x800D 0x2
    if 0x1 goto 0x816F8AC
    end
    
    '---------------
    #org 0x16F888
    msgbox 0x819DC07 0x4 '"No? You say no? I'm only doing thi..."
    hidemoney 0x0 0x0
    release
    end
    
    '---------------
    #org 0x16F895
    msgbox 0x819DC78 0x4 '"You'll need more money than that!"
    hidemoney 0x0 0x0
    release
    end
    
    '---------------
    #org 0x16F7F6
    call 0x816F86F
    msgbox 0x81A56A7 0x5 '"Do you want to give a nickname to\..."
    compare 0x800D 0x0
    if 0x1 goto 0x816F861
    call 0x81A8C27
    fadescreen 0x1
    hidemoney 0x0 0x0
    special 0x9E
    waitstate
    goto 0x816F86A
    
    '---------------
    #org 0x16F822
    call 0x816F86F
    msgbox 0x81A56A7 0x5 '"Do you want to give a nickname to\..."
    compare 0x800D 0x0
    if 0x1 goto 0x816F84B
    fadescreen 0x1
    hidemoney 0x0 0x0
    special 0x166
    waitstate
    lock
    faceplayer
    goto 0x816F856
    
    '---------------
    #org 0x16F8AC
    textcolor 0x0
    msgbox 0x819DC3E 0x4 '"There's no more room for any more\..."
    hidemoney 0x0 0x0
    release
    end
    
    '---------------
    #org 0x16F86F
    paymoney 0x1F4 0x0
    updatemoney 0x0 0x0 0x0
    fanfare 0x101
    preparemsg 0x819DBD3 '"[player] paid an outrageous [$]500..."
    waitmsg
    waitfanfare
    bufferpokemon 0x0 0x81
    return
    
    '---------------
    #org 0x16F861
    hidemoney 0x0 0x0
    goto 0x816F86A
    
    '---------------
    #org 0x1A8C27
    countpokemon
    subvar 0x800D 0x1
    copyvar 0x8004 0x800D
    return
    
    '---------------
    #org 0x16F86A
    setflag 0x249
    release
    end
    
    '---------------
    #org 0x16F84B
    call 0x81A8C3C
    goto 0x816F861
    
    '---------------
    #org 0x16F856
    call 0x81A8C3C
    goto 0x816F86A
    
    '---------------
    #org 0x1A8C3C
    bufferboxname 0x0 0x4037
    bufferpokemon 0x1 0x4001
    checkflag 0x834
    if 0x0 call 0x81A8C57
    checkflag 0x834
    if 0x1 call 0x81A8C82
    return
    
    '---------------
    #org 0x1A8C57
    special2 0x800D 0x165
    compare 0x800D 0x1
    if 0x1 goto 0x81A8C70
    msgbox 0x81A5CF1 0x4 '"[buffer2] was transferred to\nSome..."
    return
    
    '---------------
    #org 0x1A8C82
    special2 0x800D 0x165
    compare 0x800D 0x1
    if 0x1 goto 0x81A8C9B
    msgbox 0x81A5D31 0x4 '"[buffer2] was transferred to\nBILL..."
    return
    
    '---------------
    #org 0x1A8C70
    special2 0x800D 0x18A
    bufferboxname 0x2 0x800D
    msgbox 0x81A5D6E 0x4 '"BOX ["][buffer3]" on\nSomeone's PC..."
    return
    
    '---------------
    #org 0x1A8C9B
    special2 0x800D 0x18A
    bufferboxname 0x2 0x800D
    msgbox 0x81A5DB1 0x4 '"BOX ["][buffer3]" on\nBILL'S PC wa..."
    return
    
    
    '---------
    ' Strings
    '---------
    #org 0x19DC9A
    = MAN: Well, I don't give refunds.\nYou knew what you were getting!
    
    #org 0x19DA9A
    = MAN: Hello there, laddie!\nHave I got a deal just for you!\pI'll let you have a secret POKéMON\n- a MAGIKARP - for just [$]500!\pSo, you'll buy it, am I right?
    
    #org 0x19DB34
    = MAN: Hello there, sweetie pie!\nHave I got a deal just for you!\pI'll let you have a secret POKéMON\n- a MAGIKARP - for just [$]500!\pSo, you'll buy it, am I right?
    
    #org 0x19DC07
    = No? You say no? I'm only doing this\nas a favor to you!
    
    #org 0x19DC78
    = You'll need more money than that!
    
    #org 0x1A56A7
    = Do you want to give a nickname to\nthis [buffer1]?
    
    #org 0x19DC3E
    = There's no more room for any more\nPOKéMON, it looks like.
    
    #org 0x19DBD3
    = [player] paid an outrageous [$]500\nand bought the MAGIKARP[.]
    
    #org 0x1A5CF1
    = [buffer2] was transferred to\nSomeone's PC.\pIt was placed in \nBOX ["][buffer1]."
    
    #org 0x1A5D31
    = [buffer2] was transferred to\nBILL'S PC.\pIt was placed in \nBOX ["][buffer1]."
    
    #org 0x1A5D6E
    = BOX ["][buffer3]" on\nSomeone's PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."
    
    #org 0x1A5DB1
    = BOX ["][buffer3]" on\nBILL'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."

    Thanks!
    Correct me if I'm wrong.
     
    Yes, just changed the hex number after the givepokemon (81) to Feebas' hex number: 148.

    Of course there's also some mentions of MAGIKARP in the script - you could repoint and rewrite those parts of the script but the rest is exactly the same.
     
    Can you change this so the man will give a Feebas?

    Change the current givepokemon command to 'givepokemon 0x148 0x5 0x0 0x0 0x0 0x0'.

    While Feebas' National Dex number is 349 (0x15D), its in-game designation is position 328 (0x148). This is because a lot of Hoenn Pokemon positions in the third gen games are mixed up (probably correlating to which Pokemon were inserted first) and the 25 empty slots between Celebi and Treecko.
     
    Yes, just changed the hex number after the givepokemon (81) to Feebas' hex number: 148.

    Of course there's also some mentions of MAGIKARP in the script - you could repoint and rewrite those parts of the script but the rest is exactly the same.

    Change the current givepokemon command to 'givepokemon 0x148 0x5 0x0 0x0 0x0 0x0'.

    While Feebas' National Dex number is 349 (0x15D), its in-game designation is position 328 (0x148). This is because a lot of Hoenn Pokemon positions in the third gen games are mixed up (probably correlating to which Pokemon were inserted first) and the 25 empty slots between Celebi and Treecko.

    Alright, thanks, for your awesome replies.
     
    Can you help me, again, I have a problem, I realized, if I plan to choose the Hoenn Starters, as starters, I need a National Pokedex, for their entries, so can anyone post a script, so when Prof. Oak give a Pokedex he will upgrade it??

    Posting an entire script is a bit much, but giving the player a National Dex in FireRed is pretty simple. Just include the command 'special 0x16F' in the script and that will activate the National Dex.
     
    Can you help me, again, I have a problem, I realized, if I plan to choose the Hoenn Starters, as starters, I need a National Pokedex, for their entries, so can anyone post a script, so when Prof. Oak give a Pokedex he will upgrade it??
    Check diegoisawesome script tutorial in the flags and specials section there is a
    Number for the national Dex use that in place of give pokedex
     
    Um.... where in the script exactly??

    Anywhere in the script, it doesn't matter at all. You could even use the special command at the start of the game before you leave your room and the National Dex will be active once you receive the regular Pokedex from Oak, that's how much it doesn't matter :P
     
    Last edited:
    Anywhere in the script, it doesn't matter at all. You could even use the special command at the start of the game before you leave your room and the National Dex will be active once you receive the regular Pokedex from Oak, that's how much it doesn't matter :P

    So, the script will say, "National Pokedex Activated" or something??
     
    Back
    Top