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 can I add the moHideChildren option to an entry

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
LF2005
Newbie cheater
Reputation: 0

Joined: 03 Apr 2014
Posts: 16

PostPosted: Sun Jul 16, 2023 7:39 am    Post subject: how can I add the moHideChildren option to an entry Reply with quote

I really tried to find how to do it , got almost nothing

aone page seemed to say I should do something like this:

Code:
rec.Options[moHideChildren]

but that doesn't work
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: Sun Jul 16, 2023 8:18 am    Post subject: Reply with quote

You can do it like this without affecting the other applied options:
Code:

local script_name = 'Group 1'
local mr = AddressList.MemoryRecord[script_name]
mr.options = (mr.options):gsub('%]', ',moHideChildren]')
Back to top
View user's profile Send private message
LF2005
Newbie cheater
Reputation: 0

Joined: 03 Apr 2014
Posts: 16

PostPosted: Sun Jul 16, 2023 12:45 pm    Post subject: Reply with quote

LeFiXER wrote:
You can do it like this without affecting the other applied options:
Code:

local script_name = 'Group 1'
local mr = AddressList.MemoryRecord[script_name]
mr.options = (mr.options):gsub('%]', ',moHideChildren]')

I had a little hard time to adapt the code to my case but I have manage

Code:
rec.Options = (rec.Options):gsub('%]', ',moHideChildren]')
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: Sun Jul 16, 2023 12:49 pm    Post subject: Reply with quote

LF2005 wrote:

I had a little hard time to adapt the code to my case but I have manage

Code:
rec.Options = (rec.Options):gsub('%]', ',moHideChildren]')


I provided an example to show how it works. But you used it to fit your scenario which is what matters. I would advise that you not struggle in future, you can just ask for clarification. It's how we all learn, by understanding what's going on.
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