So, this may get deleted. Im creating a Text Based Space Strategy game. (example: www.SEInfinium.net)
I am wanting to create NPCs that go to different sectors by them selves. They need to auto attack anyone with certain reputation points. If they die I need the to drop loot.
Can anyone point me in the right direction or other articles I can read up on to learn? I have no clue....
Read the first two chapters of this:https://www.lua.org/pil/contents.html After reading (and understanding) that, you should have an idea of how to do it.