X,Y,Z positions for Fifth Element
local XTEXT = 10
local YTEXT = 60
while true do
POINTER = memory.read_u32_le(0x0A68AC) - 0x80000000
X_AXIS = memory.read_s32_le(POINTER + 0x200)
Y_AXIS = memory.read_s32_le(POINTER + 0x208)
Z_AXIS = memory.read_s32_le(POINTER + 0x204)
--gui.text(XTEXT,YTEXT, "X AXIS: " ..string.format("%08X",(X_AXIS)), "white")
gui.text(XTEXT,YTEXT, "X AXIS: " ..(X_AXIS), "white")
gui.text(XTEXT,YTEXT+20, "Y AXIS: " ..(Y_AXIS), "white")
gui.text(XTEXT,YTEXT+40, "Z AXIS: " ..(Z_AXIS), "white")
--gui.text(XTEXT,YTEXT+80, "POINTER: " ..string.format("%08X",(POINTER)), "white")
emu.frameadvance()
end