01-08-2009, 12:52 AM
GameBoy Wrote:Yep, that's what I'm trying to do. I'm unsure how to get the NPC to randomly choose a target. The attack code is all already there, it's just figuring out how to add that random selection which I'm having trouble with at the moment.
Just need to change the target code. Store all the indexes in an array and then randomly choose one. And select it as the target.

If you want, later tonight I'll take a look at the code and see if I can do it for you.