SUGGESTION: 'Anything' word added to text parser

Started by Akatosh, Tue 02/01/2007 12:36:03

Previous topic - Next topic

Akatosh

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.

Gilbert

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:


:=

Akatosh

Anyword does not match nothing, stupid. So no  :=

Gilbert

Why not try "[anyword]" ?
I'd never checked so it might not work though.

Akatosh

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.

Pumaman

Sounds like a bug to me, [anyword] should really work. I'll have a look at it.

SMF spam blocked by CleanTalk