summaryrefslogtreecommitdiff
path: root/npc/functions/barber.txt
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-10-11 19:02:11 -0400
committergumi <mekolat@users.noreply.github.com>2017-10-11 19:02:20 -0400
commit6662b6f305976881c3e675241c41be7731b65aa5 (patch)
treea8ecaa074cf67cb929f4de6ed62ef7c4b49c46d1 /npc/functions/barber.txt
parent03049799efdc103fdd74e77161ed6a907acb7dde (diff)
downloadserverdata-s20171023.tar.gz
serverdata-s20171023.tar.bz2
serverdata-s20171023.tar.xz
serverdata-s20171023.zip
what's up with this crazy syntax?s20171023
I blame Reid
Diffstat (limited to 'npc/functions/barber.txt')
-rw-r--r--npc/functions/barber.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/npc/functions/barber.txt b/npc/functions/barber.txt
index b1e3dc38..370285b7 100644
--- a/npc/functions/barber.txt
+++ b/npc/functions/barber.txt
@@ -8,8 +8,8 @@
function script BarberSayStyle {
- .@get_color = getlook (LOOK_HAIR_COLOR);
- .@get_look = getlook (LOOK_HAIR);
+ .@get_color = getlook(LOOK_HAIR_COLOR);
+ .@get_look = getlook(LOOK_HAIR);
.@style_name$ = $@hairstyle$[.@get_look];
.@color_name$ = $@haircolor$[.@get_color];
@@ -32,7 +32,7 @@ function script BarberChangeStyle {
do
{
.@hairsizearray = getarraysize($@hairstyle$);
- .@get_look = getlook (LOOK_HAIR);
+ .@get_look = getlook(LOOK_HAIR);
// Here .@i starts from 1 because hairstyle 0 doesn't exist.
for (.@i = 1; .@i < .@hairsizearray; .@i++)
@@ -43,9 +43,9 @@ function script BarberChangeStyle {
}
.@menustr$ = .@menustr$ + l("I'm fine for now, thank you.");
-
+
.@idx = select(l("As you want!"),.@menustr$);
-
+
if (.@idx == .@i + 1) return; // last choice to quit dialog
switch (@menu)
@@ -55,15 +55,15 @@ function script BarberChangeStyle {
{
// here "- 1" because i don't use the 0 of array
.@rand_hair = rand(1,(.@hairsizearray - 1));
- } while (.@rand_hair == getlook (LOOK_HAIR));
+ } while (.@rand_hair == getlook(LOOK_HAIR));
setlook LOOK_HAIR, .@rand_hair;
- setlook LOOK_HAIR_COLOR, getlook (LOOK_HAIR_COLOR);
+ setlook LOOK_HAIR_COLOR, getlook(LOOK_HAIR_COLOR);
BarberSayStyle 1;
break;
default:
// and here "- 1" because the first choice is taken by the random
setlook LOOK_HAIR, (@menu - 1);
- setlook LOOK_HAIR_COLOR, getlook (LOOK_HAIR_COLOR);
+ setlook LOOK_HAIR_COLOR, getlook(LOOK_HAIR_COLOR);
break;
}
.@menustr$ = "";
@@ -73,7 +73,7 @@ function script BarberChangeStyle {
function script BarberChangeColor {
do
{
- .@get_look = getlook (LOOK_HAIR_COLOR);
+ .@get_look = getlook(LOOK_HAIR_COLOR);
.@hairsizearray = getarraysize($@haircolor$);
for (.@i = 0; .@i < .@hairsizearray; .@i++)
@@ -84,9 +84,9 @@ function script BarberChangeColor {
}
.@menustr$ = l("Surprise me!") + ":" + .@menustr$ + l("I'm fine for now, thank you.");
-
+
.@idx = select(.@menustr$);
-
+
if (.@idx == .@i + 2) return;
switch (@menu)
@@ -95,7 +95,7 @@ function script BarberChangeColor {
do
{
.@rand_color = rand(0, .@hairsizearray);
- } while (.@rand_color == getlook (LOOK_HAIR_COLOR));
+ } while (.@rand_color == getlook(LOOK_HAIR_COLOR));
setlook LOOK_HAIR_COLOR, .@rand_color;
BarberSayStyle 2;
break;