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 


Script Help

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

Joined: 06 Aug 2013
Posts: 2

PostPosted: Tue Aug 06, 2013 11:51 pm    Post subject: Script Help Reply with quote

Hi im kinda a noob to scripting and I have this huge cheat table for a game and a bunch of hacks set to hotkeys for example god mode pressing numpad 1 sets health to 0 and locks it pressing numpad 0 sets health to 100 and unlocks it well its about time I made a trainer. I want it so instead of hitting a hotkey you click a checkbox and it does what numpad 1 would do and unchecking it does what numpad 0 would do. Like I said I no nothing about lua scripts. can I make it so when I check the box it activates numpad 1 or something. Help would be greatly appreciated Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Aug 09, 2013 3:25 am    Post subject: Reply with quote

something like this might work:
Code:

function CheckBoxNameChange(sender)
  local mr=getAddressList().getMemoryRecordByDescription('aaa')

  if sender.Checked==true then
    mr.Active=true
    mr.Value=0
  else
    mr.Active=false
    mr.Value=100
  end
end

where aaa is the name of your cheat entry

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
PRO-DRIPPY
How do I cheat?
Reputation: 0

Joined: 06 Aug 2013
Posts: 2

PostPosted: Mon Aug 12, 2013 1:51 pm    Post subject: Reply with quote

Perfect. Thanks Alot this really helped and allowed me to make a full trainer.
I know visual basic code really well but never coded in lua Very Happy
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