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.
5 _desc: This is the standard library of menu definitions.
10 action: user.activate_avatar_by_index(int(choice)-1)
12 branch_a: main_utility
13 choice_a: abort selection
14 create: dict([(str(x+1),y) for x,y in enumerate(user.list_avatar_names())])
16 description: This is the list of avatars available for you to awaken.
17 prompt: Whom would you like to awaken?
21 menu:checking_new_account_name:
22 action_d: user.account.destroy()
23 action_g: user.account.destroy()
24 branch_d: disconnecting
25 branch_g: entering_account_name
26 branch_n: entering_new_password
27 choice_d: disconnect now
31 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?
32 prompt: "Enter your choice:"
34 menu:checking_password:
36 error_incorrect: Incorrect password, please try again...
40 action: user.avatar.set("gender", user.menu_choices[choice])
44 description: First, your new avatar needs a birth gender. Avatars are one of male or female at birth.
45 prompt: "Pick a birth gender for your new avatar:"
48 action: user.avatar.set("name", user.menu_choices[choice])
51 choice_g: generate more names
52 create_1: random_name()
53 create_2: random_name()
54 create_3: random_name()
55 create_4: random_name()
56 create_5: random_name()
57 create_6: random_name()
58 create_7: random_name()
60 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.
61 prompt: "Choose a name for $(tpop):"
64 action_y: user.destroy()
65 branch_n: main_utility
66 branch_y: disconnecting
67 choice_n: no, don't delete my account
68 choice_y: yes, permanently delete my account
70 description: By deleting your account, all your avatars will also be permanently deleted.
71 prompt: Are you certain you wish to permanently delete your account?
74 action: user.delete_avatar(user.account.get("avatars")[int(choice)-1])
77 branch_a: main_utility
78 choice_a: abort selection
79 create: dict([(str(x+1),y) for x,y in enumerate(user.list_avatar_names())])
81 description: This is the list of avatars available for you to delete.
82 prompt: Whom would you like to delete?
85 prompt: $(red)Disconnecting...$(nrm)$(eol)
87 menu:disconnecting_duplicates:
88 prompt: $(red)Closing your previous connection...$(nrm)$(eol)
90 menu:entering_account_name:
91 description: $(inc:login.txt)
92 error_bad_name: Your account name needs to contain only digits (0-9) and letters (a-z).
93 prompt: "Identify yourself:"
95 menu:entering_new_password:
97 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.
98 prompt: 'Enter a new password for "$(account)":'
99 error_differs: The two passwords did not match. Try again...
104 action_c: user.new_avatar()
105 branch_a: activate_avatar
106 branch_c: choose_gender
107 branch_d: delete_avatar
108 branch_l: disconnecting
109 branch_p: delete_account
110 choice_a: awaken an existing avatar
111 choice_c: create a new avatar
112 choice_d: delete an unwanted avatar
113 choice_l: leave for now
114 choice_p: permanently remove your account
115 demand_a: user.account.get("avatars")
116 demand_c: len(user.account.get("avatars")) < universe.contents["mudpy.limit"].get("avatars")
117 demand_d: user.account.get("avatars")
118 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.
119 prompt: What would you like to do?
121 menu:verifying_new_password:
123 prompt: "Enter the same new password again:"