Difference between revisions of "Editing AI code"
Line 2: | Line 2: | ||
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. | 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. | 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. | ||
+ | [[Image:sexp1.png]] |
Latest revision as of 04:20, 15 April 2008
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