aicreator's Forum Posts

  • I want to match a character only once per word(of a length defined by me using a variable) and I am using this RegEx "\b\w{3,8}\b" for limiting words outside of a given range which is (3 to 8 words) here from being picked and Can anybody send me a Regex for doing this,Here are are a few Examples-

    Aam-Not Picked

    als-picked("als")

    //As it does not contain any repeating character and its length is within 3 to 8 words//

    aamm-Not picked

    //As it contains two repeating letters "a" and "m" respectively//

    a-Not picked'

    //As its a's length is less than 3 words//

    Thanks-Picked

    //As its length is within the range of 3 to 8 letters and this word does not have any repeating letters//

    Tagged:

  • I have a string variable with many words seperated by a whitespace and I want to remove the words which contain more than 4 Characters from that variable,Can anyone show me how to do this,Have a Good Day.

  • Well,I have created a memory system to help others in which there are 10 lists with 10 contents in each list and each of those contents are assosiated with a unique number(0 to 9) and each of those lists are associated with a unique digit count for ex-Input- A three digit number-(Content Index is Zero based) =150(List1,Content1-List2,Content5-List3,Content0)

    Note:The Lists along with their contents are-

    A) Animals

    A0 hawk

    A1 jaguar

    A2 dog

    A3 snake

    A4 squirrel

    A5 tortoise

    A6 bat

    A7 scorpion

    A8 deer

    A9 monkey

    B) Adverbs

    B0 = Absentmindedly

    B1 = Carefully

    B2 = Happily

    B3 = Eagerly

    B4 = lazily

    B5 = Eagerly

    B6 = Wishfully

    B7 = Quickly

    B8 = Cheerfully

    B9 = Loyally

    C) Body Diseases

    C0 = Rash

    C1 = Boil

    C2 = Kala-Azar

    C3 = Jaundice

    C4 = Leporsy

    C5 = Acne

    C6 = Blister

    C7 = Hives

    C8 = Moles

    C9 = Sunburn

    D)Adjectives

    D0 - icy

    D1 - hot

    D2 - new

    D3 - my

    D4 - your

    D5 - oily

    D6 - itchy

    D7 - yucky

    D8 - heavy

    D9 - happy

    E) Actions

    E0 - sawing

    E1 - tee-ing

    E2 - kneeing

    E3 - mowing

    E4 - rowing

    E5 - sitting

    E6 - laughing

    E7 - cueing

    E8 - waving

    E9 - paying

    F) location Verb

    F0 - Read ___ Library

    F1 - Ride ___ Garage

    F2 - Run ___ Field

    F3 -Send ___ Post Office

    F4 - Shout ___ Auditorium

    F5 - Sing ___ Concert

    F6 - Judge ___ Court

    F7 - Smile ___ Circus

    F8 - Spend ___ Bank

    F9 - Stand ___ Store

    G) Names of Rooms

    G0 Cloakroom

    G1 Conservatory

    G2 Dining Room

    G3 Drawing Room

    G4 Games Room

    G5 Bed Room

    G6 Store Room

    G7 Infirmary

    G8 Library

    G9 Music Room

    H) Cartoon Characters

    H0 - Mickey Mouse

    H1 - Donald Duck

    H2 - Popeye

    H3 - Goofy

    H4 - Jerry

    H5 - Tom Cat

    H6 - Jake

    H7 - Finn

    H8 - Diego

    H9 - Johnn

    I) Birds

    I0 - Parrot

    I1 - Crow

    I2 - Owl

    I3 - Woodpecker

    I4 - Crow

    I5 - Hummingbird

    I6 - Crane

    I7 - Kingfisher

    I8 - Duck

    I9 - Penguin

    F) Disablities

    F0 - Blindness

    F1 - Leporsy

    F2 - Dwarfism

    F3 - Deafness

    F4 - Cerebral Palsy

    F5 - Mute

    F6 - Acid Attack

    F7 - Spinal Cord Injury

    F8 - Weakness

    F9 - Lame

    Please,I want to know how to replace numbers upto 10 digits long into a sentence with the words given above.

  • 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:

  • 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:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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).