-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.stdl
More file actions
72 lines (63 loc) · 1.53 KB
/
example.stdl
File metadata and controls
72 lines (63 loc) · 1.53 KB
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
scene v1
// Root player node with global ID
node player MyPlayer @1
{
health = -100
armor = 72.65
skin = "plyrnew.mat"
isBlocked = false
escaped = "Hello\nWorld\t\"Quoted\""
goblin = <enemy:Goblin #12>
// Achievements include numbers, strings, booleans, and a local reference by local ID #12
achievements = [
0, 1, 2, 42, 23,
"232",
true,
<#12> // local ID reference, resolved in player node type
]
// Another list with global reference and typed reference with local ID
another_list = [
<mynode:MyNode @99>, // global reference to MyNode @99 anywhere
<mynode:MyNode #12> // local reference to MyNode #12 within type mynode
]
// Nested child node with local ID
node mynode MyNode #12
{
description = "This is a nested node."
active = true
}
}
// Enemy node with local ID, no global ID
node enemy Goblin #12 @777
{
health = 50
aggressive = true
loot = [
"gold_coin",
"dagger",
<player:MyPlayer @1> // reference to player by global ID
]
player = <player:MyPlayer @1>
}
// Another node of type mynode with global ID
node mynode MyNode @99
{
description = "Global MyNode used in references"
value = 123.45
}
// Node without ID (just type + name)
node environment Forest
{
weather = "rainy"
difficulty = 3
node tree Oak
{
height = 15
leaves = true
}
node tree Pine
{
height = 20
leaves = false
}
}