SHOW:
|
|
- or go back to the newest paste.
1 | variables: | |
2 | {terminator} = false | |
3 | {terminatorkills} = 0 | |
4 | ||
5 | command /terminator <text>: | |
6 | description: enables or disables terminator skript | |
7 | permission:skript.op | |
8 | trigger: | |
9 | if arg 1 is "enable": | |
10 | {terminator} is false: | |
11 | set {terminator} to true | |
12 | message "Terminator has been enabled." | |
13 | execute console command "/scoreboard teams add runners UHC_TERMINATOR_RUNNERS" | |
14 | execute console command "/scoreboard teams option runners friendlyfire false" | |
15 | wait 15 minutes | |
16 | set {_terminator} to a random player out of all players | |
17 | broadcast "%{_terminator}% is the new TERMINATOR!" | |
18 | execute console command "/scoreboard teams join @a runners" | |
19 | stop | |
20 | {terminator} is true: | |
21 | message "Terminator is already enabled." | |
22 | stop | |
23 | if arg 1 is "disable": | |
24 | {terminator} is true: | |
25 | set {terminator} to false | |
26 | message "Terminator has been disabled." | |
27 | stop | |
28 | {terminator} is false: | |
29 | message "Terminator has already been disabled." | |
30 | stop | |
31 | if arg 1 is "toggle": | |
32 | {terminator} is false: | |
33 | set {terminator} to true | |
34 | message "Terminator has been enabled" | |
35 | execute console command "/scoreboard teams add runners UHC_TERMINATOR_RUNNERS" | |
36 | execute console command "/scoreboard teams option runners friendlyfire false" | |
37 | wait 15 minutes | |
38 | set {_terminator} to a random player out of all players | |
39 | broadcast "%{_terminator}% is the new TERMINATOR!" | |
40 | execute console command "/scoreboard teams join @a runners" | |
41 | stop | |
42 | {terminator} is true: | |
43 | set {terminator} to false | |
44 | message "Terminator has been disabled." | |
45 | stop | |
46 | if arg 1 is "help": | |
47 | message "Use /terminator <enable:disable:toggle:help>" | |
48 | stop | |
49 | arg 1 is not set: | |
50 | message "Use /terminator <enable:disable:toggle:help>" | |
51 | ||
52 | on death of player: | |
53 | if {terminator} is true: | |
54 | - | if attacker is {_terminator} |
54 | + | if attacker is {_terminator}: |
55 | - | add 1 to {terminatorkills} |
55 | + | add 1 to {terminatorkills} |
56 | ||
57 | every 20 minutes: | |
58 | {terminator} is true: | |
59 | if {terminatorkills} = 0: | |
60 | broadcast "%{_terminator}% has failed!" | |
61 | execute console command "/clear {_terminator}" | |
62 | kill {_terminator} | |
63 | execute console command "/scoreboard teams leave @a" | |
64 | set {terminatorkills} to 0 | |
65 | set {_terminator} to a random player out of all players | |
66 | broadcast "%{_terminator}% is the new TERMINATOR!" | |
67 | execute console command "/scoreboard teams join @a runners" | |
68 | stop | |
69 | else: | |
70 | broadcast "%{_terminator}% has passed" | |
71 | execute console command "/scoreboard teams leave @a" | |
72 | set {_terminator} to a random player out of all players | |
73 | broadcast "%{_terminator}% is the new TERMINATOR!" | |
74 | execute console command "/scoreboard teams join @a runners" |