diff --git a/play.py b/play.py index 3ad231b..ef3f419 100644 --- a/play.py +++ b/play.py @@ -16,7 +16,7 @@ def select_game(): context, prompt = make_custom_story() else: - game = options["choice"] + game = options[choice] prompt = get_story_start(game) context = get_context(game) diff --git a/story/custom_story.py b/story/custom_story.py index 2c67d75..5ef25fc 100644 --- a/story/custom_story.py +++ b/story/custom_story.py @@ -26,7 +26,7 @@ def make_custom_story(): character = data["settings"][setting_key]["characters"][character_key] context = "You are " + name + ", a " + character_key + " " + setting_description + \ - "You have a " + character["item1"] + " and a " + character["item2"] + "." + "You have a " + character["item1"] + " and a " + character["item2"] + ". " prompt_num = np.random.randint(0,len(character["prompts"])) prompt = character["prompts"][prompt_num]