Move selected menu item into the User object
[mudpy.git] / share / menu.yaml
1 ---
2 _copy: Copyright (c) 2004-2019 mudpy authors. Permission to use, copy,
3     modify, and distribute this software is granted under terms
4     provided in the LICENSE file distributed with this software.
5
6 _desc: This is the standard library of menu definitions.
7
8 _lock: true
9
10 menu.activate_avatar.action: user.activate_avatar_by_index(int(user.choice)-1)
11 menu.activate_avatar.action_a: pass
12 menu.activate_avatar.branch_a: main_utility
13 menu.activate_avatar.choice_a: abort selection
14 menu.activate_avatar.create: dict([(str(x+1),y) for x,y in
15     enumerate(user.list_avatar_names())])
16 menu.activate_avatar.default: "1"
17 menu.activate_avatar.description: This is the list of avatars available for you
18     to awaken.
19 menu.activate_avatar.prompt: Whom would you like to awaken?
20
21 menu.active.prompt: ">"
22
23 menu.checking_new_account_name.action_d: user.account.destroy()
24 menu.checking_new_account_name.action_g: user.account.destroy()
25 menu.checking_new_account_name.branch_d: disconnecting
26 menu.checking_new_account_name.branch_g: entering_account_name
27 menu.checking_new_account_name.branch_n: entering_new_password
28 menu.checking_new_account_name.choice_d: disconnect now
29 menu.checking_new_account_name.choice_g: go back
30 menu.checking_new_account_name.choice_n: new account
31 menu.checking_new_account_name.default: d
32 menu.checking_new_account_name.description: There is no existing account for
33     "$(account)" (note that an account name is not the same as a character
34     name). Would you like to create a new account by this name, go back and
35     enter a different name or disconnect now?
36 menu.checking_new_account_name.prompt: "Enter your choice:"
37
38 menu.checking_password.echo: false
39 menu.checking_password.error_incorrect: Incorrect password, please try again...
40 menu.checking_password.prompt: "Password:"
41
42 menu.choose_gender.action: user.avatar.set("gender",
43     user.menu_choices[user.choice])
44 menu.choose_gender.branch: choose_name
45 menu.choose_gender.choice_f: female
46 menu.choose_gender.choice_m: male
47 menu.choose_gender.description: First, your new avatar needs a birth gender.
48     Avatars are one of male or female at birth.
49 menu.choose_gender.prompt: "Pick a birth gender for your new avatar:"
50
51 menu.choose_name.action: user.avatar.set("name",
52     user.menu_choices[user.choice])
53 menu.choose_name.branch: main_utility
54 menu.choose_name.branch_g: choose_name
55 menu.choose_name.choice_g: generate more names
56 menu.choose_name.create_1: random_name()
57 menu.choose_name.create_2: random_name()
58 menu.choose_name.create_3: random_name()
59 menu.choose_name.create_4: random_name()
60 menu.choose_name.create_5: random_name()
61 menu.choose_name.create_6: random_name()
62 menu.choose_name.create_7: random_name()
63 menu.choose_name.default: g
64 menu.choose_name.description: Your new avatar needs a name. This will be the
65     name with which $(tpsp) grew up, and will initially be the name by which
66     $(tpsp) is known to others. There are ways for your new avatar to make a
67     name for $(tpop)self over time, so $(tpsp) won't be stuck going by such an
68     unremarkable name forever.
69 menu.choose_name.prompt: "Choose a name for $(tpop):"
70
71 menu.delete_account.action_y: user.destroy()
72 menu.delete_account.branch_n: main_utility
73 menu.delete_account.branch_y: disconnecting
74 menu.delete_account.choice_n: no, don't delete my account
75 menu.delete_account.choice_y: yes, permanently delete my account
76 menu.delete_account.default: n
77 menu.delete_account.description: By deleting your account, all your avatars
78     will also be permanently deleted.
79 menu.delete_account.prompt: Are you certain you wish to permanently delete your
80     account?
81
82 menu.delete_avatar.action: user.delete_avatar(
83     user.account.get("avatars")[int(user.choice)-1])
84 menu.delete_avatar.action_a: pass
85 menu.delete_avatar.branch: main_utility
86 menu.delete_avatar.branch_a: main_utility
87 menu.delete_avatar.choice_a: abort selection
88 menu.delete_avatar.create: dict([(str(x+1),y) for x,y in
89     enumerate(user.list_avatar_names())])
90 menu.delete_avatar.default: a
91 menu.delete_avatar.description: This is the list of avatars available for you
92     to delete.
93 menu.delete_avatar.prompt: Whom would you like to delete?
94
95 menu.disconnecting.prompt: $(red)Disconnecting...$(nrm)$(eol)
96
97 menu.disconnecting_duplicates.prompt: $(red)Closing your previous
98     connection...$(nrm)$(eol)
99
100 menu.entering_account_name.description: $(inc:login.txt)
101 menu.entering_account_name.error_bad_name: Your account name needs to contain
102     only digits (0-9) and letters (a-z).
103 menu.entering_account_name.prompt: "Identify yourself:"
104
105 menu.entering_new_password.echo: false
106 menu.entering_new_password.error_weak: That is a weak password... Try something
107     at least 7 characters long with a combination of mixed-case letters,
108     numbers and punctuation/spaces.
109 menu.entering_new_password.prompt: 'Enter a new password for "$(account)":'
110 menu.entering_new_password.error_differs: The two passwords did not match. Try
111     again...
112
113 menu.telopt_negotiation.prompt:
114
115 menu.main_utility.action_c: user.new_avatar()
116 menu.main_utility.branch_a: activate_avatar
117 menu.main_utility.branch_c: choose_gender
118 menu.main_utility.branch_d: delete_avatar
119 menu.main_utility.branch_l: disconnecting
120 menu.main_utility.branch_p: delete_account
121 menu.main_utility.choice_a: awaken an existing avatar
122 menu.main_utility.choice_c: create a new avatar
123 menu.main_utility.choice_d: delete an unwanted avatar
124 menu.main_utility.choice_l: leave for now
125 menu.main_utility.choice_p: permanently remove your account
126 menu.main_utility.demand_a: user.account.get("avatars")
127 menu.main_utility.demand_c: len(user.account.get("avatars")) <
128     universe.contents["mudpy.limit"].get("avatars")
129 menu.main_utility.demand_d: user.account.get("avatars")
130 menu.main_utility.description: $(red)$(inc:banner.txt)$(nrm)$(eol)$(eol)From
131     here you can awaken, create and delete avatars. An avatar is your persona
132     in the World. You can also leave or permanently delete your account.
133 menu.main_utility.prompt: What would you like to do?
134
135 menu.verifying_new_password.echo: false
136 menu.verifying_new_password.prompt: "Enter the same new password again:"