strings in variables can now be received by get_string_token
and inputs can be directly assigned to a variable
This commit is contained in:
@@ -44,6 +44,12 @@ def choice(choices):
|
||||
print("Invalid choice, defaulting to 0")
|
||||
requests.post(api_url, json=choice);
|
||||
|
||||
def get_input():
|
||||
api_url = "http://localhost:20264/input"
|
||||
input_string = input()
|
||||
requests.post(api_url, json=input_string);
|
||||
|
||||
|
||||
# Character outputs text to the user
|
||||
def output(character, text):
|
||||
print(character["name"], "says")
|
||||
|
||||
Reference in New Issue
Block a user