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 


how to automatically Update a value by other address value

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

Joined: 21 Oct 2013
Posts: 5

PostPosted: Mon Oct 21, 2013 10:57 pm    Post subject: how to automatically Update a value by other address value Reply with quote

Dear ppl
I tried to find the answer but I couldn't, the question is
I want the value of address1 changes automatically by value of address2,
for example ad2 is 1000 right now, so i want ad1 changes to 900 ( decrease by 100) or if ad2 became 800, ad1 changes to 700

Address 1 : <VariableType>4 Bytes</VariableType>
<Address>"game.dll"+00FBD5A8</Address>
- <Offsets>
<Offset>2EA</Offset>
<Offset>54</Offset>
<Offset>d</Offset>
<Offset>6</Offset>
<Offset>34</Offset>
<Offset>8</Offset>
</Offsets>
Address 2 : <Address>game.dll+FBC2B0</Address>
( I copied them from my .ct file )

btw the main process is game.exe

hop i could tell you what I'm looking for

thanks in advanced
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Oct 22, 2013 3:40 am    Post subject: Reply with quote

If you just wanted the value to be equal,. then just (description) would be enough, but since you want -100 it's going to be a bit more annoying

First freeze the address, and then change the value to:
Code:

[getAddressList().getMemoryRecordByDescription('Address 2').Value-100]


Now whenever the entry with description "Address 2" changes, the value will change to that value - 100

You can also use it in hotkeys. First hotkey freezes it, and the second hotkey (with the same key combination) sets that value

_________________
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
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Oct 22, 2013 10:20 am    Post subject: Reply with quote

You can also use assembly by constantly storing the value at address #2, subtract 100 and mov that value to address #1.
Back to top
View user's profile Send private message
cavalier3003
How do I cheat?
Reputation: 0

Joined: 21 Oct 2013
Posts: 5

PostPosted: Tue Oct 22, 2013 10:49 am    Post subject: Reply with quote

thanks for your advice but i have to say im totaly noob about coding, i donno where to put this code and how to active them, all I learned is multiple pointers and set the hot key, right now im using hot key to change the value in address1 but its a but annoying cause sometimes i have to change 5times in 20sec so i was searching to find a way to change it automatically.

thanks again for your reply.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Oct 22, 2013 2:01 pm    Post subject: Reply with quote

Freeze the address by checking the Active checkbox and then doubleclick the value and give as new value:
Code:

[getAddressList().getMemoryRecordByDescription('Address 2').Value-100]

Replace the "Address 2" part with the description of the cheat entry of the other address (can be a pointer)

It will then continuously update

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

Joined: 21 Oct 2013
Posts: 5

PostPosted: Wed Oct 23, 2013 6:27 am    Post subject: Reply with quote

Dark Byte wrote:
Freeze the address by checking the Active checkbox and then doubleclick the value and give as new value:
Code:

[getAddressList().getMemoryRecordByDescription('Address 2').Value-100]

Replace the "Address 2" part with the description of the cheat entry of the other address (can be a pointer)

It will then continuously update


I donno how to thank you, it worked, mmeeeeeeggaaaaaaa thanks bro, i was looking for something like this since 2years ago and you solved my problem Smile
thank you bro thank you
Back to top
View user's profile Send private message
cavalier3003
How do I cheat?
Reputation: 0

Joined: 21 Oct 2013
Posts: 5

PostPosted: Fri Oct 25, 2013 3:48 am    Post subject: Reply with quote

I have another question,
Is there any way to set the min value to 1000? i mean even if the value of address 2 is 1050, the result remains 1000.

thanks in advanced
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Oct 25, 2013 3:57 am    Post subject: Reply with quote

Try something like this:
Code:

[math.max(1000, getAddressList().getMemoryRecordByDescription('Address 2').Value-100])]


math.max picks the highest value of the 2. If address 2's value-100 is smaller than 1000, it returns 1000 instead

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

Joined: 21 Oct 2013
Posts: 5

PostPosted: Sat Oct 26, 2013 2:27 pm    Post subject: Reply with quote

Dark Byte wrote:
Try something like this:
Code:

[math.max(1000, getAddressList().getMemoryRecordByDescription('Address 2').Value-100])]


math.max picks the highest value of the 2. If address 2's value-100 is smaller than 1000, it returns 1000 instead


your are awesome Smile it works
thanks a lot bro
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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