Declare one-letter synonyms for some commands.

As issue #6 (Add single-letter verb synonyms) says:

Modern interactive fiction has converged on a fairly standard
vocabulary of one-letter abbreviations for common verbs. Besides
directional commands, they are:

d - drop
g - get
i - inventory
l - look
x - examine (synonymous in ADVENT with look)
z - wait

Open Adventure should implement these.

This commit doesn't make them work yet, but it declares them for when the
lexical analyzer is fully YAML-driven.
This commit is contained in:
Eric S. Raymond 2017-06-28 12:05:41 -04:00
parent f5719f1aba
commit a1af74b534

View file

@ -462,7 +462,7 @@ motions: !!omap
- MOT_56: - MOT_56:
words: ['climb'] words: ['climb']
- LOOK: - LOOK:
words: ['look', 'exami', 'touch', 'descr'] words: ['l', 'x', 'look', 'exami', 'touch', 'descr']
- MOT_58: - MOT_58:
words: ['floor'] words: ['floor']
- MOT_59: - MOT_59:
@ -508,10 +508,10 @@ actions: !!omap
words: !!null words: !!null
- CARRY: - CARRY:
message: ALREADY_CARRYING message: ALREADY_CARRYING
words: ['carry', 'take', 'keep', 'catch', 'steal', 'captu', 'get', 'tote', 'snarf'] words: ['g', 'carry', 'take', 'keep', 'catch', 'steal', 'captu', 'get', 'tote', 'snarf']
- DROP: - DROP:
message: ARENT_CARRYING message: ARENT_CARRYING
words: ['drop', 'relea', 'free', 'disca', 'dump'] words: ['d', 'drop', 'relea', 'free', 'disca', 'dump']
- SAY: - SAY:
message: NO_MESSAGE message: NO_MESSAGE
words: ['say', 'chant', 'sing', 'utter', 'mumbl'] words: ['say', 'chant', 'sing', 'utter', 'mumbl']
@ -520,7 +520,7 @@ actions: !!omap
words: ['unloc', 'open'] words: ['unloc', 'open']
- NOTHING: - NOTHING:
message: NO_MESSAGE message: NO_MESSAGE
words: ['nothi'] words: ['z', 'nothi']
- LOCK: - LOCK:
message: NOT_LOCKABLE message: NOT_LOCKABLE
words: ['lock', 'close'] words: ['lock', 'close']
@ -565,7 +565,7 @@ actions: !!omap
words: ['find', 'where'] words: ['find', 'where']
- INVENTORY: - INVENTORY:
message: NEARBY message: NEARBY
words: ['inven'] words: ['i', 'inven']
- FEED: - FEED:
message: NO_EDIBLES message: NO_EDIBLES
words: ['feed'] words: ['feed']