Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to do a memoryrecord that trigger script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ankorwatt
How do I cheat?
Reputation: 0

Joined: 06 May 2015
Posts: 6

PostPosted: Tue Mar 15, 2016 5:40 am    Post subject: How to do a memoryrecord that trigger script? Reply with quote

i want to make a memoryrecord in the cheattable that, if checked, trigger a script with some aobscan to find some locations of memory and update other memoryrecords with this locations in the cheattable.
How is possible to do that?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Wed Mar 16, 2016 4:22 pm    Post subject: Reply with quote

Would a registered symbol work?
Code:
[ENABLE]
aobscan(shiny, AA BB CC DD)
registersymbol(shiny)
[DISABLE]

If there's multiple locations:
Code:
[ENABLE]
{$lua}
local res = AOBScan("AA BB CC DD")
if res then
  for i=0, res.Count, 1 do
    registerSymbol("shiny"..i, res[i])
  end
  res.destroy()
end
{$asm}

[DISABLE]

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites