Thank you. I also seemed to have misplaced the offset and forgot #dynamic entirely. Unless that part gets replaced or deleted.
*EDIT*
The code healed when I did not have money. I tried fixing it, but now the person just continues the same beginning phrase.
Spoiler:#dynamic 0x800000
#org @start
faceplayer
lockall
preparemsg 0x8801411 '"Your POKéMON look tired[.]\nYou sh..."
checkmoney 0x50 0x0
compare 0x800D 0x1
if 0x4 goto 0x8801447
msgbox @notenough 0x6
waitmsg
waitkeypress
fadescreen 0x1
closeonkeypress
special 0x0
fadescreen 0x0
msgbox 0x8801447 MSG_NORMAL '"There. All better now!"
paymoney 0x50 0x0
releaseall
end
#org 0x801411
= Your POKéMON look tired[.]\nYou should give them a rest.
#org 0x801447
= There. All better now!
#org @notenough
= Looks like you do not have enough.
Can you tell me what I am doing wrong?
Here's a working version of your script. I've highlighted some changes and explained why they've been altered.
Spoiler:
#dynamic 0x800000
#org @start
msgbox @talk 0x2 // You had a lot of extra frivolous commands so I've shortened this whole part
checkmoney 0x50 0x0
compare 0x800D 0x1
if 0x0 goto @NotEnough // In this situation, 0x0 = 'Lower than'. In your script you used 0x4 which means 'Greater than or Equal to'. This mixed around what their actual financial situation was though: Players with enough money wouldn't be able to heal while players who were broke could
fadescreen 0x1
special 0x0
fadescreen 0x0
msgbox @talk2 0x2
paymoney 0x50 0x0
release
end
#org @NotEnough // In your script, @NotEnough was pointing to a text string, when it should have pointing to a separate part of the script. I simply added a msgbox command to the text you wanted to display
msgbox @MoreMoney 0x2
release
end
#org @talk
= Your POKéMON look tired[.]\nYou should give them a rest.
#org @talk2
= There. All better now!
#org @MoreMoney
= Looks like you do not have enough.
#org @start
msgbox @talk 0x2 // You had a lot of extra frivolous commands so I've shortened this whole part
checkmoney 0x50 0x0
compare 0x800D 0x1
if 0x0 goto @NotEnough // In this situation, 0x0 = 'Lower than'. In your script you used 0x4 which means 'Greater than or Equal to'. This mixed around what their actual financial situation was though: Players with enough money wouldn't be able to heal while players who were broke could
fadescreen 0x1
special 0x0
fadescreen 0x0
msgbox @talk2 0x2
paymoney 0x50 0x0
release
end
#org @NotEnough // In your script, @NotEnough was pointing to a text string, when it should have pointing to a separate part of the script. I simply added a msgbox command to the text you wanted to display
msgbox @MoreMoney 0x2
release
end
#org @talk
= Your POKéMON look tired[.]\nYou should give them a rest.
#org @talk2
= There. All better now!
#org @MoreMoney
= Looks like you do not have enough.
You really need to look out for when you're mistaking a text pointer for a regular branching script pointer :P