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 


Add/subtract from matched value?

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

Joined: 29 Apr 2013
Posts: 8

PostPosted: Sun Jun 28, 2015 8:02 pm    Post subject: Add/subtract from matched value? Reply with quote

I have a value "PlayerX", and a value matched to it, "signX" to make a sign always float above the player. Is there a way to do something like (PlayerX +1) to make it 1 unit away from the player rather than in the exact same position. Everything I try doesn't seem to work.
Back to top
View user's profile Send private message AIM Address
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jun 28, 2015 8:35 pm    Post subject: Reply with quote

With absolutely no information about what it is you are currently doing, I'm going to go ahead and say yes.
Load the value of the player's position. Add 1 to it. Load the value into the sign's position.
If you're wanting more help than that, you'll need to provide some of the code you're currently using.
Back to top
View user's profile Send private message
laserpanda
How do I cheat?
Reputation: 0

Joined: 29 Apr 2013
Posts: 8

PostPosted: Sun Jun 28, 2015 8:49 pm    Post subject: Reply with quote

Zanzer wrote:
With absolutely no information about what it is you are currently doing, I'm going to go ahead and say yes.
Load the value of the player's position. Add 1 to it. Load the value into the sign's position.
If you're wanting more help than that, you'll need to provide some of the code you're currently using.


No code at the moment really.

Just using this method and putting the description Name in the value field.

Code:
http://forum.cheatengine.org/viewtopic.php?t=530003&start=0&postdays=0&postorder=asc&highlight=
Back to top
View user's profile Send private message AIM Address
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jun 28, 2015 9:14 pm    Post subject: Reply with quote

Oh, not sure if that little CE feature supports formulas. Doesn't appear to.
Back to top
View user's profile Send private message
laserpanda
How do I cheat?
Reputation: 0

Joined: 29 Apr 2013
Posts: 8

PostPosted: Sun Jun 28, 2015 10:07 pm    Post subject: Reply with quote

Zanzer wrote:
Oh, not sure if that little CE feature supports formulas. Doesn't appear to.


Is there a another relatively simple way to do it? I haven't really looked into the coding side of Cheat Engine.
Back to top
View user's profile Send private message AIM Address
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Jun 29, 2015 6:34 am    Post subject: Reply with quote

Simple? Nope.

You would need to find out what instruction is constantly accessing player location.
Inject your script there to pull the location and save it into a custom variable.
Then find out what instruction is constantly accessing the sign location.
Inject another script there to update the location with the saved value.

Of course, the game may be using that same instruction for various unit and object locations.
So you'd likely also need to filter your code to only affect the player and sign you want.
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 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