User File #45438077387585608

Upload All User Files

#45438077387585608 - Chrono Trigger DS data

CTdata.lua
745 downloads
Uploaded 2/28/2018 7:10 AM by Fortranm (see all 102)
Displays enemy info and AoA info
local BackAdre = 0x20FD7F0
local HPAdre = 0x20FD7A0
local HPCAdre = 0x20FD7A2
local CarAdre = 0x20FD7E8
local Enemy = 0x2119C20

function fn()
	--Enemies
		gui.text(5,20,"Enemies", "white")
		i = 0
		E1I = memory.readword(Enemy)
		if E1I>0 and E1I<255 then
			i = i+1
			E1C = memory.readbyte(Enemy+0x4)*256+memory.readbyte(Enemy+0x3)
			E1F = memory.readbyte(Enemy+0x6)*256+memory.readbyte(Enemy+0x5)
			gui.text(5,20+10*i,"1:   Index: " .. E1I .. "   HP: " .. E1C .. "/" .. E1F, "yellow")
		end
		E2I = memory.readword(Enemy+0x80)
		if E2I>0 and E2I<255 then
			i = i+1
			E2C = memory.readbyte(Enemy+0x84)*256+memory.readbyte(Enemy+0x83)
			E2F = memory.readbyte(Enemy+0x86)*256+memory.readbyte(Enemy+0x85)
			gui.text(5,20+10*i,"2:   Index: " .. E2I .. "   HP: " .. E2C .. "/" .. E2F, "yellow")
		end
		E3I = memory.readword(Enemy+0x100)
		if E3I>0 and E3I<255 then
			i = i+1
			E3C = memory.readbyte(Enemy+0x104)*256+memory.readbyte(Enemy+0x103)
			E3F = memory.readbyte(Enemy+0x106)*256+memory.readbyte(Enemy+0x105)
			gui.text(5,20+10*i,"3:   Index: " .. E3I .. "   HP: " .. E3C .. "/" .. E3F, "yellow")
		end
		E4I = memory.readword(Enemy+0x180)
		if E4I>0 and E4I<255 then
			i = i+1
			E4C = memory.readbyte(Enemy+0x184)*256+memory.readbyte(Enemy+0x183)
			E4F = memory.readbyte(Enemy+0x186)*256+memory.readbyte(Enemy+0x185)
			gui.text(5,20+10*i,"4:   Index: " .. E4I .. "   HP: " .. E4C .. "/" .. E4F, "yellow")
		end
		E5I = memory.readword(Enemy+0x200)
		if E5I>0 and E5I<255 then
			i = i+1
			E5C = memory.readbyte(Enemy+0x204)*256+memory.readbyte(Enemy+0x203)
			E5F = memory.readbyte(Enemy+0x206)*256+memory.readbyte(Enemy+0x205)
			gui.text(5,20+10*i,"5:   Index: " .. E5I .. "   HP: " .. E5C .. "/" .. E5F, "yellow")
		end
		E6I = memory.readword(Enemy+0x280)
		if E6I>0 and E6I<255 then
			i = i+1
			E6C = memory.readbyte(Enemy+0x284)*256+memory.readbyte(Enemy+0x283)
			E6F = memory.readbyte(Enemy+0x286)*256+memory.readbyte(Enemy+0x285)
			gui.text(5,20+10*i,"6:   Index: " .. E6I .. "   HP: " .. E6C .. "/" .. E6F, "yellow")
		end
		E7I = memory.readword(Enemy+0x300)
		if E7I>0 and E7I<255 then
			i = i+1
			E7C = memory.readbyte(Enemy+0x304)*256+memory.readbyte(Enemy+0x303)
			E7F = memory.readbyte(Enemy+0x306)*256+memory.readbyte(Enemy+0x305)
			gui.text(5,20+10*i,"7:   Index: " .. E7I .. "   HP: " .. E7C .. "/" .. E7F, "yellow")
		end
		E8I = memory.readword(Enemy+0x380)
		if E8I>0 and E8I<255 then
			i = i+1
			E8C = memory.readbyte(Enemy+0x384)*256+memory.readbyte(Enemy+0x383)
			E8F = memory.readbyte(Enemy+0x386)*256+memory.readbyte(Enemy+0x385)
			gui.text(5,20+10*i,"8:   Index: " .. E8I .. "   HP: " .. E8C .. "/" .. E8F, "yellow")
		end

	--Arena of Ages
		Back = memory.readword(BackAdre)
		HP = memory.readword(HPAdre)
		HPC = memory.readword(HPCAdre)
		Car = memory.readword(CarAdre)
		gui.text(5,130,"Arena of Ages", "white")
		gui.text(5,140,"Prize: " .. bit.tohex(Back, 4), "yellow")
		gui.text(5,150,"Strength: 4011; Magic: 4012; Speed: 4013", "white")
		gui.text(5,160,"HP: " .. HP .. "   HP Change: " .. HPC .. "   Item: " .. bit.tohex(Car, 4), "yellow")
	
end
gui.register(fn)