just add _hp to the address list as an aob and then manually freeze and change the bytes to 0 (or even separately add the hps as the correct type and set to 0 by selecting all of them with shift)?
though if you already had the memory record I suppose you could just add a bit of lua like
Code:
{$lua}
local mr = AddressList.getMemoryRecordByDescription('name of added aob with _hp as address')
local t = createTimer()
t.Interval = 100
t.OnTimer = function(t)
if mr.CurrentAddress == 0 then return end -- wait until address is set
mr.Active = true -- freeze
mr.Value = ('00 '):rep(number of bytes to set)
t.destroy() -- stop checking
end
{$asm}
just add _hp to the address list as an aob and then manually freeze and change the bytes to 0 (or even separately add the hps as the correct type and set to 0 by selecting all of them with shift)?
though if you already had the memory record I suppose you could just add a bit of lua like
Code:
{$lua}
local mr = AddressList.getMemoryRecordByDescription('name of added aob with _hp as address')
local t = createTimer()
t.Interval = 100
t.OnTimer = function(t)
if mr.CurrentAddress == 0 then return end -- wait until address is set
mr.Active = true -- freeze
mr.Value = ('00 '):rep(number of bytes to set)
t.destroy() -- stop checking
end
{$asm}
Already saved aa and Got all the adresses on a ct, so its not much of an issue.
I just want to automate as much as possible - and more importantly learning by doing
Ill take a look at that lua when im at my pc again, thank you!
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