summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-29 10:58:21 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-29 10:58:21 -0300
commitd6a016cb89ba8be96d0242fc79209393a9e9408b (patch)
tree28260788764b1c8cd0ff1a5e703d046adabc47b2
parent5247676c587bde3880a190b46fc748bf449143f5 (diff)
downloadserverdata-d6a016cb89ba8be96d0242fc79209393a9e9408b.tar.gz
serverdata-d6a016cb89ba8be96d0242fc79209393a9e9408b.tar.bz2
serverdata-d6a016cb89ba8be96d0242fc79209393a9e9408b.tar.xz
serverdata-d6a016cb89ba8be96d0242fc79209393a9e9408b.zip
Add seven hints for the Candle Puzzle.
They are not good and will involve some trial and error. Hint n. 7 is a "trap" and the hints position is temporary. All hints are true.
-rw-r--r--npc/081-2/logic.txt89
-rw-r--r--npc/annuals/xmas/2021.txt1
2 files changed, 90 insertions, 0 deletions
diff --git a/npc/081-2/logic.txt b/npc/081-2/logic.txt
index 2bb05cce..9df94ba6 100644
--- a/npc/081-2/logic.txt
+++ b/npc/081-2/logic.txt
@@ -66,4 +66,93 @@ OnInit:
081-2,134,258,0 duplicate(#X21Candle_0) #X21Candle_4 NPC_NO_SPRITE
081-2,135,251,0 duplicate(#X21Candle_0) #X21Candle_5 NPC_NO_SPRITE
+081-2,83,257,0 script Hint#X21C0 NPC_NO_SPRITE,{
+ .@c = 0;
+ .@c += ('COLORCODE[0] ? 0 : 1);
+ .@c += ('COLORCODE[1] ? 0 : 1);
+ .@c += ('COLORCODE[2] ? 0 : 1);
+ .@c += ('COLORCODE[3] ? 0 : 1);
+ .@c += ('COLORCODE[4] ? 0 : 1);
+ .@c += ('COLORCODE[5] ? 0 : 1);
+ dispbottom l("%d candles should always be off.", .@c);
+ end;
+OnInit:
+ .distance=1;
+ end;
+}
+
+081-2,84,257,0 script Hint#X21C1 NPC_NO_SPRITE,{
+ .@c = 0;
+ .@c += ('COLORCODE[0] == 1 ? 1 : 0);
+ .@c += ('COLORCODE[1] == 1 ? 1 : 0);
+ .@c += ('COLORCODE[2] == 1 ? 1 : 0);
+ .@c += ('COLORCODE[3] == 1 ? 1 : 0);
+ .@c += ('COLORCODE[4] == 1 ? 1 : 0);
+ .@c += ('COLORCODE[5] == 1 ? 1 : 0);
+ dispbottom l("%d candles should use regular fire.", .@c);
+ end;
+OnInit:
+ .distance=1;
+ end;
+}
+
+081-2,85,257,0 script Hint#X21C2 NPC_NO_SPRITE,{
+ if ('COLORCODE[0] == 2)
+ dispbottom l("The leftmost candle is magical.");
+ else if ('COLORCODE[5] == 2)
+ dispbottom l("The rightmost candle is magical.");
+ else
+ dispbottom l("Neither extremes are magical.");
+OnInit:
+ .distance=1;
+ end;
+}
+
+081-2,86,257,0 script Hint#X21C3 NPC_NO_SPRITE,{
+ if ('COLORCODE[0] == 'COLORCODE[5])
+ dispbottom l("The leftmost and the rightmost candle are identical.");
+ else
+ dispbottom l("The extremes are different.");
+OnInit:
+ .distance=1;
+ end;
+}
+
+081-2,86,257,0 script Hint#X21C4 NPC_NO_SPRITE,{
+ .@n$ = ('COLORCODE[2] ? ('COLORCODE[2] == 1 ? "Regular" : "Magical") : "No");
+ dispbottom l("The northmost candle should use %s Fire.", .@n$);
+OnInit:
+ .distance=1;
+ end;
+}
+
+081-2,87,257,0 script Hint#X21C5 NPC_NO_SPRITE,{
+ .@n$="";
+ if (!'COLORCODE[3])
+ .@n$=('OBSCURECOLOR ? "Regular" : "Magical");
+ else if ('COLORCODE[3] == 1)
+ .@n$=('OBSCURECOLOR ? "No" : "Magical");
+ else
+ .@n$=('OBSCURECOLOR ? "Regular" : "No");
+
+ dispbottom l("The central candle should not use %s Fire.", .@n$);
+OnInit:
+ .distance=1;
+ end;
+}
+
+081-2,88,257,0 script Hint#X21C6 NPC_NO_SPRITE,{
+ .@c=('COLORCODE[1]+'COLORCODE[4]);
+ if (.@c <= 1)
+ .@n$="Bleakness";
+ else if (.@c >= 3)
+ .@n$="Brightness, perhaps Magical Fire";
+ else
+ .@n$="either Regular Fire, or they may diverge";
+
+ dispbottom l("The two southern candles lean towards %s.", .@n$);
+OnInit:
+ .distance=1;
+ end;
+}
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index aef54dbc..cba5dfe9 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -412,6 +412,7 @@ OnInstanceInit:
'COLORCODE[3] = rand2(0, 2);
'COLORCODE[4] = rand2(0, 2);
'COLORCODE[5] = rand2(0, 2);
+ 'OBSCURECOLOR = any(0, 1);
end;
OnInit: