Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {T.begin} = 0
- {T.plcnt} = 0
- {T.plrnd} = 0
- {T.%player%.al1} = 0
- {T.sec} = 0
- {R.1} = 0
- {R.2} = 0
- {R.3} = 0
- {B.1} = 0
- {B.2} = 0
- {B.3} = 0
- {B.sp1} = 0
- {R.sp1} = 0
- {B.sp2} = 0
- {R.sp2} = 0
- {B.sp3} = 0
- {R.sp3} = 0
- {R.pt} = 0
- {B.pt} = 0
- {B.rc} = 0
- {R.rc} = 0
- {T.all} = 0
- {stage} = 0
- command /team <text> [<int>]:
- trigger:
- #BEGIN
- if arg 1 is "begin":
- if {T.begin} is not 0:
- message "&c既に募集開始しています/始まっています"
- if {T.begin} = 0:
- set {T.begin} to 1
- if arg 2 is not set:
- set {stage} to 1
- if arg 2 is 1:
- set {stage} to 1
- if arg 2 is 2:
- set {stage} to 2
- if arg 2 is 3:
- set {stage} to 3
- broadcast "&a&l3V3PVP&r&b&lが始まります! &c&l/team join&r &b&lで参加できます!"
- #JOIN
- if arg 1 is "join":
- if {T.begin} is 0:
- message "&c募集が始まっていません! /team beginで募集開始できます"
- if {T.begin} is 1:
- if {T.%player%.al1} is 1:
- message "&c既に参加しています!"
- if {T.%player%.al1} is 0:
- set {T.plrnd} to random integer between 1 to 6
- if {T.all} is 0:
- if {T.plrnd} is 1:
- if {R.1} is 0:
- set {R.1} to player
- broadcast "%player%さんが赤チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plrnd} is 2:
- if {R.2} is 0:
- set {R.2} to player
- set {T.%player%.al1} to 1
- broadcast "%player%さんが赤チームになりました!"
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plrnd} is 3:
- if {R.3} is 0:
- set {R.3} to player
- broadcast "%player%さんが赤チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plrnd} is 4:
- if {B.1} is 0:
- set {B.1} to player
- broadcast "%player%さんが青チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plrnd} is 5:
- if {B.2} is 0:
- set {B.2} to player
- broadcast "%player%さんが青チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plrnd} is 6:
- if {B.3} is 0:
- set {B.3} to player
- broadcast "%player%さんが青チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {T.%player%.al1} is not 1:
- if {R.1} = 0:
- set {R.1} to player
- broadcast "%player%さんが赤チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {R.1} is not 0:
- if {T.%player%.al1} is not 1:
- if {R.2} is 0:
- set {R.2} to player
- set {T.%player%.al1} to 1
- broadcast "%player%さんが赤チームになりました!"
- set {T.plcnt} to {T.plcnt} + 1
- if {R.2} is not 0:
- if {T.%player%.al1} is not 1:
- if {R.3} is 0:
- set {R.3} to player
- broadcast "%player%さんが赤チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {R.3} is not 0:
- if {T.%player%.al1} is not 1:
- if {B.1} is 0:
- set {B.1} to player
- broadcast "%player%さんが青チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {B.1} is not 0:
- if {T.%player%.al1} is not 1:
- if {B.2} is 0:
- set {B.2} to player
- broadcast "%player%さんが青チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {B.2} is not 0:
- if {T.%player%.al1} is not 1:
- set {B.3} to player
- broadcast "%player%さんが青チームになりました!"
- set {T.%player%.al1} to 1
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plcnt} is 6:
- broadcast "チーム戦が始まるまであと10秒!"
- set {T.all} to 1
- wait 7 seconds
- if {stage} is 1:
- teleport {R.1} to {R.sp1}
- teleport {R.2} to {R.sp1}
- teleport {R.3} to {R.sp1}
- teleport {B.1} to {B.sp1}
- teleport {B.2} to {B.sp1}
- teleport {B.3} to {B.sp1}
- if {stage} is 2:
- teleport {R.1} to {R.sp2}
- teleport {R.2} to {R.sp2}
- teleport {R.3} to {R.sp2}
- teleport {B.1} to {B.sp2}
- teleport {B.2} to {B.sp2}
- teleport {B.3} to {B.sp2}
- if {stage} is 3:
- teleport {R.1} to {R.sp3}
- teleport {R.2} to {R.sp3}
- teleport {R.3} to {R.sp3}
- teleport {B.1} to {B.sp3}
- teleport {B.2} to {B.sp3}
- teleport {B.3} to {B.sp3}
- wait 3 seconds
- broadcast "START!!!!"
- set {T.begin} to 2
- command /spset <int>:
- trigger:
- if arg 1 is 1:
- set {R.sp1} to player's location
- if arg 1 is 2:
- set {B.sp1} to player's location
- if arg 1 is 3:
- set {R.sp2} to player's location
- if arg 1 is 4:
- set {B.sp2} to player's location
- if arg 1 is 5:
- set {R.sp3} to player's location
- if arg 1 is 6:
- set {B.sp3} to player's location
- permission: skript.admin
- every seconds:
- if {T.begin} is 2:
- #timer
- if {B.rc} is 1:
- broadcast "Blue ore is right clicking"
- if {R.rc} is 1:
- broadcast "Red ore is right clicking"
- set {B.rc} to 0
- set {R.rc} to 0
- set {T.sec} to {T.sec} + 1
- if {T.sec} is 300:
- broadcast "&a&lFINISH!!!!!!"
- broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
- broadcast "member: &c&l%{R.1}% %{R.2}% %{R.3}% &b&l%{B.1}% %{B.2}% %{B.3}%"
- if {R.pt} is more than {B.pt}:
- broadcast "&c&lRED TEAM WIN!!!!"
- if {B.pt} is more than {R.pt}:
- broadcast "&b&lBLUE TEAM WIN!!!!"
- set {T.begin} to 0
- set {T.plcnt} to 0
- set {T.%{R.1}%.al1} to 0
- set {T.%{R.2}%.al1} to 0
- set {T.%{R.3}%.al1} to 0
- set {T.%{B.1}%.al1} to 0
- set {T.%{B.2}%.al1} to 0
- set {T.%{B.3}%.al1} to 0
- set {T.sec} to 0
- set {R.1} to 0
- set {R.2} to 0
- set {R.3} to 0
- set {B.1} to 0
- set {B.2} to 0
- set {B.3} to 0
- set {T.all} to 0
- set {R.pt} to 0
- set {B.pt} to 0
- #respawning,and point counting
- On death:
- while victim is not alive:
- wait 1 seconds
- if {T.begin} is 2:
- if {R.1} is victim:
- if {stage} is 1:
- teleport victim to {R.sp1}
- if {stage} is 2:
- teleport victim to {R.sp2}
- if {stage} is 3:
- teleport victim to {R.sp3}
- set {B.pt} to {B.pt} + 40
- execute console command "/effect %{R.1}% resistance 5 255"
- broadcast "RED:%{R.pt}% BLUE:%{B.pt}%"
- if {R.2} is victim:
- if {stage} is 1:
- teleport victim to {R.sp1}
- if {stage} is 2:
- teleport victim to {R.sp2}
- if {stage} is 3:
- teleport victim to {R.sp3}
- set {B.pt} to {B.pt} + 40
- execute console command "/effect %{R.2}% resistance 5 255"
- if {R.3} is victim:
- if {stage} is 1:
- teleport victim to {R.sp1}
- if {stage} is 2:
- teleport victim to {R.sp2}
- if {stage} is 3:
- teleport victim to {R.sp3}
- set {B.pt} to {B.pt} + 30
- execute console command "/effect %{R.3}% resistance 5 255"
- if {B.1} is victim:
- if {stage} is 1:
- teleport victim to {B.sp1}
- if {stage} is 2:
- teleport victim to {B.sp2}
- if {stage} is 3:
- teleport victim to {B.sp3}
- execute console command "/effect %{B.1}% resistance 5 255"
- broadcast "RED:%{R.pt}% BLUE:%{B.pt}%"
- set {R.pt} to {R.pt} + 30
- if {B.2} is victim:
- if {stage} is 1:
- teleport victim to {B.sp1}
- if {stage} is 2:
- teleport victim to {B.sp2}
- if {stage} is 3:
- teleport victim to {B.sp3}
- set {R.pt} to {R.pt} + 30
- execute console command "/effect %{B.2}% resistance 5 255"
- if {B.3} is victim:
- if {stage} is 1:
- teleport victim to {B.sp1}
- if {stage} is 2:
- teleport victim to {B.sp2}
- if {stage} is 3:
- teleport victim to {B.sp3}
- execute console command "/effect %{B.3}% resistance 5 255"
- set {R.pt} to {R.pt} + 30
- On damage:
- if {T.begin} is 2:
- if {R.1} or {R.2} or {R.3} is attacker:
- if {R.1} or {R.2} or {R.3} is victim:
- cancel event
- if {B.1} or {B.2} or {B.3} is attacker:
- if {B.1} or {B.2} or {B.3} is victim:
- cancel event
- On right click on lapis ore:
- if {T.begin} is 2:
- set {R.pt} to {R.pt} + 4
- execute console command "/execute ~ ~ ~ %player% particle heart ~ ~ ~ 1 1 1 0 3"
- set {B.rc} to 1
- On right click on red wool:
- if {T.begin} is 2:
- set {R.pt} to {R.pt} + 4
- execute console command "/execute ~ ~ ~ %player% particle heart ~ ~ ~ 1 1 1 0 3"
- set {R.rc} to 1
- command /resetteam:
- trigger:
- set {T.begin} to 0
- set {T.plcnt} to 0
- set {T.%{R.1}%.al1} to 0
- set {T.%{R.2}%.al1} to 0
- set {T.%{R.3}%.al1} to 0
- set {T.%{B.1}%.al1} to 0
- set {T.%{B.2}%.al1} to 0
- set {T.%{B.3}%.al1} to 0
- set {T.sec} to 0
- set {R.1} to 0
- set {R.2} to 0
- set {R.3} to 0
- set {B.1} to 0
- set {B.2} to 0
- set {B.3} to 0
- set {T.all} to 0
- set {R.pt} to 0
- set {B.pt} to 0
- command /resetteamp <player>:
- permission: skript.admin
- trigger:
- set {T.%arg 1%.al1} to 0
- command /member:
- trigger:
- message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
Add Comment
Please, Sign In to add comment