aicreator's Recent Forum Activity

  • I am trying to split a sentence stored in a variable into words at runtime into another variable which should store only one word and the length of that word should not exceed a given number(For example 5) AND Words whose length exceed that given number should be skipped and all this should be done at runtime and preferably by using loops and my project is here-https://www.dropbox.com/s/f54wojbmzujbugr/Search%20and%20Analyzse%20WITH%20CHANGES.c3p?dl=0 can anyone please help me with this.

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well, Maverick1912 I am trying to create a software in which after typing a list of words along with the list name.I can type a letter in a the search box and then get the number of words which contain the character which I have typed and tge number of words that do not and the words themselves in two groups with one group containg the words which match the character which I have typed and another group containg the words from my list which do not contain the character which I have typed in two sentences in the text box of my project,and with then I also want to filter the words contained in my list by its length which can and will be typed in the Text Box.

  • Well,@Maverick1912 I am unable to filter words by length in my project based on your suggestion and can you please help me with this and my project is https://www.dropbox.com/s/f54wojbmzujbugr/Search%20and%20Analyzse%20WITH%20CHANGES.c3p?dl=0

  • I had thought of having these commands being added to Construct 3,However I do not think that the commands below will be added to Construct 3 as it is possible to do most of the things in Construct 3 without these commands using the event sheet,However these commands will save a person a lot of time and hard work and so I am thinking of requesting the people of Construct's Community who know how to code to add these commands to Construct 3(By making a plugin or an addon) and if they want to even make changes to these commands below and I am also providing event sheet pseudo code for these commands which are-

    Regex

    1)Loops- a)Loop until

    a1)"Extract" Found - Add Variable ("Value to search for") String

    Add Variable ("Value to be searched") String

    Add Variable ("Output") String

    Set Value-Find(Value to be searched for)-"a"(Here "a")

    New Event

    Compare two values (Value to search for=Value to be searched)

    Set Variable("Output") to ("Found")

    Else

    Compare two values ("Value to search for" does not equal to "Value to be

    searched")

    Set Value("Output")-"Not Found"

    New Event

    Compare Variable("Value to be Searched")-"Found"

    New Event

    Compare Variable("Output")="Found"

    Stop loop

    a2)Letter Number(RegEx and Flags can be slightly modified to extend the scope of this command to include word number,sentence number,paragraph number etc.) - Add Variable("String")

    Add Variable("Loop Number to stop at")

    Add Variable(Boolean)-False

    Is Boolean-False

    For-"My First Loop"-0-

    RegexSearch(String,Regex,Flags)

    Set Boolean-True

    b)Loop until end of string- Add Variable("String")

    For-"My First Loop"-0-Len(String)

    c)Replace word by (String/Variable) if(word contains ""/Variable) - Add Variable-("String")

    Add Variable-("Word to be replaced")

    Add Variable-("Word to replace the

    word to be replaced")

    Replace-(string,word to be

    replaced,word to replace word to be

    replaced with)

    d)Stop a loop if a word contains(number/variable/string) (works only for "For" Loop- Add Variable("String")

    Add Variable("Word Contains")

    Add Variable("Check whether word contains") Number

    Set Value-Check whether word contains-

    Regexsearch(string,Regex,Flags)

    For-"My First Loop",0,Check whether word contains")

    e)Loop from(Alphabet No/Letter No,Sentence No,Whitespace No,last Whitespace no(Variable or Number) before text,Whitespace (Variable or Number) after text - Add Variable("String")

    Add Variable("Number")

    Set Value-Number-

    RegexMatchAt(String,Regex,Flags,

    Index(Your Desired Number Here))

    For-"My First Loop"-0-Number

    (Variable)+1)

    2.Boolean

    2a)Extract First Text after whitespace number(zero based)- Add Variable ("Whitespace Number")=0

    Add Variable ("String")

    Set Variable-Whitespace Number-

    RegexMatchAt(String,Regex,Flags,Whitespace

    Number+1)

    2b)For Each(Activate/Deactivate/Toggle)-a) Add Variable-("For Each Boolean")

    Is Boolean

    For-"My First Loop,1,3)

    b)[Invert]Is Boolean

    Stop Loop

    And,While these commands can be made as Functions in Construct 3,However they will contain limitations and for many cases will be hard to add and because of these reason I am requesting the people who know how to code in Construct's community to add these commands to Construct 3 and If my request is successful in this case then may be I will be able to ask Tom to add another section to the forum of Construct 3 from which the users of Construct 3 who do not know how to code will be able to post their ideas along with the necessary details and hopefully will be able to get the people who know how to code to make general purpose plugins for them in order to help the community of Construct.

    Tagged:

  • Your Idea is very good and I would also like to ask Ashley to look at this Idea and I also recommend you to post this idea in Construct's Ideas and Suggestions platform.

  • I want to filter text from a variable based on its length for example 5 characters,can anyone tell me how to do this,Cheers.

  • I have a dictionary containing n cells and I want to know how many of those cells contain the letter "a",

    For example- If I have a dictionary with 3 cells which contain the letters a,a,b and I want to find the number of cells in a dictionary which contain the letter "a" which is the value of a variable then the output that I should get should be 2 and along with that I also want to know the Index Numbers of those cells which in this case is X1 and X2,But I am unable to do this,Can anyone help me to achieve this.

  • And I also request WackyToaster to help me with this question so that I can create a spelling correction software to help other people in correcting their spelling mistakes which involve symbols of the Hindi Language.

  • well, dop2000 can you help me with this as I will be using the event blocks of the answer to create a spelling correction software for symbols for students and myself and I will also post the screenshots of the events of that software so that I can help even more people,Cheers.

  • I want to create a software in which when I type an alphabet in a text input box and then select a list(of arrays) I get the number of words in a variable which contain that particular letter along with the words themselves again in a variable,Can any one show me how to do this,Please I am not good at RegEx,Cheers.

  • I have many sentences and I want to break down each sentence into words contained in it and then transfer them into an 1 dimensional array (through the event sheet) with each word taking up a single array cell and can anyone help me with this ?

  • This problem can be broken down into a few parts which are as follows-

    1) Storing the name of a list along with the list.(By array,dictionary,variables)

    2)Calculating the number of symbols present in each word(By RegEx)

    3)Calculating the order of symbols in each word(By variable actions,ex-Add to variable)

    4)Storing the feedback of the user (By array,dictionary,variables)

    5)Averaging the difficulty rating given by the user to a symbol or the order of symbols in a word(By variables and math operations)

    6)Identifying a list based on its name(By RegEx)

    6)Giving the statistics of the quantity of words,letters and symbols of the list(By RegEx and Variables).

aicreator's avatar

aicreator

Member since 16 Oct, 2018

None one is following aicreator yet!

Trophy Case

  • 6-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies