Vale 
			Member7  
	
		
			
[Solved] Puzzle Script Problem? 
 
				Alright, few things here.
First off is the problem I'm having.
Im creating a script for a puzzle in my custom story which works smoothly for the most part. The only error is in the fact that you can still move the pieces of the puzzle once it's completed, though the if()'s in the script should prevent that.
Here is the script below.
Spoiler below!  
 
 
The puzzle involves pressing levers into their slots, which will toggle the position of certain other levers. When they're all pushed down, the variable "leverpuzzle_var" should equal 6 (for 6 switches pressed.) However, theres either an error in control flow or with the variable, as I can still toggle the levers after I push all 6 in.
Anyone see the problem here?
Oh, and the if "levers_functional" is for another part I'm adding later, but for now its set to be true (aka '1') as default, so Ignore that. 
Oh, and secondly. When theyre all pushed in I want to have another function run. What is the best way of doing that?
THANKS
			
				
(This post was last modified: 07-28-2014, 04:33 AM by Vale .)