about summary refs log tree commit diff stats
path: root/js/story-interpreter/world.dsl
blob: 3e75a7a4ec95d69512bd24374af5fdf76e43fce1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
room "Kitchen" {
    description "A small, cozy kitchen. There's a smell of cookies baking."
    
    item "Cookie Jar" {
        description "A ceramic jar filled with delicious cookies."
        action "take" {
            effect "You take a cookie from the jar."
        }
    }

    animal "Cat" {
        description "A small black cat is sitting on the counter."
        action "talk" {
            effect "The cat meows at you."
        }
    }

    connection "north" to "Living Room"
}

room "Living Room" {
    description "A large living room with a comfortable couch and a TV."
    
    item "Remote Control" {
        description "A remote control for the TV."
        action "use" {
            effect "You turn on the TV. The news is on."
        }
    }

    connection "south" to "Kitchen"
}