Stickers! Yeah!


Below is the code that I wrote, in Python, to help DMs run a game. I wanted a way to generate random meals to be offered to the characters in the game without spending the time needed to roll each food thus slowing down the game. I plan on making more simple scripts to make the DM’s life easier. Enjoy!
#!/usr/bin/python
#=================================================================================================
# Purpose: To allow the GameMaster (GM) / DungeonMaster (DM) to create a random breakfast for
# travelers / adventurers at a tavern without having to roll for each table thus wasting time.
#
# Created on: 20190802
# By: Jamie R. Shrope
# Inspiration: https://www.reddit.com/r/BehindTheTables/comments/4dplpx/breakfast_at_a_travelers_inn/
# License: Attribution-NonCommercial-ShareAlike 4.0 International
# ================================================================================================
import random
# begin clear screeen function
# Thanks to martinubuntu at https://stackoverflow.com/users/4458128/martinubuntu for the following code
# as found at https://stackoverflow.com/questions/517970/how-to-clear-the-interpreter-console
import os
import subprocess
def clear_screen():
if os.name in (‘nt’,’dos’):
subprocess.call(“cls”)
elif os.name in (‘linux’,’osx’,’posix’):
subprocess.call(“clear”)
else:
print(“\n”) * 120
# end clear screen function
clear_screen()
print(“Tavern Breakfast Generator”) # https://stackoverflow.com/questions/517970/how-to-clear-the-interpreter-consoleheader displayed to user
print(“===============================================================================================”)
print (“\r\n”)
breakfast_1_list = [‘scrambled eggs’, ‘fried eggs’, ‘boiled eggs’, ‘poached eggs’, ‘smoked ham’, ‘honey ham’, ‘hard cheese’, ‘soft cheese’, ‘hot porridge’, ‘cold porridge’, ‘thin porridge’, ‘warm gruel’, ‘scrapple’, ‘roasted squirrel’, ‘pickled fish’, ‘fried fish’, ‘poached fish’]
breakfast_1_item = random.choice(breakfast_1_list)
breakfast_2_list = [‘soggy bacon’, ‘crispy bacon’, ‘thick-cut bacon’, ‘mild sausage’, ‘spicy sausage’, ‘sweet sausage’, ‘hot sausage’, ‘sour yogurt’, ‘sweetened yogurt’]
breakfast_2_item = random.choice(breakfast_2_list)
breakfast_3_list = [‘fried potatoes’, ‘boiled potatoes’, ‘tomatoes’, ‘pickled mushrooms’, ‘fried mushrooms’, ‘sweet peppers’, ‘spinach’, ‘sweet onions’, ‘red onions’, ‘fried yucca’, ‘smoked plantains’]
breakfast_3_item = random.choice(breakfast_3_list)
breakfast_sides_1_list =[‘corn bread’, ‘corn mash’, ‘fresh bread’, ‘crusty bread’, ‘dry toast’, ‘buttered toast’, ‘black bread’, ‘brown bread’, ‘pungent cheese’]
breakfast_sides_1_item = random.choice(breakfast_sides_1_list)
breakfast_sides_2_list =[‘apples’, ‘cherries’, ‘elderberries’, ‘raspberries’, ‘strawberries’]
breakfast_sides_2_item = random.choice(breakfast_sides_2_list)
breakfast_drinks_list =[‘clear water’, ‘brown water’, ‘ale’, ‘mead’, ‘tea’, ‘spiced cider’, ‘bubbly brown water’, ‘bubbly water’, ‘sweet red drink’]
breakfast_drink_item = random.choice(breakfast_drinks_list)
print (“This morning, at a traveler’s inn, we break our fast with ” + breakfast_1_item + “, ” + breakfast_2_item + ” and ” + breakfast_3_item + “. “)
print (“On the side there is some ” + breakfast_sides_1_item + ” and ” + breakfast_sides_2_item + “. “)
print (“To wash it down there is ” + breakfast_drink_item + “.”)
print (“\r\n”)
Yogurt: Semi-solid dairy product made from partially evaporated and fermented milk. Yogurt is one of only three foods that taste exactly the same as they sound. The other two are goulash and squid.
tongue: A variety of meat, rarely served because it clearly crosses the line between a cut of beef and a piece of dead cow.
:TLA:[Three-Letter Acronym] /T-L-A/ n. 1. Self-describing abbreviation for a species with which computing terminology is infested. 2. Any confusing acronym. Examples include MCA, FTP, SNA, CPU, MMU, SCCS, DMU, FPU, NNTP, TLA. People who like this looser usage argue that not all TLAs have three letters, just as not all …
:IBM discount: n. A price increase. Outside IBM, this derives from the common perception that IBM products are generally overpriced; inside, it is said to spring from a belief that large numbers of IBM employees living in an area cause prices to rise.
:IBM: /I-B-M/ Inferior But Marketable; It’s Better Manually; Insidious Black Magic; It’s Been Malfunctioning; Incontinent Bowel Movement; and a near-{infinite} number of even less complimentary expansions, including `International Business Machines’. See {TLA}. These abbreviations illustrate the considerable antipathy most hackers have long felt toward the `industry leader’ (see {fear and …
The Filling Station The old man sat in his gas station on a cold Christmas Eve. Hehadn’t been anywhere in years since his wife had passed away. He had nodecorations, no tree, no lights. It was just another day to him. Hedidn’t hate Christmas. just couldn’t find a reason to …
My Gramps died at ‘Pearl on a day in December,“Then he sighed. “That‘s a Christmas ‘Gram always remembers.” My dad stood his watch in the jungles of ‘NamAnd now it is my turn and so, here I am. I’ve not seen my own son in more than a while,But my …
:elder days: n. The heroic age of hackerdom (roughly, pre-1980); the era of the {PDP-10}, {TECO}, {{ITS}}, and the ARPANET. This term has been rather consciously adopted from J. R. R. Tolkien’s fantasy epic `The Lord of the Rings’.
Is There a Santa Claus? 1) No known Species of reindeer can fly. BUT there are 300,000 species ofliving organisms yet to be classified and while most of these are insectsand germs this does not COMPLETELY rule out flying reindeer which onlySarita has ever seen. 2) There are 2 billion …
In September 1960, I woke up one morning with six hungry babies and just 75 cents in mypocket. Their father was gone. The boys ranged from three months to seven years; theirsister was two. Their Dad had never been much more than a presence they feared. Wheneverthey heard his tires …
Copyright © 2019 Shrope.com