diff options
-rw-r--r-- | npc/081-2/logic.txt | 17 | ||||
-rw-r--r-- | npc/annuals/xmas/2021.txt | 9 |
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: |