Creates a number display on a northern wall. Adjust the the spawn(object, level, x, y, facing, [id]) near the beginning depending on where you want to place it. Use functions make0() through make9() to display a number, and removelight() before adding another.
Code: Select all
function makelight()
for i=1,25 do
spawn("fx", 1, 5, 11, 3, "lcd"..i)
local lcd = findEntity("lcd"..i)
lcd:setLight(1,0,0,500,0.3, 360000, false)
end
end
function removelight()
for i=1,25 do
local lcd = findEntity("lcd"..i)
lcd:setLight(1,0,0,500,0.3, .1, false)
end
end
function num0()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd10:translate(1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd16:translate(-1,1,1.3)
lcd20:translate(1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num1()
lcd1:translate(-1,2.5,1.4)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd8:translate(0,2,1.3)
lcd13:translate(0,1.5,1.3)
lcd18:translate(0,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num2()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd10:translate(1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd16:translate(-1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num3()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd10:translate(1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd20:translate(1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num4()
lcd1:translate(-1,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd10:translate(1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd20:translate(1,1,1.3)
lcd25:translate(1,0.5,1.3)
end
function num5()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd20:translate(1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num6()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd16:translate(-1,1,1.3)
lcd20:translate(1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num7()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd10:translate(1,2,1.3)
lcd15:translate(1,1.5,1.3)
lcd20:translate(1,1,1.3)
lcd25:translate(1,0.5,1.3)
end
function num8()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd10:translate(1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd16:translate(-1,1,1.3)
lcd20:translate(1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function num9()
lcd1:translate(-1,2.5,1.3)
lcd2:translate(-0.5,2.5,1.3)
lcd3:translate(0,2.5,1.3)
lcd4:translate(0.5,2.5,1.3)
lcd5:translate(1,2.5,1.3)
lcd6:translate(-1,2,1.3)
lcd10:translate(1,2,1.3)
lcd11:translate(-1,1.5,1.3)
lcd12:translate(-0.5,1.5,1.3)
lcd13:translate(0,1.5,1.3)
lcd14:translate(0.5,1.5,1.3)
lcd15:translate(1,1.5,1.3)
lcd20:translate(1,1,1.3)
lcd21:translate(-1,0.5,1.3)
lcd22:translate(-0.5,0.5,1.3)
lcd23:translate(0,0.5,1.3)
lcd24:translate(0.5,0.5,1.3)
lcd25:translate(1,0.5,1.3)
end
function make0()
makelight()
num0()
end
function make1()
makelight()
num1()
end
function make2()
makelight()
num2()
end
function make3()
makelight()
num3()
end
function make4()
makelight()
num4()
end
function make5()
makelight()
num5()
end
function make6()
makelight()
num6()
end
function make7()
makelight()
num7()
end
function make8()
makelight()
num8()
end
function make9()
makelight()
num9()
end