Posted 30 December 2012 - 12:42 PM
Today I have finished my playable Farkle room, with the assistance of some CC and tekkit bits. The video can be found at : http://youtu.be/kdTuu87C7b8
My scripts can be found here:
http://dl.dropbox.com/u/2934189/dice.zip
Each Screen is a 3x3 with it's own consol to represent each di, with the consol being underneath the screen parts. Redstone is piped into the back to cycle/roll the dice.
My startup for the Di computer looks like:
local roll1 = 1
local roll2 = 2
local roll3 = 3
local roll4 = 4
local roll5 = 5
local roll6 = 6
local randomnumber = math.random(6)
if randomnumber == roll1 then
shell.run ("monitor", "top", "one")
elseif randomnumber == roll2 then
shell.run ("monitor", "top", "two")
elseif randomnumber == roll3 then
shell.run ("monitor", "top", "three")
elseif randomnumber == roll4 then
shell.run ("monitor", "top", "four")
elseif randomnumber == roll5 then
shell.run ("monitor", "top", "five")
elseif randomnumber == roll6 then
shell.run ("monitor", "top", "six")
elseif redstone.getInput("back") then
shell.run ("monitor", "top", "shutdown")
end
each number thereafter looks something along the lines of:
while true do
write "#————————-#"
write "|…..###………###…..|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|…..###………###…..|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…..###………###…..|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|…..###………###…..|"
write "#————————-#"
if redstone.getInput("back") then
os.reboot ()
end
sleep (1)
term.clear ()
end
My scripts can be found here:
http://dl.dropbox.com/u/2934189/dice.zip
Each Screen is a 3x3 with it's own consol to represent each di, with the consol being underneath the screen parts. Redstone is piped into the back to cycle/roll the dice.
My startup for the Di computer looks like:
local roll1 = 1
local roll2 = 2
local roll3 = 3
local roll4 = 4
local roll5 = 5
local roll6 = 6
local randomnumber = math.random(6)
if randomnumber == roll1 then
shell.run ("monitor", "top", "one")
elseif randomnumber == roll2 then
shell.run ("monitor", "top", "two")
elseif randomnumber == roll3 then
shell.run ("monitor", "top", "three")
elseif randomnumber == roll4 then
shell.run ("monitor", "top", "four")
elseif randomnumber == roll5 then
shell.run ("monitor", "top", "five")
elseif randomnumber == roll6 then
shell.run ("monitor", "top", "six")
elseif redstone.getInput("back") then
shell.run ("monitor", "top", "shutdown")
end
each number thereafter looks something along the lines of:
while true do
write "#————————-#"
write "|…..###………###…..|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|…..###………###…..|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…………………….|"
write "|…..###………###…..|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|….#####…….#####….|"
write "|…..###………###…..|"
write "#————————-#"
if redstone.getInput("back") then
os.reboot ()
end
sleep (1)
term.clear ()
end