| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A silly little text adventure.
Locations are organized in files. Each location is its own file.
You can add a location by following these steps:
location_variable = {
"USER_INPUT": {
"output": function_name,
"next_location_id": None
}
}Replace the location_variable with a unique name.
For each possible user input, add a dictionary. The dictionary must have a output and next_location_id value.
The output should be assigned a function and return a string to display to the user.
The next_location_id should be any ID available in the locations dictionary in the main.py file if the user in put should change the location to that place. Use None if the location should not be changed.
Define a "fallback" as USER_INPUT for one of the dictionaries to catch all not-matched user inputs.
Once the room is defined:
| Back | FazBrowse Home | New Git URL |