enter a number to choose a suggested action

This commit is contained in:
AccidentallyOnPurpose
2019-12-23 22:56:41 +08:00
parent 6f86b330af
commit 1592b012c6
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"python.pythonPath": "/home/wassname/.pyenv/versions/jup3.7.3/bin/python"
}
+2
View File
@@ -229,6 +229,8 @@ def play():
action = ""
result = story_manager.act(action)
colPrint(result, colors["ai-text"])
elif action in [str(i) for i in range(len(suggested_actions))]:
action = suggested_actions[int(action)]
elif action[0] == '"':
action = "You say " + action