summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/change_sex.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/functions/change_sex.txt')
-rw-r--r--world/map/npc/functions/change_sex.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/world/map/npc/functions/change_sex.txt b/world/map/npc/functions/change_sex.txt
new file mode 100644
index 00000000..f81334f6
--- /dev/null
+++ b/world/map/npc/functions/change_sex.txt
@@ -0,0 +1,24 @@
+function|script|ChangeSex
+{
+ mes "Please select a character gender:";
+ menu
+ "Female.", L_Female,
+ "Male.", L_Male,
+ "Non-binary.", L_NonBinary;
+
+L_Female:
+ set @sex, 0;
+ goto L_Change;
+
+L_Male:
+ set @sex, 1;
+ goto L_Change;
+
+L_NonBinary:
+ set @sex, 3;
+ goto L_Change;
+
+L_Change:
+ set Sex, @sex;
+ return;
+}