The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Help with Gender-Dependent Script

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 26th, 2021 (2:17 AM).
juanorangetree juanorangetree is offline
 
Join Date: Jan 2021
Posts: 4
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:

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.


I'm not sure what I'm doing wrong. If anyone can help I would really appreciate it!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 26th, 2021 (2:29 AM).
Anon822 Anon822 is offline
 
Join Date: Nov 2017
Posts: 326
Maybe LASTRESULT is not defined in your version of XSE, try replacing it with 0x800D
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 26th, 2021 (3:23 AM).
juanorangetree juanorangetree is offline
 
Join Date: Jan 2021
Posts: 4
That worked!! Thank you so much trying to figure that out was killing me yesterday!
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:18 AM.