Imported from archive.
[mudpy.git] / menu
diff --git a/menu b/menu
index 3c67466..c3388b3 100644 (file)
--- a/menu
+++ b/menu
@@ -1,35 +1,40 @@
-[menu:choose_gender]
-choice_f = female
-prompt = Pick a gender for your new avatar:
-description = First, your new avatar needs a gender. In the world of Example, all avatars are either male or female.
-choice_m = male
-branch = choose_name
-action = user.avatar.set("gender", user.menu_choices[choice])
-
-[menu:entering_new_password]
-error_differs = The two passwords did not match. Try again...
-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.
-prompt = Enter a new password for "$(account)":
-echo = off
+[control]
+read_only = yes
 
-[menu:verifying_new_password]
-prompt = Enter the same new password again:
-echo = off
+[menu:active]
+prompt = >
 
 [menu:checking_new_account_name]
+action_d = user.account.delete()
+action_g = user.account.delete()
+branch_d = disconnecting
+branch_g = entering_account_name
+branch_n = entering_new_password
 choice_d = disconnect now
 choice_g = go back
-prompt = Enter your choice:
-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?
-default = d
 choice_n = new account
+default = d
+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?
+prompt = Enter your choice:
 
-[menu:disconnecting_duplicates]
-prompt = $(red)Closing your previous connection...$(nrm)$(eol)
+[menu:checking_password]
+echo = off
+error_incorrect = Incorrect password, please try again...
+prompt = Password:
+
+[menu:choose_gender]
+action = user.avatar.set("gender", user.menu_choices[choice])
+branch = choose_name
+choice_f = female
+choice_m = male
+description = First, your new avatar needs a gender. In the world of Example, all avatars are either male or female.
+prompt = Pick a gender for your new avatar:
 
 [menu:choose_name]
-prompt = Choose a name for $(tpop):
-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 in the world of Example. 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.
+action = user.avatar.set("name", user.menu_choices[choice])
+branch = main_utility
+branch_m = choose_name
+choice_m = generate more names
 create_1 = random_name()
 create_3 = random_name()
 create_2 = random_name()
@@ -37,38 +42,46 @@ create_5 = random_name()
 create_4 = random_name()
 create_7 = random_name()
 create_6 = random_name()
-branch = active
-action = user.avatar.set("name", user.menu_choices[choice])
+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 in the world of Example. 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.
+prompt = Choose a name for $(tpop):
+
+[menu:disconnecting]
+description = $(red)Disconnecting...$(nrm)
+
+[menu:disconnecting_duplicates]
+prompt = $(red)Closing your previous connection...$(nrm)$(eol)
 
 [menu:entering_account_name]
-prompt = Identify yourself:
 description = Welcome to the mudpy example...
 error_bad_name = Your account name needs to contain only digits (0-9) and letters (a-z).
+prompt = Identify yourself:
 
-[menu:disconnecting]
-description = $(red)Disconnecting...$(nrm)
-
-[menu:active]
-prompt = >
+[menu:entering_new_password]
+echo = off
+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.
+prompt = Enter a new password for "$(account)":
+error_differs = The two passwords did not match. Try again...
 
 [menu:main_utility]
-choice_d = delete an unwanted avatar
-branch_d = delete_avatar
 action_c = user.new_avatar()
-description = From here you can activate, create and delete avatars. An avatar is your persona in the world of Example.
+branch_a = active
 branch_c = choose_gender
-choice_c = create a new avatar
-choice_l = leave example for now
+branch_d = delete_avatar
 branch_l = disconnecting
-prompt = What would you like to do?
-error_no_avatars = You don't have any avatars yet. An avatar is your persona in the world of Example. It is recommended that you create one now.
-choice_p = permanently remove your account
 branch_p = delete_account
-branch_a = active
 choice_a = activate an existing avatar
+choice_c = create a new avatar
+choice_d = delete an unwanted avatar
+choice_l = leave example for now
+choice_p = permanently remove your account
+demand_a = user.account.get("avatars")
+demand_c = len(user.account.getlist("avatars")) < universe.categories["internal"]["limits"].getint("max_avatars")
+demand_d = user.account.get("avatars")
+description = From here you can activate, create and delete avatars. An avatar is your persona in the world of Example.
+error_no_avatars = You don't have any avatars yet. An avatar is your persona in the world of Example. It is recommended that you create one now.
+prompt = What would you like to do?
 
-[menu:checking_password]
-prompt = Password:
-error_incorrect = Incorrect password, please try again...
+[menu:verifying_new_password]
 echo = off
+prompt = Enter the same new password again: