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 


Enable Script from Main script with LUA ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Reaper79
Advanced Cheater
Reputation: 2

Joined: 21 Nov 2013
Posts: 68
Location: Germany

PostPosted: Tue Sep 30, 2014 7:03 pm    Post subject: Enable Script from Main script with LUA ? Reply with quote

Hi there,

maybe it's simple, but i don't get it..

i just want to enable a "sub-script" from the "main-script" at "startup".

this is how it looks atm:



the main-script should set the toggle-script 1 active on click.

i've tried to use LUA code in the Enabled section of the main-script:

Code:

[ENABLED]
{$LUA}
local ts1 = getAddressList().getMemoryRecordByDescription("Toggle Script 1")
if ts1 ~= nil then
  ts1.Active = true
end
{$ASM}


but it won't work on startup. it works when i try this LUA code AFTER the main script is active.

any help would be fine.
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