Jump to content

[LE] Looking for help to make a puzzle


Recommended Posts

Hey all,

 

I am looking for help for the following kind of puzzle:

There are eight levers in the room and a locked door.

Only when the right combination of three levers is pulled, the door opens.

Any other combination (e.g.: two of the right combination and a wrong lever) would fail to open door.

 

I believe this needs some scripting, but I am a bit struggling as to how to start and am looking for some tips and advice from some veteran modders.

 

Thanks!

Link to comment
Share on other sites

1) Place on each of your 3 levers a vanilla "defaultCounterIncrementOnActivate" script.

* Read the discription of the "toggle" property in case you want it True or False.


2) Place an "xMarker Activator" somwhere in your cell and add to it a vanilla "defaultCounter".

Set up its properties:

OnlyOnce = True

TargetValue = 3

myLinkedRefAction = 0


3) Link Ref each of your levers to the "xMarker Activator".


4) Link Ref the "xMarker Activator" to the door.


And you are done.

Link to comment
Share on other sites

Thanks!

That worked.

But now I need to figure out a way that the door only opens when exactly these three switches are pulled.

If the PC would simply pull all eight switches, the door opens as well.

 

I am now trying to figure out how I can decrement the value on the XMarker with one of the other five switches. But I have been unsuccesful so far, nevertheless: Thanks!

 

SOLVED (for now)

Allright, I made a decrement script and attached it to the five other levers. Now if a wrong lever is pulled, it needs to be pushed again to get the value correct. This entails that only the three right levers open the door.

However, once the door is opened, the puzzle becomes a bit erratic (by which I mean one can open and close the door with different combinations). But at least the PC could then also open the door at any time he or she wants.

 

 

Thanks a lot!

Edited by AureliusofKvatch
Link to comment
Share on other sites

You dont need to mess around with your other levers, just edit the property of the 3 levers that already have the scripts running:

- defaultCounterIncrementOnActivate > toggle

- defaultCounter > OnlyToggle

Link to comment
Share on other sites

Thanks for your reply.

The problem with your solution is that the dragonborn can simply pull all the switches and the door will open.

This decreases the difficulty of figuring out which three switches need to be pulled.

 

The idea is this: there are eight switches, each bearing a unique sign. The dragonborn gets hints on which three switches work. But if he uses the wrong combination of switches (2 good and 1 false, e.g.), the door should not open.

 

However, with your solution, the dragonborn can be lazy, pull all switches and he would have solved the problem.

 

By scripting the false levers, I am able to make sure only the right combination of switches work.

 

But I only came to that solution because you helped me. So thanks!

Edited by AureliusofKvatch
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...