From 85ef181b34f6748e9d82398044d4ce224c8fbc4d Mon Sep 17 00:00:00 2001 From: He4eT Date: Sat, 9 Nov 2019 00:04:50 +0500 Subject: [PATCH] ShuffledEventList in "Examine" action --- experiment.t | 1 + src/item/advertisingDisplay.t | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/item/advertisingDisplay.t diff --git a/experiment.t b/experiment.t index 4508c73..67a0147 100644 --- a/experiment.t +++ b/experiment.t @@ -45,5 +45,6 @@ gameMain: GameMainDef #include "src/room/orangeBathroom.t" #include "src/room/yellowRoom.t" +#include "src/item/advertisingDisplay.t" #include "src/actor/pc.t" diff --git a/src/item/advertisingDisplay.t b/src/item/advertisingDisplay.t new file mode 100644 index 0000000..6817821 --- /dev/null +++ b/src/item/advertisingDisplay.t @@ -0,0 +1,24 @@ +advertisingDisplay: Decoration, Fixture + 'bright lcd screen/display/monitor' + 'bright lcd display' + " Huge and bright display mounted on the wall.<.p> + On the screen you see " + + location = yellowRoom + + dobjFor (Examine) { + action () { + inherited; + clips.doScript(); + "<.p>"; + } + } + + clips: ShuffledEventList {[ + 'a bunch of different hieroglyphics on white background.', + 'a glitched commercial of some drinks.', + 'shuffled cuts from some softcore video.', + 'some strange, unrelated words.', + 'neat columns of hieroglyphs.' + ]} +;