Difference between revisions of "AI"
(Created page with "The AI is a very powerful tool that can be used to automate nearly anything.") |
|||
Line 1: | Line 1: | ||
− | The AI is a very powerful tool that can be used to automate nearly anything. | + | The AI is a very powerful tool that can be used to automate nearly anything. To use the AI you have to create AI-scripts in the headquarters. |
+ | |||
+ | == AI-Scripts == | ||
+ | An AI script contains three sections that control its behaviour: | ||
+ | |||
+ | * Impulses | ||
+ | * Conditions | ||
+ | * Actions | ||
+ | |||
+ | === Impulse === | ||
+ | An impulse or trigger is a certain event that activates an AI script. A script can contain zero, one or more impulses and will react to all of them equally. It is possible that a script can trigger multiple times before it has finished execution. In this case multiple instances of this script can run in parallel. | ||
+ | |||
+ | === Condition === | ||
+ | A condition is a requirement that has to be fulfilled in order for the script to start executing. If any of the specified conditions is not met then the whole script will not be executed once it is triggered by an impulse. During the execution the specified conditions have no effect. | ||
+ | |||
+ | === Action === | ||
+ | An action is something that the AI does when the script becomes active. The order of all actions is important where the action at the top is executed first and then all following actions are simply executed one by one. There is no way to execute multiple actions at the same time inside a single active script. |
Revision as of 18:23, 12 May 2020
The AI is a very powerful tool that can be used to automate nearly anything. To use the AI you have to create AI-scripts in the headquarters.
Contents
AI-Scripts
An AI script contains three sections that control its behaviour:
- Impulses
- Conditions
- Actions
Impulse
An impulse or trigger is a certain event that activates an AI script. A script can contain zero, one or more impulses and will react to all of them equally. It is possible that a script can trigger multiple times before it has finished execution. In this case multiple instances of this script can run in parallel.
Condition
A condition is a requirement that has to be fulfilled in order for the script to start executing. If any of the specified conditions is not met then the whole script will not be executed once it is triggered by an impulse. During the execution the specified conditions have no effect.
Action
An action is something that the AI does when the script becomes active. The order of all actions is important where the action at the top is executed first and then all following actions are simply executed one by one. There is no way to execute multiple actions at the same time inside a single active script.