I was browsing the GUI section of these forums and found a neat code to add a console of sorts to my mudlet to show me which affs I have.. I've changed the few things which needed changing to meet my needs but I seem to be having an error..
The error is, the window is showing perfect but it always shows the 'false' and 'true' afflictions..
function init()
winX, winY = getMainWindowSize()
createMiniConsole("aff_display", winX-530,420,510,180)
setBackgroundColor("aff_display", 150, 150, 150, 255)
setMiniConsoleFontSize( "aff_display", 10 )
setFgColor("aff_display", 10, 0, 0)
setBgColor("aff_display", 150, 150, 150)
end
init()
function refreshAffs()
clearWindow("aff_display")
echo("aff_display","\nAfflictions:\n\n")
for k,v in pairs(afflictionQueue) do
echo("aff_display", k.."\n")
end
end
the table which I am trying to show -
table {
'impatience': false
'blindness': false
'indifference': false
'insulation': false
'stupidity': false
'epilepsy': false
'deafness': false
}