Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making puzzles
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Sad  Making puzzles

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

...
05-15-2011, 06:21 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Making puzzles

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
Website Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#3
RE: Making puzzles

(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?

...
05-15-2011, 06:40 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Making puzzles

Here, see my example map. It unlocks a door when pulling levers in a combination.

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

(This post was last modified: 05-15-2011, 07:13 PM by Kyle.)
05-15-2011, 07:13 PM
Find




Users browsing this thread: 1 Guest(s)