Forum rules - please read before posting.

Create Puzzle

Hello, guys how is it possible to create puzzle, or open door with password or something else???

Comments

  • Hi, and welcome to the Adventure creator forums @egutidze

    Well, the answer is: you can build most any puzzles you may want using AC's visual scripting and local or global variables (which are created in the variables manager). But it will require you to design the logic. The upside of this is that you can make anything you want in whatever way you decide to do it.

    Anyway, at the heart of most puzzles are variables. You'll use them to remember the player's actions or decisions. You can record information using the Variable:Set action and check their value using the Variable:Check action. 

    In the door password example you mentioned, you could simply create an integer global variable. Then you could make a Menu with an input element linked to that variable. The menu can have a button (ie:"OK") which closes the menu. Later you can just show that menu to the player with whatever method you prefer (cutscene, trigger, hotspot interaction, etc).

    From there you can proceed in a few ways: You could later have a hotspot or trigger run an actionlist which will check if the variable is the correct value (then run any success or failure actions you desire), or you can give that same menu an actionlist asset to run when closed, which can also run any success or failure actions you want, and which will trigger right as the player presses the OK button.

    Of course, you could do it in other ways too.

    Some tips for using variables: 
    1. When using booleans (true or false) think of them as switches, which you need to press inside actionlists. ie, if the player uses a lever hotspot, then you can use a Variable:Set action to turn your LeverWasPressed variable to true. Later when interacting with a panel/door you can check if LeverWasPressed is true, and if it is, you can then open the door for the player or do whatever else you want.

    2. Use Global variables if the information needs to be remembered between scenes. 

    2b. Use local variables if the information only needs to be remembered within a specific scene.
  • A "computer password" can be made similar to the steps in this tutorial, where you link a Global Variable to an input box.  You could then use the Variable: Check Action to determine if it's the correct value or not.

    If you're referring to a combination passord (e.g. safe code), there are some past discussions on this you may find useful:

    http://www.adventurecreator.org/forum/discussion/550/need-help-with-coded-lock
    http://www.adventurecreator.org/forum/discussion/5145/puzzle-type
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.