summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-01-17 19:10:01 -0600
committermekolat <mekolat@users.noreply.github.com>2016-02-08 21:04:30 -0500
commitf28b9ef883c8da9a890096d8e05865b90795c46d (patch)
treec18834d304aad13f08be8720cd1b494f64685054 /world/map/npc/functions
parent5ee9d4a5523a792de751ec547a6f8d11740770e7 (diff)
downloadserverdata-f28b9ef883c8da9a890096d8e05865b90795c46d.tar.gz
serverdata-f28b9ef883c8da9a890096d8e05865b90795c46d.tar.bz2
serverdata-f28b9ef883c8da9a890096d8e05865b90795c46d.tar.xz
serverdata-f28b9ef883c8da9a890096d8e05865b90795c46d.zip
Fix gender as a starting condition
make sex changes free make barbers do sex changes
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/barber.txt30
-rw-r--r--world/map/npc/functions/change_sex.txt24
-rw-r--r--world/map/npc/functions/game_rules.txt1
3 files changed, 54 insertions, 1 deletions
diff --git a/world/map/npc/functions/barber.txt b/world/map/npc/functions/barber.txt
index 2413e0fe..effa3436 100644
--- a/world/map/npc/functions/barber.txt
+++ b/world/map/npc/functions/barber.txt
@@ -34,8 +34,38 @@ L_Main:
menu
"Change my style", L_Style,
"Change my color", L_Color,
+ "Change my gender", L_Gender,
"Nah, I'm fine", L_Done;
+L_Gender:
+ menu
+ "Female.", L_Female,
+ "Male.", L_Male,
+ "Non-binary.", L_NonBinary,
+ "Nah, I'm fine", L_Done;
+
+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:
+ if (Sex == @sex)
+ goto L_Already_Change;
+ set Sex, @sex;
+ return;
+
+L_Already_Change:
+ mes "\"Umm, you are that gender already.\"";
+ return;
+
L_Style:
if(!@hairOpts) set @HairStyles$[getarraysize(@HairStyles$)], "Surprise me";
if(!@hairOpts) set @HairStyles$[getarraysize(@HairStyles$)], "Nah, I'm fine";
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;
+}
diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt
index cb72dfec..e2b9df81 100644
--- a/world/map/npc/functions/game_rules.txt
+++ b/world/map/npc/functions/game_rules.txt
@@ -2,7 +2,6 @@
function|script|GameRules
{
-
mes "[Game Rules]";
mes "Please select a language:";
menu