- 18
- Posts
- 6
- Years
- Seen Apr 24, 2023
So i'm trying to do something fairly simple with JPANS hacked engine and the specials ingame.
This is the code I am using, special 0x9F calls the menu to select one Pokemon for a purpose, 0x62 is the Hacked engine special thats supposed to delete the pokemon selected.
This is what I've written as a test and I need to know, what am I doing wrong? I would think I'm not defining right point for the delete, but when I've used 0x9f then followed it with another special in a different script it functions properly and selected the pokemon I wanted it to.
Many thanks to those who take the time to reply.
UPDATE::
So I dunno what im doing wrong now... Special 0x9f isn't changing var 0x8004 to any other value then 0x0 like it says it does on JPANS breakdown of specials (google Research: Study on the special and special2 commands\ from this site, JPAN wrote it for Fire Red)
So any time I run that, I keep going to @kill1 no matter the result from special 0x9F. How can I fix this so that the pokemon I select is the one deleted by the script it goes to? Am I working off the wrong variable or, what am I doing wrong?
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @text
callstd MSG_NORMAL
special 0x9F
waitspecial
compare 0x8004 0x0
if 0x1 goto @kill1
compare 0x8004 0x1
if 0x1 goto @kill2
compare 0x8004 0x2
if 0x1 goto @kill3
compare 0x8004 0x3
if 0x1 goto @kill4
compare 0x8004 0x4
if 0x1 goto @kill5
compare 0x8004 0x5
if 0x1 goto @kill6
compare 0x8004 0x6
if 0x1 goto @start
msgbox @text
callstd MSG_NORMAL
release
end
This is the code I am using, special 0x9F calls the menu to select one Pokemon for a purpose, 0x62 is the Hacked engine special thats supposed to delete the pokemon selected.
Spoiler:
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @text
callstd MSG_NORMAL
special 0x9F
waitspecial
special 0x62
release
end
#org @text
= Pick it.
#org @start
lock
faceplayer
msgbox @text
callstd MSG_NORMAL
special 0x9F
waitspecial
special 0x62
release
end
#org @text
= Pick it.
This is what I've written as a test and I need to know, what am I doing wrong? I would think I'm not defining right point for the delete, but when I've used 0x9f then followed it with another special in a different script it functions properly and selected the pokemon I wanted it to.
Many thanks to those who take the time to reply.
UPDATE::
So I dunno what im doing wrong now... Special 0x9f isn't changing var 0x8004 to any other value then 0x0 like it says it does on JPANS breakdown of specials (google Research: Study on the special and special2 commands\ from this site, JPAN wrote it for Fire Red)
So any time I run that, I keep going to @kill1 no matter the result from special 0x9F. How can I fix this so that the pokemon I select is the one deleted by the script it goes to? Am I working off the wrong variable or, what am I doing wrong?
Spoiler:
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @text
callstd MSG_NORMAL
special 0x9F
waitspecial
compare 0x8004 0x0
if 0x1 goto @kill1
compare 0x8004 0x1
if 0x1 goto @kill2
compare 0x8004 0x2
if 0x1 goto @kill3
compare 0x8004 0x3
if 0x1 goto @kill4
compare 0x8004 0x4
if 0x1 goto @kill5
compare 0x8004 0x5
if 0x1 goto @kill6
compare 0x8004 0x6
if 0x1 goto @start
msgbox @text
callstd MSG_NORMAL
release
end
Last edited: