summaryrefslogtreecommitdiff
path: root/npc/commands/debug-look.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/debug-look.txt')
-rw-r--r--npc/commands/debug-look.txt33
1 files changed, 15 insertions, 18 deletions
diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt
index 79bf8699..23acc4da 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_HIDDEN);
- //Sex = @menuret; // FIXME: make this work like in tmwAthena
- //return;
-
-
- // ^ Future code, Doesn't work yet
- closeclientdialog;
- changecharsex;
+ Gender = @menuret;
+ return;
}
function setStyle {
clear;
@@ -41,7 +38,7 @@ function script BarberDebug {
function setRace {
clear;
setnpcdialogtitle l("Appearance Debug - Race");
- mes l("Race") + ": " + Class;
+ mes l("Race") + ": " + Class + " (" + get_race(GETRACE_FULL) + ")";
next;
mes l("Please enter the desired race") + " (0-32767)";
input .@r, 0, 0x7FFF;
@@ -57,10 +54,10 @@ 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;
+ mes l("Race") + ": " + Class + " (" + get_race() + ")";;
mes "---";
next;