diff options
author | wushin <pasekei@gmail.com> | 2016-01-17 19:10:01 -0600 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-02-08 21:04:30 -0500 |
commit | f28b9ef883c8da9a890096d8e05865b90795c46d (patch) | |
tree | c18834d304aad13f08be8720cd1b494f64685054 /world/map/npc/functions/barber.txt | |
parent | 5ee9d4a5523a792de751ec547a6f8d11740770e7 (diff) | |
download | serverdata-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/barber.txt')
-rw-r--r-- | world/map/npc/functions/barber.txt | 30 |
1 files changed, 30 insertions, 0 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"; |