I’m currently working on my AI. May game is Zay-ES based. I can store/load the ES and that for I put all information into the ES and do not have any kind of game objects beside that.
My AI should provide individual behaviour. So I have a little monster which is just patrolling left to right in that corridor and stands still if you click it and start to talk. If you got the right stuff and said the right things it vanishes and you can pass. If not it restarts patrolling. There are many different such kind of monsters/peoples what so ever with different patterns, behaviour and stories.
In a OO way I would give a script per instance, the same script if the same type of course. But in ES this seems not really to work. Because I want my script change ES state (add components to things or removed, set new position and stuff). So I start to think an AI script is more a system then. Am I completely wrong. How did others solve that?
I know it is not an exact topic, mostly because I have no clue where to start Any hints are appreciated.