Creating a pool from a list of txtstrings in a CSV

Get help using Construct 2

Post » Tue Oct 23, 2012 11:06 am

I have a list of 2000 text strings. Each string has several tags attached to it marked ON or OFF. Let's say SWEET, SOUR, SPICY, TART and SALTY.

I want the user to be able to make these tags either ON, OFF, or EXCLUDE.

So if the user selects SWEET and TART as ON, it will create a pool of text strings which have either of these tags. But if the user selects SWEET as ON and TART as EXCLUDE, it will create a list of all the text strings with the SWEET tag, but then it will exclude from this list any of these which also have the TART tag.

So far I can only create a pool of all the ON tags, and I can't figure out how to cull the ones marked EXCLUDE.

Is there a logical way to do this without assigning an ID to each text string?

I hope this isn't so vague as to be a waste of time asking...rrosai2012-10-23 11:08:03
B
4
Posts: 15
Reputation: 369

Post » Wed Oct 24, 2012 6:34 pm

Here is an example that filters through a Chinese menu, including some words and excluding others:
http://dl.dropbox.com/u/5426011/examples15/find.capx

If you want to use actual tags you could setup the array like this:
Array.At(n,0) would be the sting
Array.At(n,1) would be a comma separated list of the tags.

The use find on the tags list instead of the sentence.
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests