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 


Application of multiple values at once to different values

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

Joined: 21 Aug 2018
Posts: 17

PostPosted: Fri Oct 19, 2018 8:16 am    Post subject: Application of multiple values at once to different values Reply with quote

I've been try to figure out how to change multiple addresses at once (to different values), but can't seem to find a way to do this.

For instance, I'd like to apply all of the following at once:
Set value at 00B02A7A to 1A
Set value at 00B02A7B to 54
Set value at 00B02A7C to F0
Set value at 00B02A7D to 02

I don't need cheat engine to "continuously" apply these values, but rather simply apply them once and then let the game resume changing them as needed. Anyone have any ideas on how to accomplish this?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Fri Oct 19, 2018 8:38 am    Post subject: Reply with quote

Add the address 00b02a7a to the address list, set the value type to 4-bytes, and set the value to 0x02f0541a. You can also use array of bytes.

If it's not contiguous, pause the process (advanced options menu), make the changes, and then resume the process.

Multiple continuous calls to RPM (i.e. via Lua) would probably be fast enough that the game wouldn't notice the intermediate state.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Outlivinglife
Newbie cheater
Reputation: 0

Joined: 21 Aug 2018
Posts: 17

PostPosted: Fri Oct 19, 2018 8:59 am    Post subject: Reply with quote

How would I got about using LUA? I'm not familiar with the LUA language, but of course with a general template, I could use that template to accomplish what I need.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Fri Oct 19, 2018 9:11 am    Post subject: Reply with quote

Code:
writeInteger('00b02a7a', 0x02f0541a)
writeBytes('00b02a7a', 0x1a, 0x54, 0xf0, 0x02)

Read celua.txt for documentation and search through these forums for examples. The wiki may also have more information.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Outlivinglife
Newbie cheater
Reputation: 0

Joined: 21 Aug 2018
Posts: 17

PostPosted: Fri Oct 19, 2018 9:39 am    Post subject: Reply with quote

Perfect! Works like a charm Smile
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