Page 1 of 1

is negative HEX value possible in CE?

Posted: Fri Dec 14, 2018 10:03 am
by bachou
hi sorry for the noob question but i want to ask if is it possible to create a negative value in CE
the game i'm play have this item +10% hp, i can edit to make it higher value like +13 +14 +15% etc.... but i want to make it negative like -20% HP, is it possible to do this ? if possbile , how ? :!:

Re: is negative HEX value possible in CE?

Posted: Fri Dec 14, 2018 2:36 pm
by JohnFK
Yes. [Link] or Windows Calculator. Type in decimal value of your choice, take output.

-20 decimal = FFFFFFFFFFFFFFEC hex
-20 (4 bytes) = FFFFFFEC hex

Alternatively in CE enter value in decimal, right click on the item in cheat table and choose -> Show as hexdecimal

Re: is negative HEX value possible in CE?

Posted: Wed Jul 10, 2019 9:19 pm
by TheByteSize
you can also create a value like this, IIRC

mov eax,#10 //move int 10 to eax
neg eax //turn value stored in eax to negative