Ok, this script is supposed to have a person give me 6 Lucky Eggs, and I put them in my bag. It will, of course check if my bag is full or not. But when he goes to give me the item, the message runs over into the one he's supposed to say after I get the items, and the screen goes black with some red. What'd I do wrong? Script:
'-----------------------
#org 0x167EDA
lock
faceplayer
checkflag 0x230
if 0x1 goto 0x8167F24
msgbox 0x8183279 '"Hi!\nI fought a CHANSEY, and got this item.\pI..."
callstd 0x4
textcolor 0x3
checkitemamount 0xD 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x81A6BD5
bufferitem 0x6 0xC5
fanfare 0x101
msgbox2 0x81A51D2 '"Obtained the [buffer2]!"
waitmsgbox
waitfanfare
additem 0xD 0x1
msgbox 0x8183363 '"[player] put the LUCKY EGG(S) away in\nth..."
callstd 0x4
call 0x81A6651
setflag 0x230
release
end
'-----------------------
#org 0x167F24
msgbox 0x8183323 '"Please visit the POKé MART if you need\nPOK..."
callstd 0x4
release
end
'-----------------------
#org 0x1A6BD5
textcolor 0x3
msgbox 0x81A521E '"Too bad!\nThe BAG is full[.]"
callstd 0x4
release
end
'-----------------------
#org 0x1A6651
copyvar 0x8012 0x8013
return
'---------
' Strings
'---------
#org 0x183279
= Hi!\nI fought a CHANSEY, and got this item.\pI really don't need it, so\nI suppose you can have it.\pPlease, no thanks is necessary.\pHere, I'll even give you 6.\nHave fun with them!
#org 0x1A51D2
= Obtained the [buffer2]!
#org 0x183363
= [player] put the LUCKY EGG(S) away in\nthe BAG's ITEMS POCKET.
#org 0x183323
= Please visit the POKé MART if you need\nany POKé BALLS for catching POKéMON.
#org 0x1A521E
= Too bad!\nThe BAG is full[.]
EDIT: Nevermind, I got that script working properly. Except, instead of saying "[player] put the [item] in BAG", it just says "ON." Anyone know why? Here is the fixed script:
'-----------------------
#org 0x167EDA
lock
faceplayer
checkflag 0x230
if 0x1 goto 0x8167F24
msgbox 0x8183279 '"Hi! I fought\na CHANSEY, and got this item.\pI..."
callstd 0x4
textcolor 0x3
checkitemamount 0xC5 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x81A6BD5
bufferitem 0x1 0xC5
fanfare 0x101
msgbox2 0x81A51D2 '"Obtained the [buffer2]!"
waitmsgbox
waitfanfare
additem 0xC5 0x6
msgbox 0x8183363 '"[player] put the LUCKY EGG(S) away in\nth..."
callstd 0x4
call 0x81A6651
setflag 0x230
release
end
'-----------------------
#org 0x167F24
msgbox 0x8183323 '"Please visit the POKé MART if you need\nPOK..."
callstd 0x4
release
end
'-----------------------
#org 0x1A6BD5
textcolor 0x3
msgbox 0x81A521E '"Too bad!\nThe BAG is full[.]"
callstd 0x4
release
end
'-----------------------
#org 0x1A6651
copyvar 0x8012 0x8013
return
'---------
' Strings
'---------
#org 0x183279
= Hi! I fought\na CHANSEY, and got this item.\pI really don't need it, so\nI suppose you can have it.\pPlease, no thanks is necessary.\pHere, you can have 6.\nHave fun with it!
#org 0x1A51D2
= Obtained the [buffer2]!
#org 0x183363
= [player] put the LUCKY EGG away in\nthe BAG's ITEMS POCKET.
#org 0x183323
= Please visit POKé MART if you need\nPOKé BALLS for catching POKéMON.
#org 0x1A521E
= Too bad!\nThe BAG is full[.]