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 


The romance of AA script and Lua script. Need help, thanks.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Fri Feb 19, 2016 11:43 am    Post subject: The romance of AA script and Lua script. Need help, thanks. Reply with quote

Is it possible to link an "AA script" in the cheat table to a "Lua script"? So that the "AA script" can be activated by checking a checkbox, which is defined in the "Lua script". I will try my best to explain myself:

For example:
1. I have an "AA script" in the cheat table, which changes the value of health to 10;

2. I'v got a "Lua script" to perform a click function(like a checkbox);

3. can I somehow link the "AA script" to the "Lua script" so that when I click the checkbox, the "AA script" will be activated or executed, which increases the value of health to 10?

4. If I cannot link them, can I write "AA script" in the "Lua script" window?

Thanks a lot.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Fri Feb 19, 2016 12:00 pm    Post subject: Reply with quote

Code:

getAddressList().getMemoryRecordByDescription('entry with script').Active=true


and you can also use the autoAssemble() command

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Fri Feb 19, 2016 12:57 pm    Post subject: Reply with quote

Dark Byte wrote:
Code:

getAddressList().getMemoryRecordByDescription('entry with script').Active=true


and you can also use the autoAssemble() command


Thanks a lot. getAddressList() worked.

Final question:
I have seen something like this:
Code:
function setHack_Information()

  t =
  {
  {
  'name',
  [[AA Enable script]],
  [[AA Disable script]]
  }
  }
 
 end


It's table that stores the AA script, and somehow execute the AA script by calling them from the table. My question is: what is the call command? Something like "call t[0][1]" if I want to execute the "AA Enable script"? Thanks.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Feb 19, 2016 1:07 pm    Post subject: Reply with quote

Code:
autoAssemble(t[0][1])

Like DB provided.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Fri Feb 19, 2016 1:56 pm    Post subject: Reply with quote

Zanzer wrote:
Code:
autoAssemble(t[0][1])

Like DB provided.

Oh, got it, thanks alot.
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