- 4
- Posts
- 4
- Years
- Seen Jun 12, 2021
Hey everyone! I'm new to rom-hacking and I just got to work on a FireRed hack and I was looking for some help. I tried inputting a gender-dependent script for an NPC in XSE, but every time I try to compile it I get an Error 13 "Type Mismatch" on line 7 (compare LASTRESULT 0x0). Here's the script:
I'm not sure what I'm doing wrong. If anyone can help I would really appreciate it!
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkgender
compare LASTRESULT 0x0
if 0x1 goto @male
msgbox @talkFemale 0x6
release
end
#org @male
msgbox @talkMale 0x6
release
end
#org @talkFemale
= Why, hello [player]! RED isn't home at\nthe moment.
#org @talkMale
= Why, hello [player]! LEAF isn't home at\nthe moment.
#org @start
lock
faceplayer
checkgender
compare LASTRESULT 0x0
if 0x1 goto @male
msgbox @talkFemale 0x6
release
end
#org @male
msgbox @talkMale 0x6
release
end
#org @talkFemale
= Why, hello [player]! RED isn't home at\nthe moment.
#org @talkMale
= Why, hello [player]! LEAF isn't home at\nthe moment.
I'm not sure what I'm doing wrong. If anyone can help I would really appreciate it!