This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
import requests | ||
|
||
def search_for_item(self, item_name: str = "Automaton") -> bool: | ||
response = requests.post( | ||
f"{os.getenv('API_URL')}:{os.getenv('API_PORT')}/v1/inventory/search/", | ||
data={ | ||
"charname": os.getenv('GITHUB_USER'), | ||
"item_name": item_name | ||
} | ||
) | ||
return response.status_code | ||
|
||
items = ["Shovel", "Mechanism", "GlowingOrb"] | ||
|
||
for item in items: | ||
response = search_for_item(item) | ||
print(f"{item}: {response}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
- entrance/mists/GlowingOrb.py: | ||
- description: "You unearthed the GlowingOrb" | ||
check: ConfirmFileExists | ||
- entrance/mists/Mechanism.py: | ||
- description: "You unearthed the Mechanism" | ||
check: ConfirmFileExists | ||
- entrance/mists/.cache/.flavor: | ||
- description: "You dug the cache to store extra items" | ||
check: ConfirmFileExists | ||
- description: You overcame the Termites with the automaton | ||
check: MatchCommandFragment | ||
options: | ||
fragment: "null" | ||
count: 0 | ||
exact: true | ||
command: jq .asked .flags | ||
- description: You picked up the Shovel | ||
check: MatchCommandFragment | ||
options: | ||
fragment: "Shovel: 200" | ||
count: 1 | ||
exact: true | ||
command: python .checkitems | ||
- description: You picked up the GlowingOrb | ||
check: MatchCommandFragment | ||
options: | ||
fragment: "GlowingOrb: 200" | ||
count: 1 | ||
exact: true | ||
command: python .checkitems | ||
- description: You picked up the Mechanism | ||
check: MatchCommandFragment | ||
options: | ||
fragment: "Mechanism: 200" | ||
count: 1 | ||
exact: true | ||
command: python .checkitems | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# venture-narrascope-demo | ||
Demo repository for Narrascope 2024 presentation. | ||
# Your first journey | ||
|
||
> Welcome to the dungeon, we've got toys and games. | ||
> - Somebody Loud | ||
![Map graphic detailing the path to an unknown X](.media/image.png) | ||
|
||
## Summary | ||
|
||
You're about to begin the adventure of a thousand steps with just one...`cd`? In our journey, | ||
we use different commands to walk around the world presented to us. In this short excursion, | ||
we'll learn a few of these including: | ||
|
||
### For movement | ||
|
||
> - `cd` | ||
### To interact | ||
> - `look` | ||
> - `talk` | ||
### To get and receive _things_ | ||
> - `inventory` | ||
> - `get` | ||
> - `use` | ||
> - `info` | ||
> - `give` | ||
Each of these will give us abilities that help us negotiate the terrain around us | ||
or...just do _stuff_? Whether that stuff is important to you or not is something | ||
you'll have to figure out. There's a surprising lot to do with the list of commands | ||
above. | ||
|
||
### About this adventure | ||
|
||
This particular adventure starts and ends in a dungeon that wasn't there yesterday. Surprising | ||
to be sure, but also _exciting_! What wonders lurk there? What challenges do you have to solve? | ||
What friends and allies will you meet? | ||
|
||
This is the start of your time in `_Venture_`; go forth traveler, and explore! |