How do I check for a value on an array line

Get help using Construct 2

Post » Tue Feb 21, 2017 11:47 pm

I want to check for a value in my array on a certain axis, I.E positions (1,0) (1,1), (1,2)... for my inventory. As I want to check for item ID's but the second line of the array (the one that defines the amount of an item in the inventory) is interfering
B
9
S
5
Posts: 40
Reputation: 919

Post » Tue Feb 21, 2017 11:57 pm

ID is on X ? Amount is on Y ?

Store as
(action) Set at XY .. x = id .. y = 1

Retrieve as
(expression) Array.At(id,1)

Compare as
(condition) Compare at XY .. X = id .. Y = 1
B
33
S
18
G
28
Posts: 2,470
Reputation: 20,904


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests