- 12
- Posts
- 8
- Years
- Seen Nov 21, 2019
I'm wanting to have multiple "gift pokemon" obtainable in the same manner that you obtain Eevee in Celadon. Does anyone know how I can do this? I'm a beginner so lamens terms are best. Thanks so much for any insight!
Here's the script:
'---------------
#org 0x16C46D
lock
faceplayer
setvar 0x4001 0x85
givepokemon 0x85 0x19 0x0 0x0 0x0 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x816C4A6
compare LASTRESULT 0x1
if 0x1 goto 0x816C4DA
compare LASTRESULT 0x2
if 0x1 goto 0x81A927C
release
end
'---------------
#org 0x16C4A6
hidesprite 0x2
fanfare 0x101
preparemsg 0x8196591 '"[player] obtained an Eevee!"
waitmsg
waitfanfare
bufferpokemon 0x0 0x85
msgbox 0x81A56A7 MSG_YESNO '"Do you want to give a nickname to\..."
compare LASTRESULT 0x0
if 0x1 goto 0x816C514
call 0x81A8C27
call 0x81A74EB
goto 0x816C514
'---------------
#org 0x16C4DA
hidesprite 0x2
fanfare 0x101
preparemsg 0x8196591 '"[player] obtained an Eevee!"
waitmsg
waitfanfare
bufferpokemon 0x0 0x85
msgbox 0x81A56A7 MSG_YESNO '"Do you want to give a nickname to\..."
compare LASTRESULT 0x0
if 0x1 goto 0x816C509
call 0x81A8C33
goto 0x816C509
'---------------
#org 0x1A927C
textcolor 0x3
msgbox 0x81A5E31 MSG_KEEPOPEN '"There's no more room for Pokémon!\..."
release
end
'---------------
#org 0x16C514
setflag 0x263
release
end
'---------------
#org 0x1A8C27
countpokemon
subvar LASTRESULT 0x1
copyvar 0x8004 LASTRESULT
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------------
#org 0x16C509
call 0x81A8C3C
goto 0x816C514
'---------------
#org 0x1A8C33
fadescreen 0x1
special 0x166
waitstate
lock
faceplayer
return
'---------------
#org 0x1A8C3C
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
checkflag 0x834
if 0x0 call 0x81A8C57
checkflag 0x834
if 0x1 call 0x81A8C82
return
'---------------
#org 0x1A8C57
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x81A8C70
msgbox 0x81A5CF1 MSG_KEEPOPEN '"[buffer2] was transferred to\nSome..."
return
'---------------
#org 0x1A8C82
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x81A8C9B
msgbox 0x81A5D31 MSG_KEEPOPEN '"[buffer2] was transferred to\nBill..."
return
'---------------
#org 0x1A8C70
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5D6E MSG_KEEPOPEN '"Box ["][buffer3]" on\nSomeone's PC..."
return
'---------------
#org 0x1A8C9B
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5DB1 MSG_KEEPOPEN '"Box ["][buffer3]" on\nBill's PC wa..."
return
'---------
' Strings
'---------
#org 0x196591
= [player] obtained an Eevee!
#org 0x1A56A7
= Do you want to give a nickname to\nthis [buffer1]?
#org 0x1A5E31
= There's no more room for Pokémon!\pThe Pokémon Boxes are full and\ncan't accept any more!
#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]."
Here's the script:
Spoiler:
'---------------
#org 0x16C46D
lock
faceplayer
setvar 0x4001 0x85
givepokemon 0x85 0x19 0x0 0x0 0x0 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x816C4A6
compare LASTRESULT 0x1
if 0x1 goto 0x816C4DA
compare LASTRESULT 0x2
if 0x1 goto 0x81A927C
release
end
'---------------
#org 0x16C4A6
hidesprite 0x2
fanfare 0x101
preparemsg 0x8196591 '"[player] obtained an Eevee!"
waitmsg
waitfanfare
bufferpokemon 0x0 0x85
msgbox 0x81A56A7 MSG_YESNO '"Do you want to give a nickname to\..."
compare LASTRESULT 0x0
if 0x1 goto 0x816C514
call 0x81A8C27
call 0x81A74EB
goto 0x816C514
'---------------
#org 0x16C4DA
hidesprite 0x2
fanfare 0x101
preparemsg 0x8196591 '"[player] obtained an Eevee!"
waitmsg
waitfanfare
bufferpokemon 0x0 0x85
msgbox 0x81A56A7 MSG_YESNO '"Do you want to give a nickname to\..."
compare LASTRESULT 0x0
if 0x1 goto 0x816C509
call 0x81A8C33
goto 0x816C509
'---------------
#org 0x1A927C
textcolor 0x3
msgbox 0x81A5E31 MSG_KEEPOPEN '"There's no more room for Pokémon!\..."
release
end
'---------------
#org 0x16C514
setflag 0x263
release
end
'---------------
#org 0x1A8C27
countpokemon
subvar LASTRESULT 0x1
copyvar 0x8004 LASTRESULT
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------------
#org 0x16C509
call 0x81A8C3C
goto 0x816C514
'---------------
#org 0x1A8C33
fadescreen 0x1
special 0x166
waitstate
lock
faceplayer
return
'---------------
#org 0x1A8C3C
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
checkflag 0x834
if 0x0 call 0x81A8C57
checkflag 0x834
if 0x1 call 0x81A8C82
return
'---------------
#org 0x1A8C57
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x81A8C70
msgbox 0x81A5CF1 MSG_KEEPOPEN '"[buffer2] was transferred to\nSome..."
return
'---------------
#org 0x1A8C82
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x81A8C9B
msgbox 0x81A5D31 MSG_KEEPOPEN '"[buffer2] was transferred to\nBill..."
return
'---------------
#org 0x1A8C70
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5D6E MSG_KEEPOPEN '"Box ["][buffer3]" on\nSomeone's PC..."
return
'---------------
#org 0x1A8C9B
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5DB1 MSG_KEEPOPEN '"Box ["][buffer3]" on\nBill's PC wa..."
return
'---------
' Strings
'---------
#org 0x196591
= [player] obtained an Eevee!
#org 0x1A56A7
= Do you want to give a nickname to\nthis [buffer1]?
#org 0x1A5E31
= There's no more room for Pokémon!\pThe Pokémon Boxes are full and\ncan't accept any more!
#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]."
Last edited: