-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsyntax.txt
50 lines (38 loc) · 1.74 KB
/
syntax.txt
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
// comments are supported
// define room group
GROUP:Outside
// you can separate room names with commas and whitespaces
room1, room2
room3
room6
END GROUP
GROUP:Inside
room4
room5
room6
//don't forget to close group blocks!
END GROUP
//Subregions are also automatically treated as groups and can be referenced by name in WHERE blocks below
// Define an event
HAPPEN: ExampleHappen
//groups + include rooms - exclude rooms
WHERE: Inside + room3 - room4
// Actions. Each action is a word, followed by optional literals that act as parameters for the action / word.
// String literals are enclosed in ' single quotes. If you need a single quote inside your string, use \q. If you need to avoid this, double-escape (\\q).
// this one will play a mechanical sound
WHAT: soundloop 'Leviathan_Hydraulics_LOOP'
// Activation conditions. You can connect them with () parens,
// !&^| boolean math operators or NOT AND XOR OR word equivalents
// This one will be active when: It is 2 seconds before the rain starts, AND ( player is at karma 1, 3, 4 or 5 OR 70% success roll in the beginning of the cycle succeeded)
WHEN: AfterRain -2 AND ( Karma 1 '3-5' OR Maybe 0.7)
//don't forget to close the happen block like this!
END HAPPEN
// you can have multiple happens in one file
// .atmo files can be merged if several regpacks affect the same region. In that case, ALL happens and groups are active and valid.
HAPPEN: SecondExample
WHERE: Inside Outside
// Multiple actions can be selected. This one shakes the screen, and also posts a message to the log once activated.
WHAT: rumble 0.5 log 'init=rumble start!'
// Some behaviours allow you to make happens affect each other. This happen will activate 5 seconds after the first one
WHEN: AfterOther 'ExampleHappen' 5
END HAPPEN