Search found 3 matches

by Dante_IT
Sun May 15, 2022 2:17 pm
Forum: Cheat Engine Lua Scripting
Topic: How to set a specific address to a certain value after IF condition with LUA
Replies: 4
Views: 6612

Re: How to set a specific address to a certain value after IF condition with LUA

GreenHouse wrote:
Sat May 14, 2022 4:16 pm
Otherwise the easier way is to use "getMemoryRecordByDescription".
AddressList.getMemoryRecordByDescription('Heading').Value = '99'
That way it will automatically use the value type that you chose. So you don't need to deal with binary calculations.
So much easier this way, thanks a lot!
by Dante_IT
Sat May 14, 2022 3:19 pm
Forum: Cheat Engine Lua Scripting
Topic: How to set a specific address to a certain value after IF condition with LUA
Replies: 4
Views: 6612

Re: How to set a specific address to a certain value after IF condition with LUA

SinGul4ritY wrote:
Sat May 14, 2022 2:35 pm
Hey there
You have to save the other bit(s) and combine it with the 7 bits of the new value.
Thanks, I'll try this way.
by Dante_IT
Sat May 14, 2022 8:22 am
Forum: Cheat Engine Lua Scripting
Topic: How to set a specific address to a certain value after IF condition with LUA
Replies: 4
Views: 6612

How to set a specific address to a certain value after IF condition with LUA

Hello, I'm using a table for PES 2021 by xAranaktu. I want to set a specific address to a certain value, only if a specific condition is met. I do something like this: NameAddress = 0x7FF4FD277A78 StatAddress = 0x7FF4FD277A4C Name = readString(NameAddress) --I get the name L. MESSI print (Name) if s...