  | 
	
	
	
		Kalie Beginner
 
  Joined: 23 Jun 2008 Posts: 22
 
  | 
		
		  
			
			   Posted: Wed Jun 25, 2008 6:32 pm   
  zvar and python   | 
			 
			
				I have been trying to access/modify CMUD variables with python scripts in CMUD without much luck.  Let's say I want to access the variable @count.  As far as I can tell the syntax should be:
 
 
def somepythonfunction():
 
   tempvar = zvar.count
 
   tempvar = tempvar + 1
 
   zvar.count = tmpvar
 
return 
 
 
Or in one line:
 
zvar.count += 1
 
 
Do I have the syntax wrong?  Thanks guys. | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		Kalie Beginner
 
  Joined: 23 Jun 2008 Posts: 22
 
  | 
		
		  
			
			   Posted: Wed Jun 25, 2008 9:59 pm      | 
			 
			
				Anyone?    
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		| 
		
		 | 
	
	
		 |