11![ VERSION] ( https://img.shields.io/github/v/release/ScriptedEvents/ScriptedEventsReloaded?include_prereleases&logo=gitbook&style=for-the-badge )
22![ COMMITS] ( https://img.shields.io/github/commit-activity/m/ScriptedEvents/ScriptedEventsReloaded?logo=git&style=for-the-badge )
33[ ![ DISCORD] ( https://img.shields.io/discord/1060274824330620979?label=Discord&logo=discord&style=for-the-badge )] ( https://discord.gg/3j54zBnbbD )
4- ![ scriptedeventslogo.png] ( scriptedeventslogo.png )
4+ < img alt = " scriptedeventslogo.png " height = " 300 " src = " scriptedeventslogo.png " />
55
66
77# What is ` Scripted Events Reloaded ` ?
@@ -26,12 +26,12 @@ All you need to get started is a text editor and a server!
2626> https://scriptedeventsreloaded.gitbook.io/docs/tutorial
2727
2828# Examples
29- (these scripts may be outdated, use them as a general overview )
29+ (these scripts may be outdated, check the ` Example Scripts ` folder for the latest example scripts )
3030### Welcome message
3131```
3232!-- OnEvent Joined
3333
34- Broadcast @evPlayer 10s "Welcome to the server {@evPlayer name}!"
34+ Broadcast @evPlayer 10s "Welcome to the server {@evPlayer -> name}!"
3535```
3636### Coin on kill
3737```
@@ -42,6 +42,7 @@ if {VarExists @evAttacker} is false
4242 stop
4343end
4444
45+ # give the attacker a coin
4546GiveItem @evAttacker Coin
4647```
4748### VIP broadcast command
@@ -55,7 +56,7 @@ GiveItem @evAttacker Coin
5556-- cooldown 2m
5657
5758# send the broadcast to all players
58- Broadcast @all 10s "{@sender name} used VIP broadcast<br>{$message}"
59+ Broadcast @all 10s "{@sender -> name} used VIP broadcast<br>{$message}"
5960```
6061### Heal random SCP
6162```
@@ -65,13 +66,13 @@ Broadcast @all 10s "{@sender name} used VIP broadcast<br>{$message}"
6566-- cooldown 10s
6667
6768# dont allow SCPs to use this command
68- if {@sender team} is "SCPs"
69+ if {@sender -> team} is "SCPs"
6970 stop
7071end
7172
7273@randomScp = LimitPlayers @scpPlayers 1
7374Heal @randomScp 50
74- Broadcast @randomScp 4s "You were healed by {@sender name}!"
75+ Broadcast @randomScp 4s "You were healed by {@sender -> name}!"
7576```
7677### Hot Potato event
7778```
@@ -94,16 +95,15 @@ forever
9495 Wait 3s
9596
9697 # Check if they still have the item (GunA7) in their inventory
97- over {@potatoCarrier inventory}
98- with *item
99-
98+ over {@potatoCarrier inventory} with *item
99+
100100 if {*item -> type} isnt "GunA7"
101101 continue
102102 end
103103
104104 AdvDestroyItem *item
105105 Explode @potatoCarrier
106- Broadcast @all 5s "{@potatoCarrier name} failed the Hot Potato!"
106+ Broadcast @all 5s "{@potatoCarrier -> name} failed the Hot Potato!"
107107 stop
108108 end
109109
0 commit comments