User File #40976705756716878

Upload All User Files

#40976705756716878 - Zook Man ZX4 - RNG Overlay

ZM_RNG.lua
858 downloads
Uploaded 8/11/2017 9:07 AM by ThunderAxe31 (see all 111)
Simple scripts that shows on screen all next item drops.
--RNG Overlay for Zook Man ZX4 by ThunderAxe31

while true do
	gui.pixelText(129, 0, "-\nHealth Small\n-\nHealth Medium\n-\nEnergy Small\nHealth Tank\nEnergy Medium\n-\nHealth Medium\n-\nEnergy Medium\nEnergy Small\nHealth Tank\nHealth Small\n-")
	gui.pixelText(186, 0, "Life\nEnergy Small\nHealth Medium\nHealth Small\n-\nEnergy Medium\nHealth Medium\n-\nEnergy Tank\n-\nEnergy Medium\nEnergy Tank\n-\nHealth Tank\n-\nEnergy Small")
	
	RNG = memory.read_u32_le(0x17A0, "IWRAM")%32
	if RNG < 16 then
		gui.drawRectangle(129, RNG*7, 52, 6, 0xFF00FF00)
	else
		gui.drawRectangle(186, (RNG-16)*7, 52, 6, 0xFF00FF00)
	end
	
	emu.frameadvance()
end