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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
amokoma
Newbie


Joined: 24 Jun 2001
Posts: 3

PostPosted: Sat Mar 27, 2004 2:57 pm   

Scripting in J/VBscript
 
Hey, been looking around for documentation on how to use vbscript or jscript within zmud - I mean - actual code examples maybe? How to access internal zmud vars and call the COM model?

- Rasmus.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Mar 27, 2004 3:34 pm   
 
zMUD automatically defines the sess object so that your script can access the COM model for the current session. If it's not sess, then it should be session.

Anyway, to access a variable or an alias, you can call the methods of this object. Example:
myVar = sess.GetVar("myVar", "")

Then, you can change it's value:
myVar.Value = "testing"

For more information, you can check this document.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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