Scripts is what makes a mudclient more than just your average telnet client. MonkeyTerm uses VBScript as its native script language. There are basically two ways of executing scripts in MonkeyTerm. One of them is to write the script in a text file with the .mos extention, then add it to the scripts list Session/Script, the other is to type it directly into the command field of an alias, action, substitute, etc. or even the white chatwindow in the bottom of the screen. If you write the script in a textfile you can just declare Subs, Functions, Constants etc. like you would in a normal .vbs file. If you write them in a command field you need to put the script code in <% %> tags. This is to tell MonkeyTerm that the commands are not to be sent to the mud but instead to be parsed by MonkeyTerm.
Scripts in .mos files are run each time the Script menu is exited and each time the session is opened Code not in subs or functions will be executed as soon as the script is run