Version 3.0 (make sure you have the latest version here)

Advanced Script Editor is a lightweight scripting environment for use with 3D Rad. If you are new to scripting, you should check out the Getting Started page.

Features:

Seamless 3D Rad Integration
Objects List
Favourites List
Functions List
Description Pane
Search Boxes
Colours
Fonts
Right-Click Menu
Automatic Variable Detection

Seamless 3D Rad Integration

From version 3.0 upwards, Advanced Script Editor features seamless 3D Rad integration. All you need to do is run AdvancedScriptEditor.exe, and whenever you open a script in 3D Rad, Advanced Script Editor will replace the existing script editor (Scintilla) with it own script editor (FramelessScriptEditor).

Please note that when you close 3D Rad, Advanced Script Editor closes itself automatically, and will need to be run again next time you use 3D Rad. The simplest way to work around this is to create a batch file. To do this, open Notepad and click File > Save. Make sure that Save as type is All Files (*.*), and that the File name ends with .bat (ie. MyBatchFile.bat). Enter the text below, save, and exit. To run the batch file, all you need to do is double-click it.

"C:\My Files\ScriptEditor_v30\AdvancedScriptEditor.exe"
"C:\Program Files\3D Rad\3DRad.exe"

Please note that the above filenames are examples only - please change them to reflect the locations of AdvancedScriptEditor.exe and 3DRad.exe on your computer.

Objects List

The objects list is still under development - the only thing it can do is be resized.

Favourites List

The favourites list is a list that can contain your favourite functions. To add a function, right-click on the function in the function list, and select 'Add to Favourites'. To remove a function, right-click on the function in the favourites list, and select 'Remove from Favourites'. You can also clear the list by clicking the 'Clear Favourites' button, and save it by clicking the 'Save Favourites' button. To add a function to your script, double-click the function in the favorites list

Functions List

The functions list is a list displaying all the functions in the 3D Rad Script Object Reference. To add a function to your script, double-click the function in the functions list. Alternatively, you can use the 'Add to Script' button.

Description Pane

The description pane displays the description of the function currently selected in the functions/favorites list. Currently, only the Object Functions have descriptions

Search Boxes

There are two search boxes, the lower allows you to search the function list, the upper allows you to search your script. You can also search the function list by selecting a function in the editor, right-clicking, and hitting the 'Search Functions List' option. IMPORTANT: Be sure to only select the function, and not the variables (eg. only select iObjectStart, not iObjectStart(OBJ_22), etc).

Colours

The 'Detect Variables' button searches your script and changes the colour of your variables in accordance with the options set in the 'Options -> Colours' menu (default colour is blue).

Fonts

You can change the font for almost anything in the program using the 'Options -> Fonts' menu.

Right-Click Menu

The right-click menu for the editor is one of the most useful features. It can add a comment block, add variables, add an if() loop, and add operands for the if loop.

Automatic Variable Detection (beta)

The Advanced Script Editor automatically detects variables (eg. ints, floats, strings) as you type and changes their colours accordingly.