From 4baf33e56408985cd7c558ec7e2403aa60d60c61 Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 25 Apr 2020 18:05:16 -0400 Subject: add a gender change option to Edouard --- npc/001-2-41/edouard.txt | 13 ++++++++++--- npc/functions/barber.txt | 15 +++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/001-2-41/edouard.txt b/npc/001-2-41/edouard.txt index f93d2042..2a3fd4cc 100644 --- a/npc/001-2-41/edouard.txt +++ b/npc/001-2-41/edouard.txt @@ -131,6 +131,7 @@ OnChair: l("What is my current hairstyle and hair color?"), l("I'd like to get a different style."), l("Can you do something with my color?"), + l("How about changing my gender?"), l("What's your story again?"), l("I'm fine for now, thank you."); @@ -142,19 +143,25 @@ OnChair: case 2: BarberChangeStyle; speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("Enjoy your new style."); + l("Enjoy your new style."), l("Anything else?"); break; case 3: BarberChangeColor; speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("I hope you like this color."); + l("I hope you like this color."), l("Anything else?"); break; case 4: - tellStory; + BarberChangeGender(); + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("You look fantastic."), + l("Anything else?"); break; case 5: + tellStory; + break; + case 6: speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("Feel free to come visit me another time."); diff --git a/npc/functions/barber.txt b/npc/functions/barber.txt index 370285b7..cab5f101 100644 --- a/npc/functions/barber.txt +++ b/npc/functions/barber.txt @@ -108,3 +108,18 @@ function script BarberChangeColor { return; } + +function script BarberChangeGender { + mesn("Warning"); + mes(b(l("Changing your gender will send you back to the character selection screen."))); + next(); + + mes(l("Please select the desired gender:")); + menuint( + l("Female"), GENDER_FEMALE, + l("Male"), GENDER_MALE, + l("Non-binary"), GENDER_NONBINARY); + + Gender = @menuret; + return; +} -- cgit v1.2.3-70-g09d2