I am trying to build logic into my game where it will assign names at random to NPCs. I have a FirstNames array which has:
- COL 0: Gender
- COL 1: Species
- COL 2: Name
I have a Crew array which is already pre-populated with Species and Gender values, so I just need this loop to match a row from the Crew to a row from FirstNames and then assign a name to that row on Crew array.
It's currently assigning names at random, but it's not actually matching the attributes it's just picking random names.
Can anyone help me fix this?