Text parser

Started by earlwood, Fri 02/05/2003 16:22:24

Previous topic - Next topic

earlwood

I decided to add a text parser to my game, so it can be another step closer to being like an old school sierra game. But It just won't show in the game.. Any idea why?

cornjob

Well, you have to create all the elements of the parser yourself. How much have you done so far? First, you need a gui with a Textbox on it so you can get player input. Then you need a script (in the gui's interface_click script) that processes input after the player enters text. Basically, you use GetTextBoxText to get the text as a string. Then process the string with ParseText. Then use the Said function to test what was parsed and carry out the response. And of course, add all the words and synonyms you're going to use into the list on the parser tab.
It's not easy to do, but good luck. I'd love to see more old school parser games.

SMF spam blocked by CleanTalk