mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-04 16:47:22 +00:00
Fake doors and askConnector
This commit is contained in:
parent
d87ad915a7
commit
6cbe11116d
3 changed files with 36 additions and 9 deletions
|
|
@ -25,7 +25,7 @@ gameMain: GameMainDef
|
||||||
|
|
||||||
showIntro () {
|
showIntro () {
|
||||||
|
|
||||||
experimentNumber = rand(100);
|
experimentNumber = 10 + rand(100);
|
||||||
dayNumber = rand(1000);
|
dayNumber = rand(1000);
|
||||||
|
|
||||||
"<.p>
|
"<.p>
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,7 @@ orangeRoom: DarkRoom
|
||||||
|
|
||||||
/* Doors */
|
/* Doors */
|
||||||
|
|
||||||
+ orangeDoor:
|
+ orangeDoor: Door, AutoClosingDoor
|
||||||
Door
|
|
||||||
'white sliding door'
|
'white sliding door'
|
||||||
'sliding door'
|
'sliding door'
|
||||||
"White sliding door in south wall.<br>"
|
"White sliding door in south wall.<br>"
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,42 @@ yellowRoom: Room
|
||||||
" This is another room which every surface
|
" This is another room which every surface
|
||||||
covered with matte white panels.
|
covered with matte white panels.
|
||||||
<.p>
|
<.p>
|
||||||
There is a door in the north direction."
|
There are three doors in the north wall."
|
||||||
north = orangeDoorOutside
|
north: AskConnector {
|
||||||
|
promptMessage =
|
||||||
|
"There are three doors you could go through to the north.<br>"
|
||||||
|
travelAction = GoThroughAction
|
||||||
|
travelObjs = [brownDoor, khakiDoor, orangeDoorOutside]
|
||||||
|
travelObjsPhrase = 'of them'
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
/* Doors */
|
/* Doors */
|
||||||
|
|
||||||
+ orangeDoorOutside: Door -> orangeDoor
|
+ orangeDoorOutside: Door, AutoClosingDoor
|
||||||
'sliding door'
|
-> orangeDoor
|
||||||
'door number <<gameMain.experimentNumber>>'
|
'orange door*doors'
|
||||||
"Door number <<gameMain.experimentNumber>>.<br>"
|
'door with <b>orange</b> triangle'
|
||||||
|
" Sliding door with the number
|
||||||
|
<q><<gameMain.experimentNumber>></q>
|
||||||
|
and an orange triangle.<br>"
|
||||||
|
;
|
||||||
|
|
||||||
|
+ khakiDoor: IndirectLockable, Door
|
||||||
|
'khaki door*doors'
|
||||||
|
'door with <b>khaki</b> triangle'
|
||||||
|
" Sliding door with the number
|
||||||
|
<q><<gameMain.experimentNumber - 1>></q>
|
||||||
|
and a khaki triangle.<br>"
|
||||||
|
cannotUnlockMsg = 'The door does not appear to be opened.'
|
||||||
|
;
|
||||||
|
|
||||||
|
+ brownDoor: IndirectLockable, Door
|
||||||
|
'brown door*doors'
|
||||||
|
'door with <b>brown</b> triangle'
|
||||||
|
" Sliding door with the number
|
||||||
|
<q><<gameMain.experimentNumber - 2>></q>
|
||||||
|
and a brown triangle.
|
||||||
|
<br>You hear a slight vibration behind the door.<br>"
|
||||||
|
cannotUnlockMsg = 'The door does not appear to be opened.'
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue