Posted 11 November 2012 - 12:10 PM
The error is on this line:
getShop is:
I am so close to releasing this FTL like clone, this is almost the only thing left until I can release it D:)
local choice, price, stuff = getShop(selc, data)
getShop is:
local choices = {}
choices = {
{"|==========|",
"| REPAIR 1 |",
"|==========|"},
{"|============|",
"| REPAIR ALL |",
"|============|"},
{"|==============|",
"|UPGRADE ARMOUR|",
"|==============|"},
{"|==============|",
"|UPGRADE DAMAGE|",
"|==============|"},
{"|================|",
"|UPGRADE ACCURACY|",
"|================|"},
{"|=============|",
"|UPGRADE SPEED|",
"|=============|"},
{"|=================|",
"|UPGRADE WEP-SPEED|",
"|=================|"},
{"|==============|",
"|UPGRADE HEALTH|",
"|==============|"},
{"|===================|",
"|UPGRADE EVASIVENESS|",
"|===================|"},
}
prices = {
1,
shp.stat.maxhealth - shp.stat.health,
150,
250,
400,
100,
300,
100,
350
}
local pixels = {}
local choice = choices[sel]
local price = prices[sel]
for y=1,#choice do
local l = choice[i]
for x=1,string.len(l) do
local ch = string.sub(l, x, x)
pixels[#pixels + 1] = art.setPixel(x, y, nil, colors.blue, ch)
end
end
local pixarr = art.createPixelArray(pixels)
return choice, price, pixarr
I am so close to releasing this FTL like clone, this is almost the only thing left until I can release it D:)