Page 1 of 1
Combined Puzzle
Posted: Mon Oct 08, 2012 8:23 pm
by Loupaak
Hello, i have problem... i Cant figure out how to do this:
I have:
1 secret Switch
1 Lever
1 Keylock
and 1 pressure plate.
If i activate all of this, it should Close the pit and i can continue.
but i cant figure out how to write this to the script. Help pls?
Re: Combined Puzzle
Posted: Mon Oct 08, 2012 8:33 pm
by Komag
- Make a counter set to 4 and link everything to it.
- For the lever and the plate, be sure to do activate->decrement and deactivate->increment.
- For the button, make sure you set it to only activate once.
- Then link the counter to the pit with activate->close (or any->toggle if you want people to be able to later on switch the lever or free the plate to open back up the pit)
Re: Combined Puzzle
Posted: Mon Oct 08, 2012 9:00 pm
by Loupaak
Thank you but if i Activate everything except Pressure plate and i step on it, Pit door will close. OK. bud if i step off it, it wont open again
Re: Combined Puzzle
Posted: Mon Oct 08, 2012 10:09 pm
by Komag
I forgot that there is no "toggle" with counters. With the lever and the plate you need to make two connections each, one with activate->decrement and one with deactivate->increment
Re: Combined Puzzle
Posted: Mon Oct 08, 2012 11:59 pm
by Brodie301
I'm trying to kinda do the same without scripting.
It's kind of a take on the Toorum "I can't remember sequence" puzzle from level 5 of Grimrock.
I want it to be in certain sequence. Push button 1, pull lever 1, push button 2, pull lever 2, open 2 doors, but if not right sequence don't open.
I got the four items to decrement using counter then open door but it was any order.
I know this should be way easy with script but never used lua and can't seem to get it, which is a me problem.
Re: Combined Puzzle
Posted: Tue Oct 09, 2012 12:03 am
by Neikun
I think it might be easier with buttons.
I think you're going to need a pretty complex script here.
if button1 press then button3 press counter1=reset
It's loose coding because I don't know exactly how it should look.
But basically you would need outcomes for every possible sequence. All failures resetting the puzzle, and the correct sequence opening the door.
Re: Combined Puzzle
Posted: Tue Oct 09, 2012 12:41 am
by Komag
Yeah, you'll need scripting, each successive action will just have to rely on the previous one being done or else it all gets reset