Posted: Wed Oct 09, 2024 2:37 am Post subject: How to change multiple adresses without ending with the same
Hello, I want to change a lot of addresses at the same time but the problem is that each address has different values. I usually just select them all with Shift pressed and change the number, but if I do that it crashes cause it modifies every address but returns just 1 value. I want to multiply every address at the same time without modifying the base value of each address, is it possible?
Open the Lua engine and select the addresses, you want to multiply their values. Change the mul_factor to suit your needs
Code:
local selected_records = getAddressList().getSelectedRecords()
local mul_factor = 2
for k, v in pairs(selected_records) do
--print(v.value)
v.value = v.value * mul_factor
end
Note, that this would only work on integers. If you want to multiply a float then add .0 to the end of the number
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