Armageddon General Discussion Board

General => Code Discussion => Topic started by: mansa on June 05, 2020, 08:21:08 PM

Title: Syntax and the word "in"
Post by: mansa on June 05, 2020, 08:21:08 PM
I'd like to have syntax take into account the word "in" when typing commands into the game.

Primarily, I would like the syntax to be able to understand the intent, rather than just give a failure echo that doesn't match the expected results.  Ain't that fun?  I was thinking, and we could take the command and basically ignore it.  Maybe that can work?


>put sword in bag
>pilot wagon in argosy
>place dagger in table


This could be expanded for more "english like" commands, like 'from', 'in', 'on', etc.

>get sword from bag
>take dagger from table

I wonder how much work would need to be done in the syntax parser of Diku to make this work well.
Title: Re: Syntax and the word "in"
Post by: Kyviantre on June 05, 2020, 09:04:53 PM
My need to avoid RSI says 'Please no' to this... :-\
Title: Re: Syntax and the word "in"
Post by: Helloworld on June 05, 2020, 09:29:33 PM
Quote from: Kyviantre on June 05, 2020, 09:04:53 PM
My need to avoid RSI says 'Please no' to this... :-\

I think his idea incorporates this as an option, not requirement for the input.

Also, "into", would be nice (if idea is feasible in the first place).
Title: Re: Syntax and the word "in"
Post by: Kyviantre on June 05, 2020, 10:28:38 PM
Adding options is fine...ya'll want to type more keys, be my guest!