Skip to content

Adding Grep and Find commands #3

@Legedith

Description

@Legedith

I like the idea of using grep for searching files for keys. I have previously implemented this where a user had to grep through a log file for a phrase which would reveal an ascii art item.

find would be a valuable tool to have as well. Could look at creating a specific file within a subdirectory such as .hidden.key that the player would need to locate with something like:

find . -type f -name "*.key"

The specific scenario could be something along the lines of:

You have entered a room. There is a door on the opposite side, which is locked.
You must find the key to advance forward. Use 'ls' to see what's in the room.

When the user enters the room the game can create a number of directories:

chest
book
chest of drawers
...
etc

The hidden.key can be added to one of the directories to be found. It can then contain a message that can be cat'd out to reveal the next step forward.

Originally posted by @am401 in #1 (comment)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions