blob: bd20f249bc4715c5e14cc5a79324299628373c1f (
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
|
name: Guard
description: A stern-looking guard in weathered armor.
unique: true
protected: true
idle_descriptions:
- scans the area with a watchful eye
- adjusts the grip on his weapon
- nods curtly at passersby
- leans against the gate, arms folded
talk:
nodes:
about_gate:
action:
set_player_flags:
talked_to_guard: true
messages:
- '"Supplies. Weapons. Things you don''t need to worry about." He shifts his weight. "Tell you what — bring me some copper ore and I''ll stamp you a pass."'
options:
- text: '"I''ll be back."'
- condition:
has_item: copper_ore
goto: trade_ore
text: '"I have some right here."'
- text: '"Goodbye."'
has_pass:
action:
set_flags:
gate_open: true
messages:
- '"Let me see that..." He examines your pass and nods. "Alright, I''ll open the gate for you."'
options:
- text: '"Thanks."'
start:
messages:
- '"Halt! This area is restricted." The guard eyes you suspiciously.'
options:
- goto: about_gate
text: '"What''s behind that gate?"'
- condition:
has_item: copper_ore
goto: trade_ore
text: '"I have copper ore."'
- condition:
player_flag: got_pass
value: true
goto: has_pass
text: '"I have a pass."'
- text: '"Goodbye."'
trade_ore:
action:
give_item: pass_stub
set_player_flags:
got_pass: true
talked_to_guard: true
take_item: copper_ore
messages:
- '"Good quality ore. This''ll do." He stamps a slip of paper and hands it to you. "That''s your pass. Don''t lose it."'
options:
- text: '"Thanks."'
|