aboutsummaryrefslogtreecommitdiff
path: root/data/objects/tool_shed.yaml
blob: 119d3e2dc4251415965f9d6325cfc8166fa5f5ec (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
color: "5E"
description: A small shed for storing farming tools. Talk to it to store or retrieve tools.
hidden: false
inroom_description: A weathered tool shed stands against the wall.
name: tool shed
talk:
    nodes:
        retrieve_rake:
            action:
                give_item: rake
                set_player_flags:
                    tool_shed_rake: false
            messages:
                - You retrieve the rake from the tool shed.
            options:
                - goto: start
                  text: Continue
        retrieve_spade:
            action:
                give_item: spade
                set_player_flags:
                    tool_shed_spade: false
            messages:
                - You retrieve the spade from the tool shed.
            options:
                - goto: start
                  text: Continue
        retrieve_watering_can:
            action:
                give_item: watering_can
                set_player_flags:
                    tool_shed_watering_can: false
            messages:
                - You retrieve the watering can from the tool shed.
            options:
                - goto: start
                  text: Continue
        start:
            messages:
                - The tool shed is open. What would you like to do?
            options:
                - condition:
                    has_item: rake
                  goto: store_rake
                  text: Store rake
                - condition:
                    has_item: spade
                  goto: store_spade
                  text: Store spade
                - condition:
                    has_item: watering_can
                  goto: store_watering_can
                  text: Store watering can
                - condition:
                    player_flag: tool_shed_rake
                  goto: retrieve_rake
                  text: Retrieve rake
                - condition:
                    player_flag: tool_shed_spade
                  goto: retrieve_spade
                  text: Retrieve spade
                - condition:
                    player_flag: tool_shed_watering_can
                  goto: retrieve_watering_can
                  text: Retrieve watering can
                - text: Never mind
        store_rake:
            action:
                set_player_flags:
                    tool_shed_rake: true
                take_item: rake
            messages:
                - You store the rake in the tool shed.
            options:
                - goto: start
                  text: Continue
        store_spade:
            action:
                set_player_flags:
                    tool_shed_spade: true
                take_item: spade
            messages:
                - You store the spade in the tool shed.
            options:
                - goto: start
                  text: Continue
        store_watering_can:
            action:
                set_player_flags:
                    tool_shed_watering_can: true
                take_item: watering_can
            messages:
                - You store the watering can in the tool shed.
            options:
                - goto: start
                  text: Continue