I'm trying to re-create the original Grimrock dungeon, but I'm having trouble with a "puzzle" (not really a puzzle) from level 2.
There is a room that has two buttons which each spawn 7 different teleporters in cells around a room. One set of teleporters teleports objects clockwise around the room, and the other counter-clockwise.
So for now I'm trying to get the 7 teleporters which move things around clockwise. I made the 7 teleporters, started them as deactivated, then put a button and connected it to each of them with toggle -> activiate. I also connected the button to a timer (interval 1, initial state stopped). The button activates the timer, also, and the timer is set to deactivate all 7 teleporters. The problem is that in the 1 second the teleporters are active, any object that is located on any of the relevant squares quickly cycles through every single teleporter in the sequence. This problem persists even when setting the timer interval to 0.1.
My next idea was to have the teleporters activate only in light and sound (ie uncheck the three 'triggered by' boxes) and use a script to move items when pressing the button. However, I have no idea how to do this.
Code: Select all
function moveStuff()
for i in entitiesAt(2, 3, 3) do
i.x = 3
i.y = 1
end
end
Any ideas?