I am trying to make an "automatic sonic blade" cheat for Kingdom Hearts Re Chain of Memories (USA).
If this cheat is enabled then the cheater won't need to press the triangle button seven times to perform a full "sonic blade" sleight because the cheat automatically presses the triangle button for the cheater.
With Cheat Engine 7.3 I have found the address of the byte that tells the player when to press the triangle button to hit his opponent one more time.
When the player has to press the triangle button the value of the byte is 1 and 0 otherwise.
I already know how to use the 0 code to change the value of a single byte at some address and I know how to use this 0 code to press the triangle button but I need a code that checks whether or not that byte is 1 because the triangle button has to be pressed only when that byte is 1.
I did many google searches and I found that the D code can compare halfword/short (two bytes) with some number and execute the below code only if the condition is satisfied but the D code compares two bytes but I need to compare only one byte not two.
I have already tried the D code already and this makes my "automatic sonic blade" cheat works sometimes only but I want my "automatic sonic blade" cheat to work always but not sometimes.
I tried to find a code that compares a single byte (not two bytes) but I did not find it yet.
Most results are threads asking for help about how to cheat with pcsx2 and guides that teach how to cheat with pcsx2 but I don't need these guides because I already know how to cheat with pcsx2.
I want to know if the code that I am looking for does exist at all because there is already code that writes a single byte that is 0 and the code that writes two bytes is 1 and 2 is for four bytes
Shame that I need one byte comparison and not four bytes comparison because if that was four bytes comparison and not one byte comparison then I could simply repeat the D code twice to compare four bytes, the first D code for the first two bytes and the second D code for the last two bytes.
Shame that I don't find a workaround to compare a single byte with the D code because there is no such a thing like an half D code!
If this cheat is enabled then the cheater won't need to press the triangle button seven times to perform a full "sonic blade" sleight because the cheat automatically presses the triangle button for the cheater.
With Cheat Engine 7.3 I have found the address of the byte that tells the player when to press the triangle button to hit his opponent one more time.
When the player has to press the triangle button the value of the byte is 1 and 0 otherwise.
I already know how to use the 0 code to change the value of a single byte at some address and I know how to use this 0 code to press the triangle button but I need a code that checks whether or not that byte is 1 because the triangle button has to be pressed only when that byte is 1.
I did many google searches and I found that the D code can compare halfword/short (two bytes) with some number and execute the below code only if the condition is satisfied but the D code compares two bytes but I need to compare only one byte not two.
I have already tried the D code already and this makes my "automatic sonic blade" cheat works sometimes only but I want my "automatic sonic blade" cheat to work always but not sometimes.
I tried to find a code that compares a single byte (not two bytes) but I did not find it yet.
Most results are threads asking for help about how to cheat with pcsx2 and guides that teach how to cheat with pcsx2 but I don't need these guides because I already know how to cheat with pcsx2.
I want to know if the code that I am looking for does exist at all because there is already code that writes a single byte that is 0 and the code that writes two bytes is 1 and 2 is for four bytes
Shame that I need one byte comparison and not four bytes comparison because if that was four bytes comparison and not one byte comparison then I could simply repeat the D code twice to compare four bytes, the first D code for the first two bytes and the second D code for the last two bytes.
Shame that I don't find a workaround to compare a single byte with the D code because there is no such a thing like an half D code!