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