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 


Value to Variable & Show in Messagebox [Resolved]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Derpicus
Newbie cheater
Reputation: 1

Joined: 30 Mar 2016
Posts: 15

PostPosted: Sat Apr 02, 2016 5:11 am    Post subject: Value to Variable & Show in Messagebox [Resolved] Reply with quote

I know showMessage("Text") does the messagebox.

My question is how to get a value from my CT and save it to a variable: so I can both use it in a messagebox, and in conditionals.

Is it like:
VariableName=getAddressList().getMemoryRecordByDescription("Description").SomeOtherStuff?

Then showMessage(VariableName)?

I'm wanting to make some good trainers to release, here, and am new to Lua; sorry for the noob-ish questions.

I tried using:
MemoryRecord001 = getAddressList().getMemoryRecordByDescription("Description")
showMessage(getValue(MemoryRecord001))

But.. that gives me an error. Any help is appreciated!


Last edited by Derpicus on Sat Apr 02, 2016 7:06 am; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Apr 02, 2016 5:25 am    Post subject: Reply with quote

Code:
getMemRecByDesc = getAddressList().getMemoryRecordByDescription
MemoryRecord001 = getMemRecByDesc("Description")
showMessage(MemoryRecord001.Value)

_________________
Back to top
View user's profile Send private message MSN Messenger
Derpicus
Newbie cheater
Reputation: 1

Joined: 30 Mar 2016
Posts: 15

PostPosted: Sat Apr 02, 2016 5:39 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Code:
getMemRecByDesc = getAddressList().getMemoryRecordByDescription
MemoryRecord001 = getMemRecByDesc("Description")
showMessage(MemoryRecord001.Value)

Thanks for the quick reply, man; and the best part is that it works!
So far, this is one of the best online communities that I've seen.
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