- 29
- Posts
- 10
- Years
- Seen Jul 11, 2014
So. I have a problem. For some reason NPCs are being released before I want them to. Here is my code:
It's designed to check to see if player has obtained a Charmander from another NPC, if he/she has, this NPC gives the player 5 potions. My issue is that once the script reaches MSG_OBTAIN, all NPCs are released and wander even though text is still popping up. The exact same thing is happening with my other script to give the Charmander. Once the "[player] got a Charmander" message pops, NPCs are released. Any help?
I should probably also point out that this is an Emerald hack.
Code:
'---------------
#org 0x85BBBA
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x885D6E6
checkflag 0x1200
if 0x1 goto 0x885D6B9
msgbox 0x885FB56 MSG_NORMAL '"These flowers are lovely!"
release
end
'---------------
#org 0x85D6E6
msgbox 0x8869686 MSG_NORMAL '"I hope your Charmander is\ndoing w..."
release
end
'---------------
#org 0x85D6B9
msgbox 0x886962E MSG_NORMAL '"What a cute little Charmander!\nHe..."
giveitem 0xD 0x5 MSG_OBTAIN
setflag 0x1201
msgbox 0x8869661 MSG_NORMAL '"Take good care of that Charmander."
release
end
'---------
' Strings
'---------
#org 0x85FB56
= These flowers are lovely!
#org 0x869686
= I hope your Charmander is\ndoing well!
#org 0x86962E
= What a cute little Charmander!\nHere, take these.
#org 0x869661
= Take good care of that Charmander.
I should probably also point out that this is an Emerald hack.
Last edited: