[SOLVED]How do I fetch matched key in Dictionary?

Get help using Construct 2

Post » Sat Jul 18, 2015 9:13 am

I'm trying to research how to fetch matched keys, this is complete key below:


[email protected]:monster1
[email protected]:monster2
[email protected]:monster3
[email protected]:monster1
[email protected]:monster2
[email protected]:monster1
[email protected]:monster2


I need to know how to fetch matched key in loop as result:

[email protected]:monster1
[email protected]:monster2

and avoided to fetch others. It can be used with tokenat.

Do you know how?

Thanks
Last edited by Joannesalfa on Sat Jul 18, 2015 7:55 pm, edited 1 time in total.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Sat Jul 18, 2015 10:10 am

Are these the key-names or are these the values of the keys?

If you'd like to use tokenat, there should at least be a seperator..
If I understand what you are trying to do I'd make a key called [email protected] for each adress/player and set the value to "monster1;monster2;monster3"
or similar to that..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jul 18, 2015 5:54 pm

@LittleStain

These are key-names, not values.

No, the key is created as "[email protected]:monster1" the value is not required, for my personal purpose, I used JSON values.

I need to know how to pick matched "[email protected]" then accompany with ":monsters[numbers]" in loop.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Sat Jul 18, 2015 7:14 pm

something like this? :?

example.capx
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Sat Jul 18, 2015 7:54 pm

@korbaach Thats it, thanks a lot! I will owe you when you need a help, at this case, you will mention me @ with my name anywhere in the forums.


Solved thread.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 14 guests