Legend of Grimrock
Create and download new dungeons, items, monsters, & environments
Use the Dungeon Editor to build entirely new adventures and challenges for other players to solve. Fill your dungeons with puzzles, traps, or even totally new items, monsters and environments with custom graphics and audio! Click here to learn more.
Bidanka Feb 21, 2013 @ 1:41am
Grimrock editor: How do I make a combination of three levers which open a door?
I can make one lever open/activate a door. But I don't know how to make a combination of pulling three levers open a door. How?
Showing 1-6 of 6 comments
< >
LocalFire 4 Feb 25, 2013 @ 3:36pm 
-- combination lock puzzle2
function pullLever()
if mylever:getLeverState() == "activated" and
lever2:getLeverState() == "activated" and
lever3:getLeverState() == "activated" then
Bidanka Feb 26, 2013 @ 2:24am 
Hi.. Thanks for answering. I've read about scipting in other forums. But I have to admit, that I don't understand how this scripting works. Where to I write in fx that scripting you've just given me? Can you explain it in more detail and in steps. Like fx first you place the levers, then you.... like that.. And what do I connect the "script_entity" to? The door, lever1 or what? If there are more doors in the room, how do I make it activate the right door?

Confused :)
Last edited by Bidanka; Feb 26, 2013 @ 2:48am
LocalFire 4 Feb 26, 2013 @ 4:35pm 
Ok first place the levers
2. Rename the levers (above mine are call mylever, lever2 and lever3)
3.Place the door and rename it (mine is log_door1)
4. place a script entity for the logic section copy and paste my script if you like, into this
5. go to the levers and add connector to the script entity

And that should about do it, hope it helps
LocalFire 4 Feb 26, 2013 @ 4:37pm 
oh and of course you can change the combination by changing the leverState part of the script to deactivated if you want it so a combination of on and off levers is required to open the door
SaintBj Feb 27, 2013 @ 8:31pm 
If you find scripting daunting, you could also do it using counters, its not as clean and is a bit more time consuming but for those who just cant handle scripts, it will work.

That being said, you'll be able to do a lot more in terms of interesting puzzles if you do learn to script or at least, edit simple scripts that others have uploaded.
Showing 1-6 of 6 comments
< >
Per page: 15 30 50