Here's a lua script that shows how much of the map and phonebook is completed. There are some bugs in it, but at least it works. =P
Language: lua
while true do
map = 0
denjuu1 = 0
denjuu2 = 0
gui.text(0, 0, "Map:")
gui.text(0, 7, "Denjuu (Seen):", "yellow")
gui.text(0, 14, "Denjuu (Have):", "green")
-- map flags
for m = 0xc960, 0xc97f, 1 do
if memory.readbyte(m) ~= 0 then
map = map + memory.readbyte(m)/81.92
if (map - math.floor(map)) >= 0.5 then
gui.text(17, 0, "%"..math.ceil(map))
end
gui.text(17, 0, "%"..math.floor(map))
end
end
-- Denjuu (Seen) Flags
for d = 0xC6C0, 0xc6d5, 1 do
if memory.readbyte(d) ~= 0 then
denjuu1 = denjuu1 + memory.readbyte(d)/56.32
if (denjuu1 - math.floor(denjuu1)) >= 0.5 then
gui.text(57, 7, "%"..math.ceil(denjuu1), "yellow")
end
gui.text(57, 7, "%"..math.floor(denjuu1), "yellow")
end
end
-- Denjuu (Have) Flags
for i = 0xC6e0, 0xc6f5, 1 do
if memory.readbyte(i) ~= 0 then
denjuu2 = denjuu2 + memory.readbyte(i)/56.32
if (denjuu2 - math.floor(denjuu2)) >= 0.5 then
gui.text(57, 14, "%"..math.ceil(denjuu2), "green")
end
gui.text(57, 14, "%"..math.floor(denjuu2), "green")
end
end
vba.frameadvance()
end
Known bugs:
1. At 100% completion, it'll display %990 instead of %100