Date: 2015/12/11 22:23:56 UTC-08:00
Type: Denizen Script
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
Territory1_Worlds:
type: world
events:
on banana command:
- narrate "hi"
on gTer1 command:
- define gTer1_Count 0
- define gTer1_Char2 <&chr[9633]>
- while <def[gTer1_Count].abs> < 10 {
- define gTer1_Last <def[gTer1_Count]>
- foreach <cu@gTer1_Target.list_players> {
- if <def[value].flag[gTer1_Team]> == "Red" {
- define gTer1_Count <def[gTer1_Count].add[1]>
}
else if <def[value].flag[gTer1_Team]> == "Blue" {
- define gTer1_Count <def[gTer1_Count].sub[1]>
}
}
- if <def[gTer1_Count]> > 0 {
- define gTer1_Colour <&c>
}
else {
- define gTer1_Colour <&b>
}
- if <def[gTer1_Count].sub[<def[gTer1_Last]>]> > 0 {
- define gTer1_Char1 <&chr[9654]>
}
else if <def[gTer1_Count].sub[<def[gTer1_Last]>]> < 0{
- define gTer1_Char1 <&chr[9664]>
}
else {
- define gTer1_Char1 <&chr[9632]>
}
- define gTer1_Title <def[gTer1_Colour]>
- repeat <def[gTer1_Count].abs> {
- define gTer1_Title li@<def[gTer1_Title]>|<def[gTer1_Char1]>
}
- define gTer1_Title li@<def[gTer1_Title]>|<&f>
- repeat <el@10.sub[<def[gTer1_Count].abs>]> {
- define gTer1_Title li@<def[gTer1_Title]>|<def[gTer1_Char2]>
}
- title title: subtitle:<def[gTer1_Title]> fade_in:0s stay:10t fade_out:0s targets:<cu@gTer1_Target.list_players>
- wait 10t
}
- if <def[gTer1_Count]> > 0 {
- narrate "Red team captured the target!"
}
else {
- narrate "Blue team captured the target!"
}
- narrate "Not finished..."