- 4
- Posts
- 2
- Years
- Seen Oct 20, 2024
Going through a tutorial to get into the basics of Rom Hacking, according to what I watched, this code should work, but I"m getting an Error 13 Type mismatch at line 6, aka where the LASTRESULT is. Can someone help explain what I messed up? Thanks!
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @t1 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
msgbox @t2 0x6
release
end
#org @yes
msgbox @t3 0x6
release
end
#org @t3
=[blue_fr]You're right!\nIt IS!
#org @t2
=[green_fr]Well, it actually is.
#org @t1
=[red_fr]Do you think the script is\nworking?
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @t1 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
msgbox @t2 0x6
release
end
#org @yes
msgbox @t3 0x6
release
end
#org @t3
=[blue_fr]You're right!\nIt IS!
#org @t2
=[green_fr]Well, it actually is.
#org @t1
=[red_fr]Do you think the script is\nworking?