http://pastebin.com/B655dD0K
Edited by ZippoMoon, 16 January 2016 - 10:39 PM.
Posted 16 January 2016 - 10:37 PM
Edited by ZippoMoon, 16 January 2016 - 10:39 PM.
Posted 16 January 2016 - 10:44 PM
print("Vault Door Lock: - [1] "VDL)
--# Should be
print("Vault Door Lock: - [1]"..tostring(VDL))
--#You need to combine them. Use .. to combine strings.
Also, same for the OTHER lines that are going to error as well.rs.setBundledOutput(side,colors.test(rs.getBundledInput(side),colors.white) and colors.subtract(rs.getBundledInput(side),colors.white) or colors.combine(rs.getBundledInput(side),colors.white))That line will work for each of your colors. A little walkthrough:
(contintional) ? true : falseWhich is, if the conditional is true (In our case, colors.test) it goes to the spot where true is, if it isn't, goes to false. It's just a simple if statement really, however in one line, and for setting values.
(conditional) and true or falseWhich is what i'm doing up there.
if (colors.test(rs.getBundledInput(side),colors.white) ) then colors.subtract(rs.getBundledInput(side),colors.white) else colors.combine(rs.getBundledInput(side),colors.white) endAnd then it uses the result of this bit, to decide which colors to set.
Edited by Dragon53535, 16 January 2016 - 10:55 PM.
Posted 16 January 2016 - 11:08 PM
Posted 16 January 2016 - 11:26 PM
colors.test(rs.getBundledInput(side),colors.white)
Edited by Dragon53535, 16 January 2016 - 11:32 PM.
Posted 16 January 2016 - 11:29 PM
ZippoMoon, on 16 January 2016 - 10:37 PM, said:
Dragon53535, on 16 January 2016 - 11:26 PM, said:
Posted 16 January 2016 - 11:31 PM
Edited by Lyqyd, 16 January 2016 - 11:45 PM.
Posted 16 January 2016 - 11:45 PM
Posted 16 January 2016 - 11:50 PM
print("Vault Door Lock: - [1] "..VDL)
--# Should be
print("Vault Door Lock: - [1]"..tostring(VDL))
--#You need to tostring the boolean
I suppose taking the meaning of the above post is good, but you really should of gone with the entirety of what i put Edited by Dragon53535, 16 January 2016 - 11:51 PM.
Posted 16 January 2016 - 11:54 PM
Dragon53535, on 16 January 2016 - 11:50 PM, said:
print("Vault Door Lock: - [1] "..VDL)
--# Should be
print("Vault Door Lock: - [1]"..tostring(VDL))
--#You need to tostring the boolean
I suppose taking the meaning of the above post is good, but you really should of gone with the entirety of what i put Posted 16 January 2016 - 11:59 PM
Posted 16 January 2016 - 11:59 PM
ZippoMoon, on 16 January 2016 - 11:54 PM, said:
Dragon53535, on 16 January 2016 - 11:50 PM, said:
print("Vault Door Lock: - [1] "..VDL)
--# Should be
print("Vault Door Lock: - [1]"..tostring(VDL))
--#You need to tostring the boolean
I suppose taking the meaning of the above post is good, but you really should of gone with the entirety of what i put Posted 17 January 2016 - 12:02 AM
0 members, 1 guests, 0 anonymous users