This chapter discussed the importance of scripting, even when modern AI techniques are used:
The idea of a voting system was also presented in detail. In the case of weapon selection, the following concepts apply:
The solution works very well, and matches our requirements for justifiability and decisiveness. This requires a certain amount of experimentation and adjusting by the developer. However, sometimes the assumptions do not lead to the best decision, and the system is not tailored to individual skills.
The next chapter covers the theory behind decision trees, an AI technique that can be used to make decisions by evaluating the benefit of a choice. The advantage is that the weapon selection can be learned from examples, and the application of this theory is covered in Chapter 27, "Learning to Assess Weapons."