engineer_professor Newbie cheater Reputation: 0
Joined: 31 Jan 2013 Posts: 10
|
Posted: Thu Jan 31, 2013 12:46 am Post subject: [simple] How to display highest value? |
|
|
Hi,
I've written lua scripts before, but never before with cheat engine so I'm a bit lost
I would like a simple script that looks at the value at address 094E0001 and then tells me what the highest value it has seen.
(can it use my custom type which is 4 byte big endian?)
OR, it simply writes all of the values it has seen at that address.
It seems this should be really simple, but I'm totally lost how to accomplish this.
Could you please advise me to accomplish this simple script in this great program?
Thanks!
EDIT:
I just found the answer in this forum:
Code: | al=getAddressList()
mr=addresslist_getMemoryRecord(al,0) --get the first entry in the list
lastValue=memoryrecord_getValue(mr)
print(lastValue)
function readValueTimer(t)
local currentValue=memoryrecord_getValue(mr)
if currentValue ~= lastValue then --value changed
print(currentValue)
lastValue=currentValue
end
end
t1=createTimer(nil)
timer_setInterval(t1,100) --check every 1/100th second if the value has changed
timer_onTimer(t1,readValueTimer) |
Thanks admin!
|
|