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 


Tell me please

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 37

PostPosted: Sat Jan 18, 2025 4:54 am    Post subject: Tell me please Reply with quote

How do I make him change them all?
Code:
function UDF1_CEButton1Click(sender)
getAddressList().getMemoryRecordByDescription("description").Value = "100"
end



174307.jpg
 Description:
 Filesize:  100.33 KB
 Viewed:  1355 Time(s)

174307.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 467

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

PostPosted: Sat Jan 18, 2025 5:06 am    Post subject: This post has 1 review(s) Reply with quote

Code:

local g1=AddressList['Group 1']
g1.Options=g1.Options..',moRecursiveSetValue'
g1.Value="100"


or if you want it the hard way:
Code:

local g1=AddressList['Group 1']
for i=0,g1.Count-1 do
  g1[i].Value="100"
end


_________________
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
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 37

PostPosted: Sat Jan 18, 2025 5:27 am    Post subject: Reply with quote

Thank you very much
Back to top
View user's profile Send private message
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 37

PostPosted: Mon Jan 20, 2025 4:55 am    Post subject: Reply with quote

Tell me please
how can I Check the numbers in the Group, if there are such numbers, then replace them



174700.jpg
 Description:
 Filesize:  78.81 KB
 Viewed:  1240 Time(s)

174700.jpg


Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 34

Joined: 16 Feb 2017
Posts: 1454

PostPosted: Mon Jan 20, 2025 6:13 am    Post subject: Reply with quote

Code:
function UDF1_CEButton1Click(sender)
local g1=AddressList['Group 1']
 for i=0,g1.Count-1 do
  v1 = g1[i].Value
  if g1[i].Value=="100" then
    g1[i].Value="15"
    print(i..") "..v1.." >>> "..g1[i].Value)
  end
 end
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 37

PostPosted: Fri Jan 24, 2025 5:57 am    Post subject: Reply with quote

Thanks, but Cheat Engine version 7.4 Is Working
But there is an error on Cheat Engine version 7.1. Why is this so?



045457.png
 Description:
 Filesize:  6.28 KB
 Viewed:  1095 Time(s)

045457.png



045707.png
 Description:
 Filesize:  14.05 KB
 Viewed:  1095 Time(s)

045707.png


Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 34

Joined: 16 Feb 2017
Posts: 1454

PostPosted: Fri Jan 24, 2025 12:04 pm    Post subject: Reply with quote

It works fine in my case. (7.5)

Edit: There may probably be a group syntax (or definition feature) defined in versions after 7.1.



ek1.PNG
 Description:
 Filesize:  53.26 KB
 Viewed:  1065 Time(s)

ek1.PNG



_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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