User File #638632293877370651

Upload All User Files

#638632293877370651 (unlisted) - Sweet Home - EXP/Inventory Lua

Sweet Home.lua
Game: Sweet Home ( NES, see all files )
7 downloads
Uploaded 9/29/2024 5:56 PM by Samsara (see all 72)
i'm not a good scripter!!!
while true do

memory.usememorydomain("System Bus")

-- Item List
items = {
	"Empty","Camera (T)","Vacuum (As)","Key (Emi)","Medkit (Ak)","Lighter (K)","Camera","Broom","Wire","Pills","Matches","Wood","White Wood","Rope","Torch (Unused)","Light (Unused)","Mallet","Boots","Bowgun","Pail","Pick","Log","Pipe","Shovel","Gem","Jade Ring","Twin Keys","Gold Key","Low Key","Dirk (Unused)","Magnet (Unused)","Pulley","Box (Unused)","Amulet","Iron Key","Spear","Slide","Gas","Candle","Ladder","Diary Key","Gloves","Ax","Coffin","FireX","Photo","Dress","Flashlight","Ruby Ring","Blue Candle","Tonic","Diary","Fruit Knife","Shiv","Flash Knife","Silver Knife","Oak Spear","Old Spear (Unused)","Shiny Spear","Rune Spear","Rune Ax","Heavy Ax","Cut Ax","Silver Ax","Old Sword","Long Sword","Silver Sword","Soul Sword","Club","Mace","Pitchfork","Fork"
}

-- Array Null Fix
for i=72, 256 do
	items[i] = "Glitched Item"
end

-- Kazuo
kaz1 = memory.read_u8(0x6255)
kaz2 = memory.read_u8(0x625A)
kaz3 = memory.read_u8(0x625F)
kaz4 = memory.read_u8(0x6264)
kazxp1 = memory.read_u8(0x61DA)
kazxp2 = memory.read_u8(0x61DF)
kaztxp = kazxp2*256 + kazxp1

-- Akiko
aki1 = memory.read_u8(0x6256)
aki2 = memory.read_u8(0x625B)
aki3 = memory.read_u8(0x6260)
aki4 = memory.read_u8(0x6265)
akixp1 = memory.read_u8(0x61DB)
akixp2 = memory.read_u8(0x61E0)
akitxp = akixp2*256 + akixp1

-- Taguchi
tag1 = memory.read_u8(0x6257)
tag2 = memory.read_u8(0x625C)
tag3 = memory.read_u8(0x6261)
tag4 = memory.read_u8(0x6266)
tagxp1 = memory.read_u8(0x61DC)
tagxp2 = memory.read_u8(0x61E1)
tagtxp = tagxp2*256 + tagxp1

-- Asuka
asu1 = memory.read_u8(0x6258)
asu2 = memory.read_u8(0x625D)
asu3 = memory.read_u8(0x6262)
asu4 = memory.read_u8(0x6267)
asuxp1 = memory.read_u8(0x61DD)
asuxp2 = memory.read_u8(0x61E2)
asutxp = asuxp2*256 + asuxp1

-- Emi
emi1 = memory.read_u8(0x6259)
emi2 = memory.read_u8(0x625E)
emi3 = memory.read_u8(0x6263)
emi4 = memory.read_u8(0x6268)
emixp1 = memory.read_u8(0x61DE)
emixp2 = memory.read_u8(0x61E3)
emitxp = emixp2*256 + emixp1

local function Inv()
	gui.text(0, 200, "Kazuo: " .. kaztxp .. " XP | Held Item: " .. items[kaz1+1] .. " | Weapon: " .. items[kaz4+1], null, null)
	gui.text(0, 220, "      Item One: " .. items[kaz2+1] .. " | Item Two: " .. items[kaz3+1], null, null)
	gui.text(0, 240, "Akiko: " .. akitxp .. " XP | Held Item: " .. items[aki1+1] .. " | Weapon: " .. items[aki4+1], null, null)
	gui.text(0, 260, "      Item One: " .. items[aki2+1] .. " | Item Two: " .. items[aki3+1], null, null)
	gui.text(0, 280, "Taguchi: " .. tagtxp .. " XP | Held Item: " .. items[tag1+1] .. " | Weapon: " .. items[tag4+1], null, null)
	gui.text(0, 300, "      Item One: " .. items[tag2+1] .. " | Item Two: " .. items[tag3+1], null, null)
	gui.text(0, 320, "Asuka: " .. asutxp .. " XP | Held Item: " .. items[asu1+1] .. " | Weapon: " .. items[asu4+1], null, null)
	gui.text(0, 340, "      Item One: " .. items[asu2+1] .. " | Item Two: " .. items[asu3+1], null, null)
	gui.text(0, 360, "Emi: " .. emitxp .. " XP | Held Item: " .. items[emi1+1] .. " | Weapon: " .. items[emi4+1], null, null)
	gui.text(0, 380, "      Item One: " .. items[emi2+1] .. " | Item Two: " .. items[emi3+1], null, null)
end

	Inv()
	emu.frameadvance()
end