Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Guyserman82 on Sun 28/10/2012 01:32:05

Title: Spell Checker for text parser
Post by: Guyserman82 on Sun 28/10/2012 01:32:05
Hey, I'd like to have make a text parser game, but I'd like there to be a spell checker for it. Any idea how I'd write one?
Remember this is for running inside the AGS engine, not the IDE.
Title: Re: Spell Checker for text parser
Post by: Khris on Sun 28/10/2012 13:27:15
-Get a textfile with all dictionary words
-in the game, open it and load all words into an array
-constantly get the contents of the parser text field, split it into words and search the array for each one.
-devise a way of showing misspelled words, e.g. by drawing lines on the background of an unclickable GUI placed on top of the parser