|
Cormin Newbie
Joined: 01 Jan 2004 Posts: 2 Location: USA
|
Posted: 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 |
|
|
|
Toetag Magician
Joined: 10 Oct 2000 Posts: 356 Location: USA
|
Posted: 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. |
|
|
|
Cormin Newbie
Joined: 01 Jan 2004 Posts: 2 Location: USA
|
Posted: 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. |
|
|
|
Toetag Magician
Joined: 10 Oct 2000 Posts: 356 Location: USA
|
Posted: 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. |
|
|
|
|
|