Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Kalie
Beginner


Joined: 23 Jun 2008
Posts: 22

PostPosted: 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.
Reply with quote
Kalie
Beginner


Joined: 23 Jun 2008
Posts: 22

PostPosted: Wed Jun 25, 2008 9:59 pm   
 
Anyone? Smile
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net