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


Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Puzzler (A Class for making puzzles)
Javist Offline
Junior Member

Posts: 46
Threads: 3
Joined: Sep 2010
Reputation: 0
#1
Simple Puzzler (A Class for making puzzles)

Greetings Smile
After a long time, i've decided to return to amnesia scripting and give it a try again, just for fun.

So here i written a small class, which could be (or no? who cares.) handy for creating simple puzzles, for example, like a puzzle in the machine room (with levers).
Of course, maybe my class is ugly or redundant somewhere.. so keep it in mind Smile

HPL Source with example is here: http://pastebin.com/W3QhHr2d
And example map is here too: http://pastebin.com/BzKd6apq

So, all you need in order to use it is:
- Place the class somewhere in your .hpl script. (And may be amend it to your taste.)
- Write own function-callback which will be receiving a result (true/false).
- Pass to the constructor your data (Array with levers, array with correct lever positions, and func).
- Make a call from your ConnectionStateChangeCallBack to notifySwitch.
- Profit.

If you find it helpful - comments are welcome 8)

unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep.
(This post was last modified: 06-19-2012, 11:37 PM by Javist.)
06-19-2012, 11:26 PM
Find




Users browsing this thread: 1 Guest(s)