From 6cbe11116de43900036a2c7622208a875b020b14 Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 7 Nov 2019 01:41:47 +0500 Subject: [PATCH] Fake doors and askConnector --- experiment.t | 2 +- src/room/orangeRoom.t | 3 +-- src/room/yellowRoom.t | 40 ++++++++++++++++++++++++++++++++++------ 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/experiment.t b/experiment.t index 3b547cc..55f067f 100644 --- a/experiment.t +++ b/experiment.t @@ -25,7 +25,7 @@ gameMain: GameMainDef showIntro () { - experimentNumber = rand(100); + experimentNumber = 10 + rand(100); dayNumber = rand(1000); "<.p> diff --git a/src/room/orangeRoom.t b/src/room/orangeRoom.t index 1c1da74..0ddeea4 100644 --- a/src/room/orangeRoom.t +++ b/src/room/orangeRoom.t @@ -17,8 +17,7 @@ orangeRoom: DarkRoom /* Doors */ -+ orangeDoor: - Door ++ orangeDoor: Door, AutoClosingDoor 'white sliding door' 'sliding door' "White sliding door in south wall.
" diff --git a/src/room/yellowRoom.t b/src/room/yellowRoom.t index f5d726f..dddd23f 100644 --- a/src/room/yellowRoom.t +++ b/src/room/yellowRoom.t @@ -3,14 +3,42 @@ yellowRoom: Room " This is another room which every surface covered with matte white panels. <.p> - There is a door in the north direction." - north = orangeDoorOutside + There are three doors in the north wall." + north: AskConnector { + promptMessage = + "There are three doors you could go through to the north.
" + travelAction = GoThroughAction + travelObjs = [brownDoor, khakiDoor, orangeDoorOutside] + travelObjsPhrase = 'of them' + } ; /* Doors */ -+ orangeDoorOutside: Door -> orangeDoor - 'sliding door' - 'door number <>' - "Door number <>.
" ++ orangeDoorOutside: Door, AutoClosingDoor + -> orangeDoor + 'orange door*doors' + 'door with orange triangle' + " Sliding door with the number + <> + and an orange triangle.
" +; + ++ khakiDoor: IndirectLockable, Door + 'khaki door*doors' + 'door with khaki triangle' + " Sliding door with the number + <> + and a khaki triangle.
" + cannotUnlockMsg = 'The door does not appear to be opened.' +; + ++ brownDoor: IndirectLockable, Door + 'brown door*doors' + 'door with brown triangle' + " Sliding door with the number + <> + and a brown triangle. +
You hear a slight vibration behind the door.
" + cannotUnlockMsg = 'The door does not appear to be opened.' ;