-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRPG maker mx.reg
More file actions
51 lines (23 loc) · 1.95 KB
/
RPG maker mx.reg
File metadata and controls
51 lines (23 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Cheat Engine\CustomTypes\RPG maker MX]
"Script"="-- http://forum.cheatengine.org/viewtopic.php?t=586830 (thanks DB)
typename=\"RPG maker MX\"
bytecount=4 --number of bytes of this type
functionbasename=\"RPGMakerMX\"
function RPGMakerMX_bytestovalue(b1,b2,b3,b4,address)
local DataAddress=3+(b1+b2*256+b3*65536+b4*16777216);
if ((DataAddress)%4 ~= 0 or DataAddress<0x1000) then --return 0 if DataAddress isn't a valid 32bit aligned address
return 0
else
return readDouble(DataAddress) --return (double) [address]+3
end
end
function RPGMakerMX_valuetobytes(i,address)
local OriginalValue=readInteger(address)
local ReturnValue=dwordToByteTable(OriginalValue);
writeDouble(OriginalValue+3,i) --write i at [address]+3
return ReturnValue[1],ReturnValue[2],ReturnValue[3],ReturnValue[4]
end
return typename,bytecount,functionbasename
"
"lua"=dword:00000001