Skip to content

Objects #5

@peteruithoven

Description

@peteruithoven

For more interaction objects would be interesting.

This would require a list of objects per location, something like:

  building-elevator:
    output: |
      Elevator music is playing while your going up...
    objects:
      - wallet 
      - sunglasses

And a list of objects:

objects:
  wallet:
    take: 
      - Pick up wallet
      - get wallet
    drop: 
      - Drop wallet
    commands:
      - inputs:
          - (check|open) .*?wallet
        content: |
          in the wallet there is a buscard, a blanco passport, a few coins and a letter. 
      - inputs:
          - pay using coins
        content: |
          Paid

So each object has:

  • name: Short name of object
  • take: what inputs are possible for taking the object. Accesible in locations that contain the object.
  • drop: what inputs are possible for dropping the object. Accesible when the user has the object in their repository.
  • commands: other commands that are possible with the object. Accesible when the object are in the inventory.

Objects should be removed from a location when picked up and be placed in a location when dropped.

I'm not sure about the take and drop input part, it might be nice to have general take and drop commands for object. Something like "pick up {object}", but this requires special words that are replaced later on.

It would also be nice to have a general command to list the items that are currently in the repository. Maybe in a list of general commands, like help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions