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 


Possibility of Automatic Value Updating or Value Pausing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
emgray
How do I cheat?
Reputation: 0

Joined: 05 Dec 2012
Posts: 4

PostPosted: Thu Mar 14, 2013 2:21 pm    Post subject: Possibility of Automatic Value Updating or Value Pausing Reply with quote

This is what I would like to know how to do, I pick an address whose value goes down and when it goes below or comes to a certain number the value will be updated to become a higher number.

i.e. I select an address where the value goes 8 7 6 5 4 3 but when it comes to 2 the value gets updated to 8 again and this goes on and on until I'm done.

Also, what about something which will pause the value of the address I select, so the 8 will always stay an 8?

Hope you can help.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Mar 14, 2013 7:54 pm    Post subject: Reply with quote

It's possible.
Create a timer and in there read the address util action is required
You can read a address directly, or make use of a memory record object you can activate(freeze) or setValue

_________________
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
emgray
How do I cheat?
Reputation: 0

Joined: 05 Dec 2012
Posts: 4

PostPosted: Fri Mar 15, 2013 5:49 am    Post subject: Reply with quote

How do I actually do the things that you are suggesting?

I'm very much a beginner when it comes to cheat engine and the most that I've done with the program is to find and change values.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Mar 15, 2013 12:36 pm    Post subject: Reply with quote

something like this:
Code:

function doCheck(sender)
  if freeze or (readInteger(0x00400500)<=2) then
    writeInteger(0x00400500, 8);  --if this is a fast changing value then I recommend a code injection instead
  end
end

freeze=false
t=createTimer(nil)
timer_onTimer(t, doCheck)
timer_setInterval(t, 50)


then when you wish to freeze you can just execute "freeze=true" to make it pause at 8 all the time

_________________
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
emgray
How do I cheat?
Reputation: 0

Joined: 05 Dec 2012
Posts: 4

PostPosted: Fri Mar 15, 2013 4:07 pm    Post subject: Reply with quote

Very Helpful!

The first time I tried it, it worked without any problems.
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