--MM1 Any% Lua script by Nudua --Green = Good local startY = 10; local startX = 10; local offset = 50; local yOffset = 12; local function DrawMemory(x,y,position,correctPosition) local xPos = startX + (x * offset); local yPos = startY + (y * yOffset); gui.text(xPos, yPos, string.format("%02x (%02x)", position, correctPosition),"green","black"); --if(x ~= 0) then --if (position == correctPosition) then -- gui.text(xPos,startY - yOffset,correctPosition,"green","black"); -- gui.text(xPos,startY,position,"green","black"); -- else -- gui.text(xPos,startY - yOffset,correctPosition,"red","black"); -- gui.text(xPos,startY,position,"red","black"); -- end -- if --else -- gui.text(xPos,startY - yOffset,correctPosition,"green","black"); -- gui.text(xPos,startY,position,"green","black"); --end --if end -- DrawMemory local function FuncMain() --gui.text(x,y,"text") -- $482=8A $483=50 $484=13 -- $498=4A $499=20 $49A=60 $49B=C4 -- $605=20 $606=82 $607=04 -- --readbyteunsigned --local xPos = memory.readbyte(0x90); --x-pos local x1 = memory.readbyte(0x482); -- 8A -- 1st Bullet local x2 = memory.readbyte(0x483); -- 50 -- 2nd Bullet local x3 = memory.readbyte(0x484); -- 13 -- 3rd Bullet local y1 = memory.readbyte(0x498); -- 4A local y2 = memory.readbyte(0x499); -- 20 local y3 = memory.readbyte(0x49A); -- 60 local y4 = memory.readbyte(0x49B); -- C4 local z1 = memory.readbyte(0x605); -- 20 local z2 = memory.readbyte(0x606); -- 82 local z3 = memory.readbyte(0x607); -- 04 --DrawMemory(0, xPos, 00); DrawMemory(0, 0, x1, 0x8A); DrawMemory(1, 0, x2, 0x50); DrawMemory(2, 0, x3, 0x13); DrawMemory(0, 1, y1, 0x4A); DrawMemory(1, 1, y2, 0x20); DrawMemory(2, 1, y3, 0x60); DrawMemory(3, 1, y4, 0xC4); DrawMemory(0, 2, z1, 0x20); DrawMemory(1, 2, z2, 0x82); DrawMemory(2, 2, z3, 0x04); end -- FuncMain while 1 do FuncMain(); FCEU.frameadvance() end