forked from cloveranon/Clover-Edition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.py
35 lines (31 loc) · 2.16 KB
/
interface.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from getconfig import settings, colors, setting_info
from utils import pad_text
def boolValue(bool):
return "on" if bool else "off"
def instructions():
print('\n' +
'AID2: Clover Edition Instructions: \n' +
' Enter actions starting with a verb ex. "go to the tavern" or "attack the orc."\n' +
' To speak enter say "(thing you want to say)" or just "(thing you want to say)"\n' +
' To insert your own text into the story, enter !(thing you want to insert)')
print('The following commands can be entered for any action:')
print(' "/revert" Reverts the last action allowing you to pick a different action.')
print(' "/quit" Quits the game and saves')
print(' "/menu" Starts a new game and saves your current one')
print(' "/retry" Retries the last action')
print(' "/restart" Restarts the current story')
print(' "/print" Prints a transcript of your adventure (without extra newline formatting)')
print(' "/alter" Edit the last prompt from the AI')
print(' "/altergen" Edit the last result from the AI and have it generate the rest')
print(' "/context" Edit the story\'s permanent context paragraph')
print(' "/remember [SENTENCE]" Commits something permanently to the AI\'s memory')
print(' "/forget" Opens a menu allowing you to remove permanent memories')
print(' "/save" Saves your game to a file in the game\'s save directory')
print(' "/load" Loads a game from a file in the game\'s save directory')
print(' "/summarize" Create a new story using by summarizing your previous one')
print(' "/help" Prints these instructions again')
print(' "/set [SETTING] [VALUE]" Sets the specified setting to the specified value.:')
for k, v in setting_info.items():
print(pad_text(' ' + k, 27) + v[0] + (" " if v[0] else "") +
"Default: " + str(v[1]) + " | "
"Current: " + settings.get(k))