I want to set a specific address to a certain value, only if a specific condition is met.
I do something like this:
Code: Select all
NameAddress = 0x7FF4FD277A78
StatAddress = 0x7FF4FD277A4C
Name = readString(NameAddress)
--I get the name L. MESSI
print (Name)
if string.find(Name, "L. MESSI") then
--??
How can I set values in that range, without modifying other areas of the memory (in this case the Ball Winning stat, on the same address)?