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
unhappy
Newbie


Joined: 05 Nov 2003
Posts: 2
Location: USA

PostPosted: Wed Nov 05, 2003 8:57 am   

vbscript use help
 
i would like to use vbscript as my language choice instead of the default zmud language, but cannot find documentation for the life of me.

i would like to access to and manipulate global, class, and trigger/regex variables.
Reply with quote
hatespyware
Apprentice


Joined: 16 Dec 2002
Posts: 103

PostPosted: Wed Nov 05, 2003 4:14 pm   
 
Try looking under the #mss and #script help headings for examples of creating subs and passing vars to and from them.
Reply with quote
unhappy
Newbie


Joined: 05 Nov 2003
Posts: 2
Location: USA

PostPosted: Thu Nov 06, 2003 6:51 am   
 
ty for the help... it seems like a lot of the documentation was in a forum i don't have access to... i'll sign up for the developer forum. but i did find what i needed to find (mostly from: http://www.zuggsoft.com/zmud/comserve.htm).

below is what i've found... hopefully it helps someone else.

'2 ways from zmud to script
var = sess.ExpandStr("%1")
var = sess.GetVar("varname", "classpath").Value

'assign var's value to a zmud variable
sess.ProcessCommand("#VAR vbs_temp " & var)
sess.GetVar("varname", "classpath").Value = var
Reply with quote
hatespyware
Apprentice


Joined: 16 Dec 2002
Posts: 103

PostPosted: Thu Nov 06, 2003 12:47 pm   
 

#VAR X 2
#MSS {x=@X}
#SHOW %mss(x)
works, too
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