Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Akatosh on Tue 02/01/2007 12:36:03

Title: SUGGESTION: 'Anything' word added to text parser
Post by: Akatosh on Tue 02/01/2007 12:36:03
The Subject pretty much says it - I'd like to see a word in the textparser which can be a placeholder for pretty much anything - even nothing. 'anything' would match any input; it'd be pretty much like rol, just that you can also set it at the beginning (Parser.Said("anything tools")) which is not possible with rol.
Title: Re: SUGGESTION: 'Anything' word added to text parser
Post by: Gilbert on Tue 02/01/2007 12:44:43
From manual:

There are a couple of special words you can use with the Said command. "anyword" will match any word that the user types in. For example, Said("throw anyword away") will match if they type "throw dagger away", or "throw trash away". "rol" (short for Rest-of-Line) will match the rest of the user's input. So, you might want to do:


:=
Title: Re: SUGGESTION: 'Anything' word added to text parser
Post by: Akatosh on Tue 02/01/2007 12:58:12
Anyword does not match nothing, stupid. So no  :=
Title: Re: SUGGESTION: 'Anything' word added to text parser
Post by: Gilbert on Tue 02/01/2007 13:42:51
Why not try "[anyword]" ?
I'd never checked so it might not work though.
Title: Re: SUGGESTION: 'Anything' word added to text parser
Post by: Akatosh on Tue 02/01/2007 13:50:45
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29579.0

I tried that, too. Didn't work. There *is* a way around it, but I'd really like this to be a parser-intern function.
Title: Re: SUGGESTION: 'Anything' word added to text parser
Post by: Pumaman on Thu 04/01/2007 17:55:15
Sounds like a bug to me, [anyword] should really work. I'll have a look at it.