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 


Edit.Text flashing on/off

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Sun Oct 01, 2017 10:36 am    Post subject: Edit.Text flashing on/off Reply with quote

Code:

tde = createTimer(nil);
tde.Interval = 3000;
tde.onTimer = function(displayedits)
                local AL = getAddressList();
                battlebyte = addresslist_getMemoryRecordByDescription(AL, "Battle Byte");
                enemyone = addresslist_getMemoryRecordByDescription(AL, "Enemy 1 HP");
                enemytwo = addresslist_getMemoryRecordByDescription(AL, "Enemy 2 HP");
                enemythree = addresslist_getMemoryRecordByDescription(AL, "Enemy 3 HP");
                enemyfour = addresslist_getMemoryRecordByDescription(AL, "Enemy 4 HP");
                if tonumber(battlebyte.Value) == 128 then
                   trainer.enemyone_edit.Text = enemyone.Value;
                   trainer.enemytwo_edit.Text = enemytwo.Value;
                   trainer.enemythree_edit.Text = enemythree.Value;
                   trainer.enemyfour_edit.Text = enemyfour.Value;
                else
                   trainer.enemyone_edit.Text = nil;
                   trainer.enemytwo_edit.Text = nil;
                   trainer.enemythree_edit.Text = nil;
                   trainer.enemyfour_edit.Text = nil;
                end--if tonumber(battlebyte) == 128 then
                end--function(displayedits)
tde.Enabled = true;


The values displayed in the edits cycle between values and nil
The value of battlebyte remains 128.
During the code to build the text values of the edits boxes are not referenced.
Stupid question but how do I get them to stay on continuously when battlebyte is 128?
Back to top
View user's profile Send private message Yahoo Messenger
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