no exact code at the moment
So, Im here again and this time, I'm sure my issue is pretty simple, but the answer is probably complicated.
Now, Ive been working on NPC intelligence, randomizers for npc generation, and as i continue coding a game project that I have taken over since last year, I find myself returning to this little thought.
NPCs using techniques/skills/verbs, or otherwise ranged combat. Now, Im sure I could have an easy way for npcs to 'fire' projectiles once in a while, but i dont want that. I want them to be able to use techniques and verbs in game, and be able to code a pretty simple way to allow this.
Now, I know that many Naruto games have this kind of system, but ive never really gotten a good look at their system.
I also looked for 'NPC Ranged Combat' and this was sitting at the bottom, I feel for this guy that he never really got an answer from the people here:
'Well, I've figured how to do melee combat with NPCS, but range combat escapes me. I tried to modify a couple different melee systems, but they failed. I am totally stumped. Another thing is I am trying to have the NPC walk around when a target is not in range. If I did not the walk part, I'd probally be home free already, but, meh. The part that really complicates my predicament is that I have several checkers, that check several mob/vars to see if the mob is to be shot at or not. I know how to implement these, but I am not sure where to'
If you want NPCs to use the same skills that players use, those skills had to be programmed in such a way that allows for client independence. For example, the skills should be usable by any player or NPC type, without using usr or client. Then, you would make the NPC use the skill the same way a player would.
For example,