Answer the question
In order to leave comments, you need to log in
What is the easiest way to program multiple responses to conditions?
I am trying to somehow generalize a similar formula: If the agent found X and / or found Y, and at the same time there was an event P before, then the agent will / will not do the action Z.
That is, the set of conditions + the state of the agent should lead to a certain reaction to this. The problem is that if you simply list all combinations + conditions, as well as all reactions to them in a row, you will get a lot of lines - this is inconvenient. After all, people program AI in games, as I understand it, there are a lot of such tasks, as is usually done?
Are there nice ways to solve this problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question