Having a text file and a script file shouldn't be a problem.
Just make sure your script file in MC points to the vbs one, and you should be fine.
The end problem is a matching thing, go to the line it says and check it out. Or walk through your script file and check for unpaired things.
Your sub is correct (with the arguments) and shouldn't be a problem with adding the script name, provided that you do infact have the sub in the file (and the file has been saved/reloaded into the world, and is set to the script file). So check those three things.
However, Ive written a script that handles most of this, well, its an array handling set of subroutines. You can download it here:
http://mud.bussett.com/arrays.zip
Documentation is in the script file, and the world file that comes with it shows a couple of examples (check the aliases) which basically do what you need. You can also email me and ask (emails at the top of the script file) about whatever.
It basically allows for arrays to be used (without being much more complicated than storing a value per affect, or spells, or defense in this case) as associative arrays (or a set of three arrays to be used as complete listings, see the aliases) since VBScript doesn't do associative arrays. As well as providing subroutines to save the values to MCVariables at connect/disconnect or whatever. |