HUD v0.0000001. Bonus damage and enemy HP.
--lua script for gens rerecording+lua: http://code.google.com/p/gens-rerecording/
--purpose: HUD in Landstalker (U).
--written by Truncated 2015-05-03.
--
gui.register( function ()
--bonus damage
crit = memory.readwordunsigned(0xFF0FAA)
crit = crit / 0x10000 * 100
message1 = string.format("DMG: %2.2f", crit)
gui.text(150, 184, message1.."%", "white", "black")
--enemy HP
start = 0xFF54BE
offset = 0x80
gui.text(100, 100, "Enemy HP", "white", "black")
for i = 0, 10 do
--whole = memory.readbyteunsigned(start + i*offset)
--frac = memory.readbyteunsigned(start + i*offset + 1) --/0x100*100
--gui.text(100, 110+i*10, string.format("%d: %d.%02d", i, whole, frac), "white", "black") --gives rounding errors
gui.text(100, 110+i*10, string.format("%02d: %3.2f", i, memory.readwordunsigned(start + i*offset)/0x100), "white", "black")
end
end)