So much easier this way, thanks a lot!GreenHouse wrote: ↑Sat May 14, 2022 4:16 pmOtherwise 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.
Search found 3 matches
- 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
- 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
Thanks, I'll try this way.SinGul4ritY wrote: ↑Sat May 14, 2022 2:35 pmHey there
You have to save the other bit(s) and combine it with the 7 bits of the new value.
- 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...