.TOPIC: Virtual Script Language (VScript) VBBS 6.12 Documentation -- 10-1 ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» º CHAPTER TEN VIRTUAL SCRIPT LANGUAGE º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ SCRIPT LANGUAGE INTRODUCTION ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ One of the features that makes VBBS unique is its script language compiler - VCOM.EXE. Along with the built-in command interpreter in VBBS, it allows you to make changes to your BBS quickly and easily. The scripts are nothing more than a series of commands listed in a plain ASCII text file, and you don't even need to be a programmer to write one. All you need to cre- ate scripts are a text editor or word processor that allows you to save in ASCII format (see your word processor documentation for more info) and a little patience. In no time, you will be writing up scripts and swapping them with other VBBS sysops like a pro. Scripts are generic to both the DOS and OS/2 versions. GENERAL RESTRICTIONS ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ The VBBS script language has only one major restriction; there can only be a total of 7 'tokens' on a line. A token is defined as either a single unspaced series of characters (for example, a command or a number) or any group of characters and spaces surrounded by single or double quotes (also called a "string".) The script language is NOT case-sensitive; any capitalization used in this text is not required and is done only for clarity. All the scripts that you create should be placed into your scripts directory as defined in VCONFIG - PATHS Configuration; see Chapter 2 for more information on setting your paths. The only other restrictions pertain to names. All of your script files MUST have the extension .V and all of your names for variables must begin with a '$', e.g., $variable. SCRIPT COMPILER (VCOM.EXE) ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ The program VCOM.EXE is the compiler that prepares your script file for use by VBBS's interpreter. It takes the script file that you have created and builds the two files that VBBS actually uses from it. These two files have the same name as the script file but have .LIT and .COD as their extensions. Compilation of a script is accomplished by changing to your scripts directory and executing the command line: VCOM