Making puzzles - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Making puzzles (/thread-8017.html) |
Making puzzles - X4anco - 05-15-2011 Hello peoples I was thinking about my current levels and decided that I need to put puzzles in there, and how would I make the script do the following?: You need to pull levers in a order in order for the door to open Thanks guy You have been helping me ssoooo much and I appreciate it so much RE: Making puzzles - Tanshaydar - 05-15-2011 Every time correct lever pulled, add one to a local integer variable and if wrong level pulled, set it to zero. When last correct lever pulled, check the integer if it's desired (if you have 5 levers to pull in order, then check the integer if it's 5) and call a function or do something in that interact call back. RE: Making puzzles - X4anco - 05-15-2011 (05-15-2011, 06:28 PM)Tanshaydar Wrote: Every time correct lever pulled, add one to a local integer variable and if wrong level pulled, set it to zero. When last correct lever pulled, check the integer if it's desired (if you have 5 levers to pull in order, then check the integer if it's 5) and call a function or do something in that interact call back. How does that work in script? RE: Making puzzles - Kyle - 05-15-2011 Here, see my example map. It unlocks a door when pulling levers in a combination. http://www.megaupload.com/?d=IXUUH1K3 |