Decision-making system
The system uses scoring to determine the best behavior. Let's look at the example here. Our AI has a direct line of sight with the enemy, as well as being attacked by an enemy. Input variables:
Decision parameters
Decision name
Decision score
Has active target= true Under attack = true
Alert
4
Have search targets =true Someone else needs help= false
Ready
1
Can patrol =false
Calm
0

Since alert status returns the highest score, this is the score that's going to be chosen by the system.
Last updated