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
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Thu Jun 14, 2007 8:53 am   

Using other scripting languages, how?
 
I've successfully installed activepython and I have the option to do a python script from the drop down list. But I haven't been able to get anything to work including a simple print statement. Could anyone tell me what roughly I can do with python in cmud? Can I intercept text from the mud and do stuff like triggering?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jun 14, 2007 10:25 am   
 
Commands like print probably won't work - where would the printed text go?

CMUD still handles all the triggers and aliases, but when your trigger or whatever is fired, the script for that trigger will run in python if that's what's selected. At the moment, you can only access CMUD variables with the zvar object - this is subject to change and will eventually allow you to access CMUD commands and CMUD functions too.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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