Skip to content

Commit 1f22b14

Browse files
update example scripts
1 parent 7345ff7 commit 1f22b14

4 files changed

Lines changed: 16 additions & 10 deletions

File tree

Code/Examples/BreachScript.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
namespace SER.Code.Examples;
1+
using JetBrains.Annotations;
22

3+
namespace SER.Code.Examples;
4+
5+
[UsedImplicitly]
36
public class BreachScript : Example
47
{
58
public override string Name => "breach";
69

710
public override string Content =>
811
"""
912
!-- CustomCommand breach
13+
-- availableFor Server RemoteAdmin
1014
1115
Cassie jingle "Containment breach detected . All heavy containment doors locked ." ""
1216
1317
CloseDoor HeavyContainment
14-
LockDoor HeavyContainment 30s
18+
LockDoor HeavyContainment
1519
1620
Wait 30s
1721

Code/Examples/GnomingTimeScript.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
namespace SER.Code.Examples;
1+
using JetBrains.Annotations;
22

3+
namespace SER.Code.Examples;
4+
5+
[UsedImplicitly]
36
public class GnomingTimeScript : Example
47
{
58
public override string Name => "gnomingTime";
@@ -14,14 +17,14 @@ public class GnomingTimeScript : Example
1417
1518
@plr = @evAttacker
1619
17-
# lower scale by .1 when killing someone
18-
SetSize @plr ({@plr scaleX} - .1) ({@plr scaleY} - .1) ({@plr scaleZ} - .1)
20+
# lower size by .1 when killing someone
21+
SetSize @plr ({@plr sizeX} - .1) ({@plr sizeY} - .1) ({@plr sizeZ} - .1)
1922
Hint @plr 5s "KILLED PLAYER - IT'S GNOMING TIME!"
2023
2124
Wait 15s
2225
2326
# return them to normal
24-
SetSize @plr ({@plr scaleX} + .1) ({@plr scaleY} + .1) ({@plr scaleZ} + .1)
27+
SetSize @plr ({@plr sizeX} + .1) ({@plr sizeY} + .1) ({@plr sizeZ} + .1)
2528
Hint @plr 5s "Gnoming potential depleted :("
2629
""";
2730
}

Code/Examples/HotPotatoScript.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ GiveItem @potatoCarrier GunA7
2020
Wait 3s
2121
2222
# Check if they still have the item (GunA7) in their inventory
23-
&inv = {@potatoCarrier inventory}
24-
over &inv
23+
over {@potatoCarrier inventory}
2524
with *item
2625
2726
if {ItemInfo *item type} isnt "GunA7"

Code/Examples/PinataLootScript.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class PinataLootScript : Example
1818
stop
1919
end
2020
21-
# Trigger only with 25% chance
22-
if {Chance 25%} is false
21+
# Trigger only with 5% chance
22+
if {Chance 5%} is false
2323
stop
2424
end
2525

0 commit comments

Comments
 (0)