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 would you auto increment a value every few seconds?

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

Joined: 16 Aug 2013
Posts: 5

PostPosted: Mon Jun 01, 2015 9:38 am    Post subject: How would you auto increment a value every few seconds? Reply with quote

Hey, I remembered about cube world and wanting to see a big generated map, just got the idea of using cheat engine to teleport the player automatically Smile

I found a table that has the ability to edit the location, so just need it to automatically update itself. Would it be easy to form some sort of a loop where it'd go in a square of however big you set it? Something a bit like this -

Code:
xloc = something
zloc = something
for x in range(-100, 100)
    for z in range(-100, 100):
        newxloc = xloc+x
        newzloc = zloc+z
        wait(3)


Or even better, maybe something like this where it'd just keep going.
Code:
xloc = something
zloc = something
while True:
    i = 1
    for x in range(-i, i):
        for z in range(-i, i):
            if x not in range(-i+1, i-1) and y not in range(-i+1, i-1):
                newxloc = xloc+x
                newzloc = zloc+z
                wait(3)


I only know the basics of cheat engine so if someone could explain or post a link of what to do that'd be great Smile
Back to top
View user's profile Send private message
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Mon Jun 01, 2015 4:28 pm    Post subject: Reply with quote

i did not understood for what you using the loop?
Back to top
View user's profile Send private message
JustAnotherGuy
How do I cheat?
Reputation: 0

Joined: 16 Aug 2013
Posts: 5

PostPosted: Mon Jun 01, 2015 5:11 pm    Post subject: Reply with quote

Well, it's kinda meant as an example of what I'm after, it's simple but obviously not compatible with cheat engine so was wondering if anyone who knows the relevant language might be able to help convert it into something usable Smile Or even that what I'm after isn't that uncommon so there might be existing methods to do it

Just did the example as it's quite easy to understand and does actually work as python code :p
Back to top
View user's profile Send private message
Alamer99
Expert Cheater
Reputation: 1

Joined: 04 Jan 2015
Posts: 136

PostPosted: Wed Jun 03, 2015 2:28 pm    Post subject: Reply with quote

Use Timers
And To Get A Random Number Use
Code:
math.random(Start,End)
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