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
Lamp puzzle scripting help
Entih Offline
Junior Member

Posts: 47
Threads: 4
Joined: Sep 2010
Reputation: 0
#6
RE: Lamp puzzle scripting help

You're pretty close with that!

The local integer variables apparently default to 0 if you have not used them before, so you can get away with just get-ing them from 0 onward unless you need them to start higher.

That column of if's is exactly what it looks like, as well. If the player hits the wrong one at any point, that one will not trigger the if statement. Say you light up candle 3 first. It will look at it and essentially think, "Is this candle 3, and have we lit up 2 candles before it?" (Or depending on perspective, "Is this candle 1, and did we light up 0 others before it?"). Since the total candles lit before it would be 0, but its candle 3, that would be a big 'no', and correct hits would be less than total.

So pretty much, you got it.
10-04-2010, 02:01 AM
Find


Messages In This Thread
Lamp puzzle scripting help - by Soon - 10-03-2010, 07:18 PM
RE: Lamp puzzle scripting help - by Entih - 10-03-2010, 07:40 PM
RE: Lamp puzzle scripting help - by Soon - 10-03-2010, 10:35 PM
RE: Lamp puzzle scripting help - by Entih - 10-03-2010, 11:08 PM
RE: Lamp puzzle scripting help - by Soon - 10-04-2010, 12:58 AM
RE: Lamp puzzle scripting help - by Entih - 10-04-2010, 02:01 AM
RE: Lamp puzzle scripting help - by Soon - 10-04-2010, 03:13 AM
RE: Lamp puzzle scripting help - by Alexander - 10-04-2010, 09:35 AM



Users browsing this thread: 1 Guest(s)