From: Eric S. Raymond Date: Wed, 28 Jun 2017 16:05:41 +0000 (-0400) Subject: Declare one-letter synonyms for some commands. X-Git-Tag: 1.1~53 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a1af74b534bda5a0c1f2bf08544937dcec2b0e2b;p=open-adventure.git 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. --- diff --git a/adventure.yaml b/adventure.yaml index 5e18f75..02af861 100644 --- a/adventure.yaml +++ b/adventure.yaml @@ -462,7 +462,7 @@ motions: !!omap - MOT_56: words: ['climb'] - LOOK: - words: ['look', 'exami', 'touch', 'descr'] + words: ['l', 'x', 'look', 'exami', 'touch', 'descr'] - MOT_58: words: ['floor'] - MOT_59: @@ -508,10 +508,10 @@ actions: !!omap words: !!null - CARRY: 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: message: ARENT_CARRYING - words: ['drop', 'relea', 'free', 'disca', 'dump'] + words: ['d', 'drop', 'relea', 'free', 'disca', 'dump'] - SAY: message: NO_MESSAGE words: ['say', 'chant', 'sing', 'utter', 'mumbl'] @@ -520,7 +520,7 @@ actions: !!omap words: ['unloc', 'open'] - NOTHING: message: NO_MESSAGE - words: ['nothi'] + words: ['z', 'nothi'] - LOCK: message: NOT_LOCKABLE words: ['lock', 'close'] @@ -565,7 +565,7 @@ actions: !!omap words: ['find', 'where'] - INVENTORY: message: NEARBY - words: ['inven'] + words: ['i', 'inven'] - FEED: message: NO_EDIBLES words: ['feed']