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 


Change a record value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Tue May 26, 2020 10:52 am    Post subject: Change a record value Reply with quote

I have a big table with 1226 entries.
Some of them contain the following descriptions
* Life Spell, where * is in length 4-7 that includes a space.

So what I would like to do is to search out these descriptions and then change the value of the addresses to 255.
Any suggestions?
Back to top
View user's profile Send private message Yahoo Messenger
Oxijen
Expert Cheater
Reputation: 0

Joined: 07 May 2020
Posts: 163
Location: On The Moon

PostPosted: Sun May 31, 2020 6:07 am    Post subject: Reply with quote

I think this will be by using for and
Code:

your_pointer_desc = "Life Spell"
getting_pointer_by_desc = addresslist_getMemoryRecordByDescription(getAddressList(), your_pointer_desc)
getting_value = memoryrecord_getValue(getting_pointer_by_desc)

_________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum Wink
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