X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=adventure.yaml;h=29516625008065157a4c0e349f4d1f43e67465d7;hp=df5dfc7f5399a0eea77afcd63e99f8ce6ed167ef;hb=1e643da216737e148839f463c10594bbb8ac246b;hpb=f9edfc51515853c21418c1d55b681a71681a748c diff --git a/adventure.yaml b/adventure.yaml index df5dfc7..2951662 100644 --- a/adventure.yaml +++ b/adventure.yaml @@ -6,14 +6,17 @@ # # We define a bunch of YAML structures: # -# vocabulary: Almost all the words the game knows - one of them (the +# vocabulary: - This structure is unused, and will eventually be removed. - +# Almost all the words the game knows - one of them (the # reservoir magic word) gets replaced with a randomly-generated # cookie. For each word there is a type (motion, action, object, # or special) and a numeric value. Multiple synonyms may have the # same value. # -# actspk: Default message for action verbs. The numbers correspond to -# values in the vocabulary list. +# motions: Motion words, grouped into synonyms. +# +# actions: Action words, grouped into synonyms, and their corresponding +# default messages. # # hints: Each item contains a hint number, a hint label (used to # generate the value macro for the hint) the number of turns he @@ -80,16 +83,17 @@ # Order doesn't matter; the logic simply tests every threshold on # the assumption that turn counts never decrease nor skip values. # -# object_descriptions: Each item contains a description for use in the +# objects: Each item contains a description for use in the # inventory command and one or more messages describing the object -# in different states. There is also a boolean "treasure" -# attribute, defaulting to false. An pbject may have one or two +# in different states. The vocabulary word(s) referring to this +# object are listed (words). There is also a boolean "treasure" +# attribute, defaulting to false. An object may have one or two # start locations (the gate is an example of a two-location object; # it can be accessed from above or below). An object may also be # flagged immovable, meaning it cannot be carried. If a state # message is a tuple then the first element is made the name of a -# #define viible to the code for the associayed state, numbered -# from zero upwards. If the inventory desription begins with "*" +# #define visble to the code for the associated state, numbered +# from zero upwards. If the inventory description begins with "*" # the object is dungeon furniture that cannot be taken or carried. # # obituaries: Death messages and reincarnation queries. Order is @@ -340,44 +344,6 @@ vocabulary: [ {word: "NEWS", type: special, value: 275}, ] -actspk: { - 1: ALREADY_CARRYING, - 2: ARENT_CARRYING, - 3: NO_MESSAGE, - 4: NOT_LOCKABLE, - 5: NO_MESSAGE, - 6: NOT_LOCKABLE, - 7: DONT_UNDERSTAND, - 8: DONT_UNDERSTAND, - 9: NOTHING_HAPPENS, - 10: AM_GAME, - 11: WHERE_QUERY, - 12: RIDICULOUS_ATTEMPT, - 13: ARENT_CARRYING, - 14: RIDICULOUS_ATTEMPT, - 15: STREAM_WATER, - 16: RUB_NOGO, - 17: ARENT_CARRYING, - 18: HUH_MAN, - 19: NEARBY, - 20: NEARBY, - 21: NO_EDIBLES, - 22: CANT_FILL, - 23: REQUIRES_DYNAMITE, - 24: HUH_MAN, - 25: NOT_KNOWHOW, - 26: ON_WHAT, - 27: DONT_UNDERSTAND, - 28: BEYOND_POWER, - 29: RIDICULOUS_ATTEMPT, - 30: HUH_MAN, - 31: HUH_MAN, - 32: AM_GAME, - 33: DONT_UNDERSTAND, - 34: NOTHING_HAPPENS, - 35: HUH_MAN, -} - motions: !!omap - MOT_0: words: !!null @@ -534,6 +500,116 @@ motions: !!omap - MOT_76: words: ['main', 'offic'] +actions: !!omap +- ACT_0: + message: !!null + words: !!null +- ACT_1: + message: ALREADY_CARRYING + words: ['carry', 'take', 'keep', 'catch', 'steal', 'captu', 'get', 'tote', 'snarf'] +- ACT_2: + message: ARENT_CARRYING + words: ['drop', 'relea', 'free', 'disca', 'dump'] +- SAY: + message: NO_MESSAGE + words: ['say', 'chant', 'sing', 'utter', 'mumbl'] +- ACT_4: + message: NOT_LOCKABLE + words: ['unloc', 'open'] +- ACT_5: + message: NO_MESSAGE + words: ['nothi'] +- LOCK: + message: NOT_LOCKABLE + words: ['lock', 'close'] +- ACT_7: + message: DONT_UNDERSTAND + words: ['light', 'on'] +- ACT_8: + message: DONT_UNDERSTAND + words: ['extin', 'off'] +- ACT_9: + message: NOTHING_HAPPENS + words: ['wave', 'shake', 'swing'] +- ACT_10: + message: AM_GAME + words: ['calm', 'placa', 'tame'] +- ACT_11: + message: WHERE_QUERY + words: ['walk', 'run', 'trave', 'go', 'proce', 'conti', 'explo', 'follo', 'turn'] +- ACT_12: + message: RIDICULOUS_ATTEMPT + words: ['attac', 'kill', 'fight', 'hit', 'strik', 'slay'] +- ACT_13: + message: ARENT_CARRYING + words: ['pour'] +- ACT_14: + message: RIDICULOUS_ATTEMPT + words: ['eat', 'devou'] +- ACT_15: + message: STREAM_WATER + words: ['drink'] +- ACT_16: + message: RUB_NOGO + words: ['rub'] +- THROW: + message: ARENT_CARRYING + words: ['throw', 'toss'] +- ACT_18: + message: HUH_MAN + words: ['quit'] +- FIND: + message: NEARBY + words: ['find', 'where'] +- INVENT: + message: NEARBY + words: ['inven'] +- ACT_21: + message: NO_EDIBLES + words: ['feed'] +- ACT_22: + message: CANT_FILL + words: ['fill'] +- ACT_23: + message: REQUIRES_DYNAMITE + words: ['blast', 'deton', 'ignit', 'blowu'] +- ACT_24: + message: HUH_MAN + words: ['score'] +- ACT_25: + message: NOT_KNOWHOW + words: ['fee', 'fie', 'foe', 'foo', 'fum'] +- ACT_26: + message: ON_WHAT + words: ['brief'] +- ACT_27: + message: DONT_UNDERSTAND + words: ['read', 'perus'] +- ACT_28: + message: BEYOND_POWER + words: ['break', 'shatt', 'smash'] +- ACT_29: + message: RIDICULOUS_ATTEMPT + words: ['wake', 'distu'] +- ACT_30: + message: HUH_MAN + words: ['suspe', 'pause', 'save'] +- ACT_31: + message: HUH_MAN + words: ['resum', 'resta'] +- ACT_32: + message: AM_GAME + words: ['fly'] +- ACT_33: + message: DONT_UNDERSTAND + words: ['liste'] +- ACT_34: + message: NOTHING_HAPPENS + words: ['z''zzz'] +- ACT_35: + message: HUH_MAN + words: !!null + hints: - hint: &grate name: CAVE