From 7f51347a0d845e87e1bd364ab9fded7ee3e54cea Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 25 Apr 2020 17:49:59 -0400 Subject: update debug-look for non-binary genders --- npc/commands/debug-look.txt | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'npc') diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt index 4ab9ed44..47b51330 100644 --- a/npc/commands/debug-look.txt +++ b/npc/commands/debug-look.txt @@ -1,22 +1,19 @@ function script BarberDebug { function setGender { - //clear; - //setnpcdialogtitle l("Appearance Debug - Sex Change"); - //mes l("Please choose the desired gender:"); - //next; - //menuint - // l("Male"), G_MALE, - // l("Female"), G_FEMALE, - // l("Non-binary"), G_OTHER; + clear(); + setnpcdialogtitle(l("Appearance Debug - Gender Change")); + mes(l("Warning: changing your gender will send you back to the character selection screen.")); + mes(""); + mes(l("Please choose the desired gender:")); + next(); + menuint( + l("Male"), GENDER_MALE, + l("Female"), GENDER_FEMALE, + l("Non-binary"), GENDER_NONBINARY); - //Sex = @menuret; // FIXME: make this work like in tmwAthena - //return; - - - // ^ Future code, Doesn't work yet - closeclientdialog; - changecharsex; + Gender = @menuret; + return; } function setStyle { clear; @@ -57,7 +54,7 @@ function script BarberDebug { mes ""; mes "---"; - mes l("Gender") + ": " + Sex; + mes l("Gender") + ": " + genderToString(Gender); mes l("Hair style") + ": " + getlook(LOOK_HAIR); mes l("Hair color") + ": " + getlook(LOOK_HAIR_COLOR); mes l("Race") + ": " + Class + " (" + get_race() + ")";; -- cgit v1.2.3-70-g09d2