# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
+import mudpy
+
def activate_avatar_action(user):
"""Activate the selected avatar in the activate_avatar state."""
def checking_new_account_name_action_g(user):
"""Destroy the new account, the user asked to go back to name entry."""
return user.account.destroy()
+
+
+def choose_gender_action(user):
+ """Set the avatar's gender to the selected value."""
+ return user.avatar.set("gender", user.menu_choices[user.choice])
+
+
+def choose_name_action(user):
+ """Set the avatar's name to the selected value."""
+ return user.avatar.set("name", user.menu_choices[user.choice])
+
+
+def choose_name_create_1(user):
+ """Provide a randomly-generated name as choice 1."""
+ return mudpy.misc.random_name()
+
+
+def choose_name_create_2(user):
+ """Provide a randomly-generated name as choice 2."""
+ return mudpy.misc.random_name()
+
+
+def choose_name_create_3(user):
+ """Provide a randomly-generated name as choice 3."""
+ return mudpy.misc.random_name()
+
+
+def choose_name_create_4(user):
+ """Provide a randomly-generated name as choice 4."""
+ return mudpy.misc.random_name()
+
+
+def choose_name_create_5(user):
+ """Provide a randomly-generated name as choice 5."""
+ return mudpy.misc.random_name()
+
+
+def choose_name_create_6(user):
+ """Provide a randomly-generated name as choice 6."""
+ return mudpy.misc.random_name()
+
+
+def choose_name_create_7(user):
+ """Provide a randomly-generated name as choice 7."""
+ return mudpy.misc.random_name()
+
+
+def delete_account_action_y(user):
+ """Permanently delete the account and all avatars, as requested."""
+ return user.destroy()