sofar / entity_ai

An entity scripting engine for mobs and npcs
8 stars 2 forks source link

Spawning #4

Open MarkuBu opened 6 years ago

MarkuBu commented 6 years ago

How should mobs spawn? You have no spawn code in the engine. Should this be done in mods or do you want to add this to the engine?

ahkok commented 5 years ago

I'm thinking that spawning is dependent on each monster/entity and therefore, likely not easily solved in a more general level.

IOW, we can maybe abstract this and create various generic spawning strategies, but entities should be able to contribute their own ...

tacotexmex commented 5 years ago

Let me quote myself from a similar discussion:

I want to suggest a different solution to mob spawning.

Low-frequent randomized spawning is cool to keep things interesting over a longer period of time, I guess.

But what’d be really interesting would be to spawn mobs into the world not by timers and chance but according to a noise pattern. This noise pattern can be based on the world seed so that it’s reproducable, just like the map itself. The mobs should never expire but death be permanent. >The spawning process should use thematized by use of biome checking. This is cool for several reasons:

  • Immersion will increase as players need to take care not to exterminate flocks of animals forever in a region, but instead hunt responsibly and perhaps nurture the population as well.

  • Players will be able to refer to not only good map spots but good mob spots by position and seed only.

  • Moar

sofar commented 5 years ago

https://github.com/minetest-mods/mob-engine/issues/31#issuecomment-493704232

Yes, I know - I agree 100%.

But that doesn't change that spawning should be something modular and entity dependent - This is why there is no code in this project for spawning.

So for now I think this can be a separate thing until we get a better idea if this should be something more integrated or not - for instance if it needs to know better about positions of existing entities. We certainly want to accommodate that, of course.

tacotexmex commented 5 years ago

I fully agree. All these ideas should go into a spawn layer mod then.