View previous topic :: View next topic |
Author |
Message |
TheRunner How do I cheat? Reputation: 0
Joined: 14 Apr 2018 Posts: 8
|
Posted: Sat Apr 14, 2018 5:44 pm Post subject: Conditional Commands |
|
|
Not sure if this was answered before but I checked a few other topicd and not a single one of those that I checked answered my question or what I needed.
My question would be, how can I allow Cheat Engine to change a value when a specific value is being written to an address? For example I want the value at the address 2091E019 to be 04 when the address of 20A2BC31 gets the value 32. What if I want two conditions or more in order to change the value stored some where else. Thanks to whoever wants to be of help.
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Sat Apr 14, 2018 5:53 pm Post subject: |
|
|
Use Lua.
Code: | if readInteger(0x20A2BC31) == 32 then
writeInteger(0x2091E019, 4)
end |
A timer can periodically call this code. If the value changes often and you don't want to miss it, put the code in a callback to a breakpoint.
Code injection is also an option.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
TheRunner How do I cheat? Reputation: 0
Joined: 14 Apr 2018 Posts: 8
|
Posted: Sat Apr 14, 2018 8:46 pm Post subject: |
|
|
That did what I wanted it to do, but I wonder if there is a way to keep this code running? For example I want it to replace the value at that address each and every time that 32 is being written, without having to click for it.
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
|
Back to top |
|
|
TheRunner How do I cheat? Reputation: 0
Joined: 14 Apr 2018 Posts: 8
|
Posted: Sat Apr 14, 2018 8:58 pm Post subject: |
|
|
I never used Lua before, so I am hoping that I can see how the full code would look like with the timer. I would not know at what part to place the timer.
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
|
Back to top |
|
|
TheRunner How do I cheat? Reputation: 0
Joined: 14 Apr 2018 Posts: 8
|
Posted: Sat Apr 14, 2018 10:13 pm Post subject: |
|
|
Can you stop sending me to links? All I need is what I asked, I have seen these before but I cannot seem to follow them.
|
|
Back to top |
|
|
|