CJBlazer
Rogon, the Ninja Pokemon
- 72
- Posts
- 13
- Years
- Underworld
- Seen Dec 11, 2015
I don't get what I am doing wrong. I am editing this one trainer in Viridian Forest (the first one you see.). I want him to give you 5 Pokeballs when you talk to him and this is the script I used
'---------------
#org 0x160529
lock
faceplayer
checkflag 0x25E
if 0x1 goto 0x816A4FF
msgbox 0x8190717 MSG_KEEPOPEN '"You don't have any Pokeballs?\nWel..."
checkitemroom 0x160 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x816A4F5
setflag 0x25E
hidesprite 0x4
additem 0x4 0x5
loadpointer 0x0 0x8190866 '"[player] received five Pokeballs\n..."
giveitem2 0x4 0x5 0x13E
release
end
'---------------
#org 0x16A4FF
msgbox 0x819088E MSG_KEEPOPEN '"You don't have any Pokeballs?\nWeY..."
release
end
'---------------
#org 0x16A4F5
msgbox 0x81908AE MSG_KEEPOPEN '"You don't have room for these."
release
end
'---------
' Strings
'---------
#org 0x190717
= You don't have any Pokeballs?\nWell, here are a few of mine.
#org 0x190866
= [player] received five Pokeballs\nfrom the BOY
#org 0x19088E
= Weaken a Pokemon First!
#org 0x1908AE
= You don't have room for these.
and this somehow becomes the result
'---------------
#org 0x160529
lock
faceplayer
checkflag 0x25E
if 0x1 goto 0x816A4FF
msgbox 0x8190717 MSG_KEEPOPEN '"You don't have any Pokeballs?\nWel..."
checkitemroom 0x160 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x816A4F5
setflag 0x25E
hidesprite 0x4
additem 0x4 0x5
loadpointer 0x0 0x8190866 '"[player] received five Pokeballs\n..."
giveitem2 0x4 0x5 0x13E
release
end
'---------------
#org 0x16A4FF
msgbox 0x819088E MSG_KEEPOPEN '"You don't have any Pokeballs?\nWeY..."
release
end
'---------------
#org 0x16A4F5
msgbox 0x81908AE MSG_KEEPOPEN '"You don't have room for these."
release
end
'---------
' Strings
'---------
#org 0x190717
= You don't have any Pokeballs?\nWell, here are a few of mine.
#org 0x190866
= [player] received five Pokeballs\nfrom the BOY
#org 0x19088E
= You don't have any Pokeballs?\nWeYou don't have room for these.
#org 0x1908AE
= You don't have room for these.
The last two lines glitch up for some reason. Is there a reason why they always combine? Am I doing something wrong?
Spoiler:
'---------------
#org 0x160529
lock
faceplayer
checkflag 0x25E
if 0x1 goto 0x816A4FF
msgbox 0x8190717 MSG_KEEPOPEN '"You don't have any Pokeballs?\nWel..."
checkitemroom 0x160 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x816A4F5
setflag 0x25E
hidesprite 0x4
additem 0x4 0x5
loadpointer 0x0 0x8190866 '"[player] received five Pokeballs\n..."
giveitem2 0x4 0x5 0x13E
release
end
'---------------
#org 0x16A4FF
msgbox 0x819088E MSG_KEEPOPEN '"You don't have any Pokeballs?\nWeY..."
release
end
'---------------
#org 0x16A4F5
msgbox 0x81908AE MSG_KEEPOPEN '"You don't have room for these."
release
end
'---------
' Strings
'---------
#org 0x190717
= You don't have any Pokeballs?\nWell, here are a few of mine.
#org 0x190866
= [player] received five Pokeballs\nfrom the BOY
#org 0x19088E
= Weaken a Pokemon First!
#org 0x1908AE
= You don't have room for these.
and this somehow becomes the result
Spoiler:
'---------------
#org 0x160529
lock
faceplayer
checkflag 0x25E
if 0x1 goto 0x816A4FF
msgbox 0x8190717 MSG_KEEPOPEN '"You don't have any Pokeballs?\nWel..."
checkitemroom 0x160 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x816A4F5
setflag 0x25E
hidesprite 0x4
additem 0x4 0x5
loadpointer 0x0 0x8190866 '"[player] received five Pokeballs\n..."
giveitem2 0x4 0x5 0x13E
release
end
'---------------
#org 0x16A4FF
msgbox 0x819088E MSG_KEEPOPEN '"You don't have any Pokeballs?\nWeY..."
release
end
'---------------
#org 0x16A4F5
msgbox 0x81908AE MSG_KEEPOPEN '"You don't have room for these."
release
end
'---------
' Strings
'---------
#org 0x190717
= You don't have any Pokeballs?\nWell, here are a few of mine.
#org 0x190866
= [player] received five Pokeballs\nfrom the BOY
#org 0x19088E
= You don't have any Pokeballs?\nWeYou don't have room for these.
#org 0x1908AE
= You don't have room for these.
The last two lines glitch up for some reason. Is there a reason why they always combine? Am I doing something wrong?