Code: Select all
function PlateOne()
end
function PlateTwo()
if ( pressure_riddle_1:isDown() == false ) then
spawn("poison_cloud", party.level, party.x, party.y, 0)
resetAllPlates()
end
end
function PlateThree()
if ( pressure_riddle_1:isDown() == false or
pressure_riddle_1:isDown() == false ) then
spawn("poison_cloud", party.level, party.x, party.y, 0)
resetAllPlates()
end
end
function PlateFour()
if ( pressure_riddle_1:isDown() == false or
pressure_riddle_2:isDown() == false or
pressure_riddle_3:isDown() == false) then
spawn("poison_cloud", party.level, party.x, party.y, 0)
resetAllPlates()
end
if ( pressure_riddle_1:isDown() == true and
pressure_riddle_2:isDown() == true and
pressure_riddle_3:isDown() == true and
pressure_riddle_4:isDown() == true ) then
pressurePlatePit:close()
end
end
function resetAllPlates()
--- pressure_riddle_1:reset()
--- pressure_riddle_2:reset()
--- pressure_riddle_3:reset()
--- pressure_riddle_4:reset()
end
Is there a workaround?
I'd like to keep the plates in an "activate once" state, but there seems no way to do this kind of riddle.
When the user activates 4 first as example, the pit actually never closes, unless I would put the check if all plates have been pressed into all functions.