Yes, thank you. I've been reading that, trying to understand it all.
Ok, I can see that if I set "Hostile" to 0 and the AI to 2, the NPCs walk around and don't attack me.
However, when I attack them they don't do anything. They just sit there and let me hit them. What would I add to case 2 to make them fight back after being attacked?
Is there a general command that I can put in there so that all AIs will fight back upon being attacked?
I'm guessing it would look similar to this line:
If NPCList(NPCIndex).Hostile Then b = NPC_AI_Attack(NPCIndex)
but I'm not sure yet how to detect an attack on the player's part?