Difference between revisions of "Editing AI code"
Line 1: | Line 1: | ||
Editing AI Code. AI code for most events will be handled with sexps simple expressions. | 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. | 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. |
Revision as of 03:29, 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.