Editing AI code
Editing AI Code. AI code for most events will be handled with sexps simple expressions. This is the method freespace 2's FRED2 uses, and it allows a user through the use of dropdown menus to construct logical arguments as trees. These arguments will need to be predefined in classes and a list of required functions is available. In addition to simple tree editing, an option will be provided whereby the sexp editing window will be greyed out and replaced with a text editing box. This text editing box will accept raw python code, and is provided for programmers who know howto script directly rather than relying upon the predefined code. File:Sexp1.png