|
| 23 Dec 2013 12:32 AM |
If i touch a certain number of bricks in a PATTERN, I can make a door open?
|
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 23 Dec 2013 12:34 AM |
haha :p It's like a code, I have to touch 3 bricks like : 3,1,2 ex. And a door is deleted, or opened. touch w/ my body |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2013 12:35 AM |
When the player touches a brick, and that brick is part of the pattern, store the part's location in a table.
When that table reaches the size of the maximum amount of parts in the pattern, check to see if they are in the correct order.
If they aren't, clear the table.
If they are, open the door. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 23 Dec 2013 12:35 AM |
No, it's not hard
Just make a table and in the order they touch it in, if they don't touch it in order then it resets. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Dec 2013 12:37 AM |
| Yeah, sounds good. But, I don't have ANY idea how to script, and I'm new to this forum.. Anyone assist me on skype, or send me script..? |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2013 12:41 AM |
Don't try to script something that is way beyond your level. Start from the beginning and work your way up from there.
Also, keep in mind that wanting the outcome of scripting and wanting to learn how to script are two completely different things. If you seek the first, then you're better off trying to find a friend/group member who will script for you. |
|
|
| Report Abuse |
|
|