summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-03 19:19:41 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-03 19:19:41 -0300
commit711f197ebc7a84270df768964662165c022b6c97 (patch)
tree98acc3bb69ce888d562b6756a8d67198f907f5fe /npc
parent896c9f57d8ae813917038a31e2a293e19b94a49e (diff)
downloadserverdata-711f197ebc7a84270df768964662165c022b6c97.tar.gz
serverdata-711f197ebc7a84270df768964662165c022b6c97.tar.bz2
serverdata-711f197ebc7a84270df768964662165c022b6c97.tar.xz
serverdata-711f197ebc7a84270df768964662165c022b6c97.zip
Prepare some of the logical code for the enigma
Diffstat (limited to 'npc')
-rw-r--r--npc/081-2/logic.txt17
-rw-r--r--npc/annuals/xmas/2021.txt9
2 files changed, 26 insertions, 0 deletions
diff --git a/npc/081-2/logic.txt b/npc/081-2/logic.txt
index 9915aec5..b32e6458 100644
--- a/npc/081-2/logic.txt
+++ b/npc/081-2/logic.txt
@@ -199,3 +199,20 @@ OnInit:
end;
}
+/* *************************************************************************** */
+/* The Enigma */
+
+// FIXME (137,68 and 130,56 and 120,69) (no sprite) (no code)
+081-2,137,68,0 script Enigma#X21A1 NPC188,{
+ mes l("Three Enigmas, one always say the truth, one always says a lie, and the third may either say the truth or a lie.");
+ mes "";
+ if ('TRUTHSTAT[0])
+ mesc l("The truth"), 1;
+ else
+ mesc l("A lie"), 1;
+ end;
+OnInit:
+ .distance=2;
+ end;
+}
+
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index 67b65ac2..97f5422f 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -424,6 +424,15 @@ OnInstanceInit:
'COLORCODE[4] = rand2(0, 2);
'COLORCODE[5] = rand2(0, 2);
'OBSCURECOLOR = any(0, 1);
+ 'TRUES=0;
+ 'TRUTHSTAT[0]=any(false, true);
+ if ('TRUTHSTAT[0])
+ 'TRUES+=1;
+ 'TRUTHSTAT[1]=any(false, true);
+ if ('TRUTHSTAT[1])
+ 'TRUES+=1;
+ 'TRUTHSTAT[2]=any(false, ('TRUES >= 2 ? false : true));
+ 'TRUES=0;
end;
OnInit: