Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Needed - NPC Battle System
#4
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. Wink

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)