Did someone still improve AW2? I have saved 43 frames in mission2 and 173 frames all.
I didn't improve criticaluser's wip, but I Manipulate luck in mission1 for getting the better luck in mission2.
http://dehacked.2y.net/microstorage.php/info/267838595/AW2wip.vbm
I write this lua to display HP and RNG
Download AW2hp.luaLanguage: lua
local hero1 = 0x02022694
--local enemy1 = 0x02022994
local x0 = 0x0201E454
local y0 = 0x0201E456
-- 0x0201D510 0x0201E454 0x03007CB8:rng 0x03003FCD:fog
while true do
gui.text(0,0,"Pow1: "..memory.readdword(0x020232E0),"green")
gui.text(60,0,"Pow2: "..memory.readdword(0x0202331C),"green")
gui.text(120,0,"Pow3: "..memory.readdword(0x02023358),"green")
gui.text(180,0,"Pow4: "..memory.readdword(0x02023394),"green")
for i=1,256 do
if memory.readbyte(hero1+12*(i-1)-4)>0 then
x1=16*memory.readbyte(hero1+12*(i-1)-2)-memory.readshort(x0)
y1=16*memory.readbyte(hero1+12*(i-1)-1)-memory.readshort(y0)
if memory.readbyte(hero1+12*(i-1))>0 and memory.readbyte(hero1+12*(i-1))<100 then
gui.text(x1+8,y1+4,memory.readbyte(hero1+12*(i-1)),"yellow")
elseif memory.readbyte(hero1+12*(i-1))>128 and memory.readbyte(hero1+12*(i-1))<228 then
gui.text(x1+8,y1+4,memory.readbyte(hero1+12*(i-1))-128,"yellow")
end
if memory.readbyte(0x03003FCD)==1 then --fog
gui.text(x1,y1,memory.readbyte(hero1+12*(i-1)-4),"red")
end
end
end
gui.text(64,8,"RNG:"..string.format("%X",memory.readdword(0x03001FD4)))
gui.text(120,8,"OldRNG:"..string.format("%X",memory.readdword(0x030044B8)))
vba.frameadvance()
end