Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects #5

Open
peteruithoven opened this issue Jun 17, 2013 · 0 comments
Open

Objects #5

peteruithoven opened this issue Jun 17, 2013 · 0 comments

Comments

@peteruithoven
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant