blob: 972dadcfa03df98713c294dca095fa7d7a018607 (
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
|
## Conditions Reference
Conditions are used in talk options, exit gates, on-enter scripts, and use_interactions checks.
### Simple conditions
```yaml
# Check a world flag
condition:
flag: gate_open
value: true
# Check a world flag is NOT set
condition:
flag: gate_open
not: true
# Check a player flag
condition:
player_flag: finished_tutorial
value: true
# Check if player has an item
condition:
has_item: bronze_key
# Check if player does NOT have an item
condition:
has_item: bronze_key
not: true
# Check if player has enough credits
condition:
min_credits: 50
```
### Compound conditions
All must pass:
```yaml
condition:
all_of:
- flag: gate_open
value: true
- has_item: pass_stub
```
Any one must pass:
```yaml
condition:
any_of:
- has_item: bronze_key
- has_item: iron_key
- player_flag: master_of_unlocking
value: true
```
Nested compounds:
```yaml
condition:
all_of:
- player_flag: quest_started
value: true
- any_of:
- has_item: wolf_pelt
- has_item: bear_pelt
```
---
|