# Copyright (c) 2004-2011 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. ! = "These are the built-in menus for mudpy." !lock = True activate_avatar.action = user.activate_avatar_by_index(int(choice)-1) activate_avatar.action:a = pass activate_avatar.branch_to:a = "main_utility" activate_avatar.choice:a = "abort selection" activate_avatar.generate_choices = dict([(str(x+1),y) for x,y in enumerate(user.list_avatar_names())]) activate_avatar.default = "1" activate_avatar.description = "This is the list of avatars available for you to awaken." activate_avatar.prompt = "Whom would you like to awaken?" checking_new_account_name.action:d = user.account.destroy() checking_new_account_name.action:g = user.account.destroy() checking_new_account_name.branch_to:d = "disconnecting" checking_new_account_name.branch_to:g = "entering_account_name" checking_new_account_name.branch_to:n = "entering_new_password" checking_new_account_name.choice:d = "disconnect now" checking_new_account_name.choice:g = "go back" checking_new_account_name.choice:n = "new account" checking_new_account_name.default = "d" 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?" checking_new_account_name.prompt = "Enter your choice:" checking_password.hide_input = True checking_password.error:incorrect = "Incorrect password, please try again..." checking_password.prompt = "Password:" choose_gender.action = user.avatar.set("gender", user.menu_choices[choice]) choose_gender.branch_to = "choose_name" choose_gender.choice:f = "female" choose_gender.choice:m = "male" choose_gender.description = "First, your new avatar needs a gender. In the world of Katarsis, all avatars are either male or female." choose_gender.prompt = "Pick a gender for your new avatar:" choose_name.action = user.avatar.set("name", user.menu_choices[choice]) choose_name.branch_to = "main_utility" choose_name.branch_to:g = "choose_name" choose_name.choice:g = "generate more names" choose_name.generate_choices:1 = random_name() choose_name.generate_choices:2 = random_name() choose_name.generate_choices:3 = random_name() choose_name.generate_choices:4 = random_name() choose_name.generate_choices:5 = random_name() choose_name.generate_choices:6 = random_name() choose_name.generate_choices:7 = random_name() choose_name.default = "g" 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 in the world of Katarsis. 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." choose_name.prompt = "Choose a name for $(tpop):" delete_account.action:y = user.destroy() delete_account.branch_to:n = "main_utility" delete_account.branch_to:y = "disconnecting" delete_account.choice:n = "no, don't delete my account" delete_account.choice:y = "yes, permanently delete my account" delete_account.default = "n" delete_account.description = "By deleting your account, all your avatars will also be permanently deleted." delete_account.prompt = "Are you certain you wish to permanently delete your account?" delete_avatar.action = user.delete_avatar(user.account.getlist("avatars")[int(choice)-1]) delete_avatar.action:a = pass delete_avatar.branch_to = "main_utility" delete_avatar.branch_to:a = "main_utility" delete_avatar.choice:a = "abort selection" delete_avatar.generate_choices = dict([(str(x+1),y) for x,y in enumerate(user.list_avatar_names())]) delete_avatar.default = "a" delete_avatar.description = "This is the list of avatars available for you to delete." delete_avatar.prompt = "Whom would you like to delete?" disconnecting.prompt = "$(red)Disconnecting...$(nrm)$(eol)" disconnecting_duplicates.prompt = "$(red)Closing your previous connection...$(nrm)$(eol)" entering_account_name.description = "$(inc:login.txt)" entering_account_name.error:bad_name = "Your account name needs to contain only digits (0-9) and letters (a-z)." entering_account_name.prompt = "Identify yourself:" entering_new_password.hide_input = True 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." entering_new_password.prompt = "Enter a new password for \"$(account)\":" entering_new_password.error:differs = "The two passwords did not match. Try again..." main_utility.action:c = user.new_avatar() main_utility.branch_to:a = "activate_avatar" main_utility.branch_to:c = "choose_gender" main_utility.branch_to:d = "delete_avatar" main_utility.branch_to:l = "disconnecting" main_utility.branch_to:p = "delete_account" main_utility.choice:a = "awaken an existing avatar" main_utility.choice:c = "create a new avatar" main_utility.choice:d = "delete an unwanted avatar" main_utility.choice:l = "leave katarsis for now" main_utility.choice:p = "permanently remove your account" main_utility.demand:a = user.account.getlist("avatars") main_utility.demand:c = len(user.account.getlist("avatars")) < universe.categories["internal"]["limits"].getint("max_avatars") main_utility.demand:d = user.account.getlist("avatars") 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 of Katarsis. You can also leave or permanently delete your account." main_utility.prompt = "What would you like to do?" verifying_new_password.hide_input = True verifying_new_password.prompt = "Enter the same new password again:"