Counting # of uniq instances in dimension of array

Get help using Construct 2

Post » Sun Jul 21, 2013 9:15 pm

Hi all,

I have four quiz question banks in 1 array, distinguished by the X dimension. The Y dimension is the question in the quiz, and the Z dimension contains the answers.

For example, 1, 1, 1 = Question 1 of Quiz one.
1, 1, 2 = Potential answer of Quiz 1, Question 1.
1, 2, 1 = Quiz 1 Question 2.

Basically, I want to count the number of questions in a quiz. I'm trying to figure out how to count the number of UNIQUE instances in an array, so I can determine the total number of questions. So, instead of 1, 1, 1 and 1, 1, 2 equaling 2, I want it to equal 1.

ThanksClocksTNW2013-07-21 21:22:48
B
9
S
2
G
2
Posts: 47
Reputation: 1,822

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests