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 


I dont know how this would be done. please help!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sat Mar 05, 2016 9:39 am    Post subject: I dont know how this would be done. please help! Reply with quote

Ok so I am making a trainer and have a few cheats which are "Unstable" either they will work in the current session or they don't and what I want to do is have a button and after its pressed the unstable cheat checkboxes will appear or lets say a panel above the checkboxes will disappear and reveal. Something like with a message:

Code:

function GunHackBoxChange(sender)
 if (checkbox_getState(CETrainer.GunHackBox) == 1) then
showMessage('Cheat is Active')
else
if (checkbox_getState(CETrainer.GunHackBox) == 0) then
showMessage('Cheat is Inactive')


Please help.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4703

PostPosted: Sat Mar 05, 2016 11:15 am    Post subject: Reply with quote

Define "unstable". Does an AoB scan fail? Does it complete but it has no effect on the game?

If it's the first one, then it's pretty easy to fix since the AOBScan(...) function returns nil if it can't find the AoB. If that is nil, then just toggle the Visible property of the control in question (i.e. checkbox).

If it's the second one, then you need to find some way to discern if it did activate correctly and make actions based on that.

Dumb question, but why not always show the checkboxes? Maybe the users want to toggle the cheats on and off.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sat Mar 05, 2016 12:06 pm    Post subject: Reply with quote

ParkourPenguin I am making this trainer for a group I made on FB and why I want it to be hidden and after pressing a button being shown is so people don't start telling me sh*t like the cheat crashes the game or the cheat doesn't work or the cheat works in reverse (The cheat is Infinite health and it was hard to make sins the health instruction was for the player and enemy... note: no pointers could be found for health). So I am looking for a way to make a button do: When "ShowUnstableButton" is pressed remove "LockPanel". Or: When "ShowUnstableButton" is pressed make "Infinite Health" visible.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4703

PostPosted: Sat Mar 05, 2016 12:13 pm    Post subject: Reply with quote

Yeah, that's easy. Just set the "Visible" property of the checkboxes to true in the OnClick function of the button.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
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