How to compare two elements in the same array

PerCat
Fri, 01 Mar 2019 21:28:11 +0000
Blueprint

When an npc is generated they have a random id and their last name added to a struct which is then put into an array. How do I check those values against each other?

Say its 310:Gray, 262:Covics, and 689:Gray, how would I then check those against each other?

Making sure that the last names either do or don’t match and if they do then I check to make sure the numbers don’t, then from their if they do or don’t act upon them.

Thanc

2 posts - 1 participant