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 do i use lua script and assembly script in one script f

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

Joined: 21 Apr 2022
Posts: 2

PostPosted: Thu Apr 21, 2022 11:41 am    Post subject: how do i use lua script and assembly script in one script f Reply with quote

hello.
im trying to figure out how to make the lua scripot and assembly script in one file.

so far ive got

{$lua}

{$lua}

[enable]

[disable]

but it has issues and doesnt work as expected can anyone help.

thanks!
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Thu Apr 21, 2022 11:50 am    Post subject: Reply with quote

Maybe this will explain better.
Code:

[ENABLE]
{$LUA}
-- Lua Code Here
-- To execute Auto Assembler code within a Lua block, use this function
autoAssemble(text, targetself OPTIONAL, disableInfo OPTIONAL)

--[[ Which runs the Auto Assembler with the given text. Returns True on success, with a secondary table you can use when disabling (if targetself is set, it will assemble into Cheat Engine itself). If disableInfo is provided the [Disable] section will be handled

Note: text is the Auto Assembler code you which to execute
]]

{$ASM}
[DISABLE]
Back to top
View user's profile Send private message
johnnaov
How do I cheat?
Reputation: 0

Joined: 21 Apr 2022
Posts: 2

PostPosted: Thu Apr 21, 2022 12:39 pm    Post subject: Reply with quote

LeFiXER wrote:
Maybe this will explain better.
Code:

[ENABLE]
{$LUA}
-- Lua Code Here
-- To execute Auto Assembler code within a Lua block, use this function
autoAssemble(text, targetself OPTIONAL, disableInfo OPTIONAL)

--[[ Which runs the Auto Assembler with the given text. Returns True on success, with a secondary table you can use when disabling (if targetself is set, it will assemble into Cheat Engine itself). If disableInfo is provided the [Disable] section will be handled

Note: text is the Auto Assembler code you which to execute
]]

{$ASM}
[DISABLE]


wow, thanks! this makes sense. Very Happy
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 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