Page 1 of 1
Script Editors
Posted: Wed Apr 24, 2002 7:51 pm
by Xak Tsarsoth
Does anyone know where to get a good script editor?
Posted: Thu Apr 25, 2002 1:53 am
by Sojourner
You can write scripts with any plain text editor. To
compile the scripts, you can use the script compiler that came with the game. There are several things you need to do to make it work:
- When you save your script file, make sure it has the .baf extension and save it in the script compiler\source directory in your BG2 - SoA game directory.
- Before running the compile.bat file located in your BG2 - SoA\script compiler directory for the first time, right-click on it and select Properties. Click on the Program tab. Click in the Cmd line: box. Use the keyboard right-arrow key to scroll to the end of the command line. Add a space and ? to the end of the line. Click Apply, and then click OK.
- Run the script compiler by double-clicking on the compile.bat file located in your BG2 - SoA\script compiler directory. It will prompt you for parameters. There is where you enter the name of your script file that you had saved in the script compiler\source directory, without the .baf extension.
Example: You create MyScript.baf and save it in the script compiler\source directory. You run compile.bat, and enter MyScript for the parameter. Compile.bat opens up a DOS window and compiles it, putting the compiled script in your script compiler\compiled directory, and any errors in the script compiler\errors directory. In general, if there is a syntax error in your script, it will not compile. Hope this helps!
Posted: Thu Apr 25, 2002 1:01 pm
by Xak Tsarsoth
Thanks, I'll try it out.