Start the yourcroft puzzle sequence

This commit is contained in:
Neil McPhail 2024-09-16 19:00:49 +01:00
parent e55ad58419
commit 3e5734bcf0

View File

@ -3,8 +3,10 @@
PROCESS examine;
PROCESS help;
PROCESS crunch;
PROCESS yourcroft_status;
FLAG crunchvol;
FLAG yourcroftstate;
DEFAULTS
{
@ -115,6 +117,12 @@ VOCABULARY
NOUN: "PASSW", "1234", "HUNTER", "12345", "BEANS";
NOUN: "BISCU", "PACKE";
NOUN: "MUG", "CUP";
NOUN: "USBDR", "DRIVE";
ADJECTIVE: "USB";
NOUN: "PORT";
NOUN 18: "YOURC", "LADYC", "COMPU", "ASSIS", "CYLIN";
NOUN: "FLAP";
NOUN: "DOOR";
VERB: "HELP";
VERB: "EAT", "CONSU", "BITE", "CRUNC", "CHOMP", "MUNCH";
VERB: "WAIT";
@ -158,6 +166,20 @@ PROCESS examine
DONE;
}
OBJECT usbdrive
{
"A USB Drive";
INITIALLYAT CARRIED;
WORDS DRIVE USB;
WEIGHT 1;
}
PROCESS examine
{
_ DRIVE: PRESENT usbdrive
MESSAGE "A 16GB 'SpamDisk' USB-A Drive with a handwritten label saying 'Wimpy's leet hacking boot drive'."
DONE;
}
MESSAGES
{
0: "Default message";
@ -280,6 +302,9 @@ PROCESS 1
GOTO trap
DESC;
* YOURC: AT trap
PROCESS yourcroft_status;
* _: NEWLINE ZERO 0 ABSENT 0 LISTOBJ;
* _: PRESENT 0 LISTOBJ;
}
@ -312,3 +337,26 @@ PROCESS crunch
MESSAGE "The whole room buckles under the crunching boom.";
_ _: CLEAR crunchvol;
}
PROCESS yourcroft_status
{
_ _: ZERO yourcroftstate
MESSAGE "A bodged-together cheap-looking plastic cylinder device is perched on the floor."
DONE;
_ _: EQ yourcroftstate 1
MESSAGE "Yourcroft surveys Wimpy with its tacky, green, blinking LED eye and barks 'I'm watching you, mister!'.";
_ _: EQ yourcroftstate 2
MESSAGE "Yourcroft's eye flashes indignantly and burns with shame at its open flap and exposed port";
_ _: EQ yourcroftstate 3
MESSAGE "Yourcroft's LED eye keeps flicking with rage between Wimpy's face and its new USB appendage";
_ _: EQ yourcroftstate 4
MESSAGE "The smouldering remains of Yourcroft sparks and fizzles";
}
PROCESS examine
{
_ CYLIN: ZERO yourcroftstate
MESSAGE "'What you looking at, buddy?', barks the device. 'I'm a Yourcroft(TM) mark 1 cylindrical assistant, and I've been charged with keeping this door closed.'^'Don't get any bright ideas for escape or I'll zap you!'^It's voice sounds like a strangely robotic-yet-feminine version of popey's dulcet tones. A cheap LED array is lit to form a green, blinking eye which follows your every movement. Below is a flap with a label saying 'USB', which is closed and obscuring any port.^'By the way, please fund our Kickstarter for version 2.0!"
PLUS yourcroftstate 1
DONE;
}