Ralf Van Bogaert
Member
I want to fight a lot of enemies at once. Say, 20.
With that many it becomes obvious that OpenBOR's AI is fairly simple and many enemies will walk around the screen following the same paths, sticking together like a mass of sprites.
So what I would like to achieve first is to prevent entities (or rather their body boxes) being able to occupy the same space or pass through another.
Second would be to have enemies and NPC's exhibit some awareness of others and distribute themselves more evenly across the screen. For example, if there are 8 enemies, 4 would try to stay left of the player and 4 right. Or when an enemy picks a new destination, he'll make sure it is not occupied by anyon else. That sort of thing.
Is this achieveable with scripting? If so, can anyone here point me in the right direction?
With that many it becomes obvious that OpenBOR's AI is fairly simple and many enemies will walk around the screen following the same paths, sticking together like a mass of sprites.
So what I would like to achieve first is to prevent entities (or rather their body boxes) being able to occupy the same space or pass through another.
Second would be to have enemies and NPC's exhibit some awareness of others and distribute themselves more evenly across the screen. For example, if there are 8 enemies, 4 would try to stay left of the player and 4 right. Or when an enemy picks a new destination, he'll make sure it is not occupied by anyon else. That sort of thing.
Is this achieveable with scripting? If so, can anyone here point me in the right direction?