Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Needed - NPC Battle System
#7
All you have to do is scan the map and store all the player's indexes in an array. Say you had player 1, 5 and 15 in the same room. Just store 1,5,15 in an array. You could look at the code Jacob posted on arrays, it would help big time.

Then you would have 3 players in an array, so you would need a random number between 1 and 3. If you get 3, it goes after index 15, if you get 1, it goes after index 1.

That help anymore?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)