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


Joined: 01 Jan 2004
Posts: 2
Location: USA

PostPosted: Fri Jan 02, 2004 12:07 am   

Scripting Newbie: Trouble getting started
 
I'm trying to learn how to use scripts, but when I try to even use the example from help files:

#SCRIPT {x=0:sub test:x=x+1:msgbox x:end sub}
#5 #MSS {test}

I get a message box saying: Cannot locate msscript.ocs scripting object.

I do have this file on my machine; is there some particular place it should reside to enable zMud scripting?

Thanks much!
cormin
Reply with quote
Toetag
Magician


Joined: 10 Oct 2000
Posts: 356
Location: USA

PostPosted: Fri Jan 02, 2004 3:07 am   
 
scripting is not as hard as it seems. create variables, aliases, triggers.

Triggers are just pattern matching. so when Zmud see's the particular pattern it will do something.

ie:

Bob says: "Hello"

trigger:
(%d) says: "Hello"
value:
Tell %1 hello

so when anyone told you hello, you'd send them hello back.

Lookup Pattern Matching, it's gonna be your friend.

The troll hit you for 10 damage

Trigger:
The (%d) hit you for (%n) damage

value:

#MATH HitPoints (@hp - %2)

Then you could put @HitPoints in your status bar or use a graphical button.

Basically read up on Aliases, Variables and Triggers in the help files.
Reply with quote
Cormin
Newbie


Joined: 01 Jan 2004
Posts: 2
Location: USA

PostPosted: Fri Jan 02, 2004 4:19 am   
 
I understand the pattern matching and trigger concepts and continue to discover intersting ways to apply them. However, what I really would like to do is run a script. Unfortunately, I recieve a very specific error about this msscript.ocx file and am hoping to get some information about it. How do I enable the scripting object?

Thanks again,
Cormin.
Reply with quote
Toetag
Magician


Joined: 10 Oct 2000
Posts: 356
Location: USA

PostPosted: Sun Jan 04, 2004 4:09 am   
 
my apologizes in advance, thought you were a fresh out of the box newbie at scripting. Didn't realize you were expanding your current knowledge.

I've ran the example and it works just fine on my system. Is it possible the MS Scripting has been disabled? (kinda grasping at straws) I know at my company we disabled that on most of our desktops so that most viruses might be stopped from even running.
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