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 


Using user defined symbols in dropdown selection options?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
MuckySpud
Newbie cheater
Reputation: 0

Joined: 06 Jun 2020
Posts: 12

PostPosted: Sun Dec 15, 2024 6:48 pm    Post subject: Using user defined symbols in dropdown selection options? Reply with quote

Hey there, I was wondering if there is a way to get the dropdown selection options to read user defined symbols as I am currently dealing with a value that changes often. I have found where the value is generated and have created a lua script to turn the value into a user generated symbol which in this instance I will call Test123.

I then have went into the dropdown list and have tried Test123:Description in the list but it will not pick up my defined user symbol and just shows the raw value instead of my description. I know the user defined symbol is setup correctly as if I go to add an address manually it picks up the value once I type in Test123. It seems pretty straightforward so I am hoping there is a simple way to enable the list to view my user defined symbol which will make dealing with this troublesome value so much easier, any help would be appreciated thanks.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 148

Joined: 06 Jul 2014
Posts: 4594

PostPosted: Sun Dec 15, 2024 8:34 pm    Post subject: Reply with quote

Dropdown list value matching looks to be a simple case-insensitive string comparison. If you need the description to display in the address list, modify the dropdown list using Lua.

If you don't need that, you can run arbitrary Lua code when setting a memory record's value by using parenthesis. e.g. the dropdown line `(math.random(1,10)):rand` would set it to a random value between 1 and 10
Parenthesis can also be used to set the value to the value of another memory record. Put the other memory record's description in parenthesis.

_________________
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
MuckySpud
Newbie cheater
Reputation: 0

Joined: 06 Jun 2020
Posts: 12

PostPosted: Sat Dec 21, 2024 10:46 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Dropdown list value matching looks to be a simple case-insensitive string comparison. If you need the description to display in the address list, modify the dropdown list using Lua.

If you don't need that, you can run arbitrary Lua code when setting a memory record's value by using parenthesis. e.g. the dropdown line `(math.random(1,10)):rand` would set it to a random value between 1 and 10
Parenthesis can also be used to set the value to the value of another memory record. Put the other memory record's description in parenthesis.


Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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