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 


Need help with trainer

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

Joined: 07 Apr 2015
Posts: 38

PostPosted: Fri Nov 17, 2017 2:17 pm    Post subject: Need help with trainer Reply with quote

Hi!

I want to create a trainer where the user can input the number of coins and so on for his desire. I am VERY new to building a trainer in cheat engine so that's why I am turning to you guys to help me out if you want!

My questions are:

1.
How can I make so when the user of the trainer is clicking on a button another form will open up.

2.
How can make so the user can input a number of his desire into a textbox that will change the in-game value with help from my address in the cheat table.

3.
Where can I learn more about cheat engines own trainer system?

Thank you!
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Nov 18, 2017 7:58 am    Post subject: Reply with quote

1. call formName.show() when the button is clicked (form editor->select button->events tab->onClicked '...'->call form in created event handler function).
2. Either have the user click a button when they are done or use a hotkey or check if the key is VK_ENTER, etc., regardless once you're ready to actually write the value you can use
Code:
local value = tonumber(formName.textboxName.Text) -- returns nil on invalid number
if value
  getAddressList().getMemoryRecordByDescription('memory record name/desc').Value = value
end
example (there's a couple related ones in the repo)
3. It's using the gui components of Lazaurus (which is heavily based on Delphi) so you can start there, there's of course some information mentioned in the celua.txt file (in the CE install directory) in case you don't know about that yet. You'll find a couple youtube videos about CE Trainers but I don't remember any being particularly great / explanatory.
Back to top
View user's profile Send private message
512MB
Cheater
Reputation: 0

Joined: 07 Apr 2015
Posts: 38

PostPosted: Sun Nov 19, 2017 4:35 am    Post subject: Reply with quote

Thank you!
Back to top
View user's profile Send private message
Malinkata
How do I cheat?
Reputation: 0

Joined: 24 Nov 2017
Posts: 3

PostPosted: Fri Nov 24, 2017 11:56 am    Post subject: Reply with quote

Mate i need to make a cheat table that enables freeze value and no cost in transroad:usa can you help me please
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 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