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