User File #637828247509802237

Upload All User Files

#637828247509802237 - [DQ9] DeSmuME HUD - AT, BT, Fountain Group (EN)

DeSmuME_HUD_EN.lua
121 downloads
Uploaded 3/14/2022 3:19 AM by TKG (see all 6)
For DeSmuME - US/EU ROM
AT: A-table hex value
BT: B-table hex value
FG: Fountain Group
--DeSmuME_HUD_EN

local AT, BT
local FG = {
   [0] = "0RE",
   [1] = "ST0NE",
   [2] = "WATER",
   [3] = "FL0WER",
   [4] = "SEA",
   [5] = "GRASS",
   [6] = "MUSHR00M",
   [7] = "SAND",
   [8] = "?????"
}

gui.register(function()
   AT = string.format("%02X", memory.readdword(0x020EEF30))
   gui.text(10,-168,"AT: " .. AT)
   BT = string.format("%02X", memory.readdword(0x02108DDC))
   gui.text(10,-157,"BT: " .. BT)
   gui.text(10,-146,"FG: " .. FG[memory.readbyte(0x020F90B2)])
end)