- Home /
Question by
ramzyrizzle · Jan 23, 2015 at 07:02 AM ·
randomlightpuzzle
Randomized Light Sequence Puzzle Script
I have 3 lights that get activated when a main switch is turned on by the player. It then has to execute the following sequence:
*generate_random_int between 0 - 2
-> activate light that match generated int
-> put value generated/ID into list (let's call it "correct_sequence")
*every flick of a switch by player
-> put value/ID of light activated into list (let's call it "attempt_sequence")
-> compare "correct_sequence" to "attempt_sequence"
Only problem is, I'm still a beginner when it comes to code and don't know how to actually write that. Any help would be tremendous.
Comment
Your answer
Follow this Question
Related Questions
Crossword game - How to start a word on a random location of players choice 0 Answers
How to Randomly Change the Intensity of a Point Light with a Script 4 Answers
Help with GuiText flickering code. 1 Answer
Need help with Flashlight Script 1 Answer
Easy way to generate 8 piece sliding puzzle so that it is always solveable? 4 Answers