Hello, I'm trying to make a riddle that is based off of certain pressure plates being active and a counter being at a certain value and when solved opens a door. First of all does anyone know what kind of object a pressure plate is? Like pressureplate1.pressure_plate:isActive() or pressureplate1.plate:isActive()? Secondly, is the way to test for objects being active done through the isActive() function or is there another function name?
At this point, I am using this code (X, Y, and Z being numerical values):
Code: Select all
function earthsequence()
print(earth_counter.counter:getValue())
if earth_counter.counter:getValue() == Z and answer_X.plate:isActive() and answer_Y.plate:isActive()
then earth_door.door:open()
else
end
end