Frictional Games Forum (read-only)

Full Version: Making puzzles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Big Grin

You have been helping me ssoooo much and I appreciate it so much Big Grin Heart Big Grin
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.
(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?
Here, see my example map. It unlocks a door when pulling levers in a combination.

http://www.megaupload.com/?d=IXUUH1K3