-
Notifications
You must be signed in to change notification settings - Fork 0
/
alert_submat.txt
72 lines (68 loc) · 2.11 KB
/
alert_submat.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@name Alert Submat
@inputs Alert:string [E1,E2,E3,E4,E5,E6,E7,E8,E9,E10,E11,E12]:entity
@persist [Light,Red,Blue,Black]:string
if(first() | dupefinished()){
Light = "cmats/light"
Red = "cmats/flash_red"
Blue = "glow/flash_blue"
Black = "glow/flash_white"
}
if(changed(Alert)){
if(Alert == "Green"){
E1:setSubMaterial(6,Light)
E2:setSubMaterial(2,Light)
E3:setSubMaterial(6,Light)
E4:setSubMaterial(5,Light)
E5:setSubMaterial(6,Light)
E6:setSubMaterial(6,Light)
E7:setSubMaterial(6,Light)
E8:setSubMaterial(6,Light)
E9:setSubMaterial(6,Light)
E10:setSubMaterial(6,Light)
E11:setSubMaterial(6,Light)
E12:setSubMaterial(7,Light)
}
if(Alert == "Blue"){
E1:setSubMaterial(6,Blue)
E2:setSubMaterial(2,Blue)
E3:setSubMaterial(6,Blue)
E4:setSubMaterial(5,Blue)
E5:setSubMaterial(6,Blue)
E6:setSubMaterial(6,Blue)
E7:setSubMaterial(6,Blue)
E8:setSubMaterial(6,Blue)
E9:setSubMaterial(6,Blue)
E10:setSubMaterial(6,Blue)
E11:setSubMaterial(6,Blue)
E12:setSubMaterial(7,Blue)
}
#cmats/flash_red
if(Alert == "Red" | Alert == "Abandon Ship" | Alert == "Lockdown"){
E1:setSubMaterial(6,Red)
E2:setSubMaterial(2,Red)
E3:setSubMaterial(6,Red)
E4:setSubMaterial(5,Red)
E5:setSubMaterial(6,Red)
E6:setSubMaterial(6,Red)
E7:setSubMaterial(6,Red)
E8:setSubMaterial(6,Red)
E9:setSubMaterial(6,Red)
E10:setSubMaterial(6,Red)
E11:setSubMaterial(6,Red)
E12:setSubMaterial(7,Red)
}
if(Alert == "Black"){
E1:setSubMaterial(6,Black)
E2:setSubMaterial(2,Black)
E3:setSubMaterial(6,Black)
E4:setSubMaterial(5,Black)
E5:setSubMaterial(6,Black)
E6:setSubMaterial(6,Black)
E7:setSubMaterial(6,Black)
E8:setSubMaterial(6,Black)
E9:setSubMaterial(6,Black)
E10:setSubMaterial(6,Black)
E11:setSubMaterial(6,Black)
E12:setSubMaterial(7,Black)
}
}