Skip to content

Commit dd069de

Browse files
update scripts
1 parent 74b3b19 commit dd069de

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
func $Add with $a $b
2-
return $a + $b
1+
func ExplodeAll
2+
Explode *
33
end
44

5-
$sum = run $Add 5 3
6-
Print $sum
5+
run ExplodeAll # this just explodes everyone
76

87

98
func @SigmasOnly
109
return RemovePlayers * @classDPlayers
1110
end
1211

1312
@sigmas = run @SigmasOnly
14-
Explode @sigmas
13+
Explode @sigmas # after this, only class d players will be alive
1514

1615

17-
func ExplodeAll
18-
Explode *
16+
func $Add with $a $b
17+
return $a + $b
1918
end
2019

21-
run ExplodeAll
20+
$sum = run $Add 5 3 # $a will be 5, $b will be 3
21+
Print $sum # prints 8

Example Scripts/gnomingTime.ser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ end
1919
@plr = @evAttacker
2020

2121
# lower size by .1 when killing someone
22-
SetSize @plr {{@plr -> sizeX} - .1} {{@plr -> sizeY} - .1} {{@plr -> sizeZ} - .1}
22+
SetSize @plr ({@plr -> sizeX} - .1) ({@plr -> sizeY} - .1) ({@plr -> sizeZ} - .1)
2323
Hint @plr 5s "KILLED PLAYER - IT'S GNOMING TIME!"
2424

2525
wait 15s

Example Scripts/killStreak.ser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if {VarExists @evAttacker} is true
44
# increment killer's streak
55
if {HasPlayerData @evAttacker "streak"}
6-
$new = ({GetPlayerData @evAttacker "streak"} + 1)
6+
$new = {GetPlayerData @evAttacker "streak"} + 1
77
else
88
$new = 1
99
end

Example Scripts/pinataLoot.ser

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# this script makes SCP-173 drop pills or a medkit on damage, like a pinata
12
!-- OnEvent Hurt
23

34
# Only trigger if the victim exists

0 commit comments

Comments
 (0)