Skip to content

Commit 18b07e4

Browse files
authored
Create README.md
1 parent 04aa047 commit 18b07e4

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

README.md

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# AdvancedCustomRoles
2+
This is a SCP:SL plugin for [Synapse](http://synapsesl.xyz) with which you can easily create new Roles with no coding knowledge.
3+
4+
***
5+
6+
## Installation
7+
1. [Install Synapse](https://docs.synapsesl.xyz/setup/setup)
8+
2. Place the AdvancedCustomRoles.dll file that you can download [here](https://github.com/SynapseSL/AdvancedCustomRoles/releases) in your plugin directory
9+
3. Restart/Start your server.
10+
11+
***
12+
13+
# Create Custom Roles
14+
15+
It is very easy to create new Roles. A Example file will be generated in `~/Synapse/configs/server-shared/customroles` that you can use as base to create a new Role.
16+
17+
If you need more Examples you can see some Example Roles [here](https://github.com/SynapseSL/AdvancedCustomRoles/tree/master/Example%20Roles)
18+
19+
`Note: Every Role must have his own file inside the customroles folder.`
20+
21+
### Inventory
22+
```yml
23+
inventory:
24+
items:
25+
# The chance that the player will get the item
26+
- chance: 100
27+
#If the preferred attachement should be used (most usefull for weapons)
28+
usePreferences: false
29+
# The ID of the Item (see https://docs.synapsesl.xyz/resources#items)
30+
iD: 0
31+
# The Durabillity of the Item which can be Ammo in the weapon, battery of the radio or nothing for the medkit
32+
durabillity: 0
33+
# The Attachement of the Items. Only used for weapons
34+
sight: 0
35+
barrel: 0
36+
other: 0
37+
# The Size of the Item when dropped
38+
xSize: 1
39+
ySize: 1
40+
zSize: 1
41+
ammo:
42+
ammo5: 50
43+
ammo7: 50
44+
ammo9: 50
45+
```
46+
47+
### Role Information
48+
```yml
49+
# The Name of the Role that other plugins use
50+
name: ExampleRole
51+
# The ID of the Role (you can set your class with setclass {playerid} {Roleid})
52+
roleID: 25
53+
# The Team of the Role (see https://docs.synapsesl.xyz/resources#teams). You can also use your own IDs to create a own Team
54+
teamID: 0
55+
# The Team IDs of the enemies that must be defeated or else the round can't end
56+
enemies:
57+
- 0
58+
# The Team IDs that the role can't hurt
59+
friends:
60+
- 0
61+
```
62+
63+
### Display
64+
```yml
65+
# The skin that the role use (https://docs.synapsesl.xyz/resources#roles)
66+
spawnrole: ClassD
67+
# The Role the Player will become after Escaping
68+
# -1 is None
69+
escapeRole: -1
70+
# The amount of Health the Role spawns with
71+
spawnHealth: 100
72+
# The max amount of Health the Role can have
73+
maxHealth: 100
74+
# The Text that should be displayed when looking at the player of this Role
75+
displayInfo: <color=green>Example</color>
76+
# If the Role name should be removed. For Example Class-D, which can be usefull in combination with displaInfo
77+
removeRoleName: true
78+
```
79+
80+
### SpawnMessage
81+
```yml
82+
# The amount of Time the Broadcast/Hint should be displayed
83+
spawnMessageTime: 5
84+
# The Broadcast that should be displayed
85+
spawnBroadcast: ''
86+
# The Hint that should be displayed
87+
spawnHint: ''
88+
# The content of the Window that appear when spawning
89+
spawnWindow: ''
90+
```
91+
92+
## Spawn
93+
```yml
94+
# The locations where the role can spawn (remove it for default spawns)
95+
spawns:
96+
- room: EZ_Shelter
97+
x: 0
98+
y: 2
99+
z: 0
100+
- room: EZ_Shelter
101+
x: 2
102+
y: 2
103+
z: 0
104+
# This replace a Role at the start of the Round with the Custom Role
105+
# The first value (here 0 which would be SCP-173) is the Role that is going to be replaced and the second value is the chance that the role will be replaced with the custom one
106+
roundStartReplace:
107+
0: 100
108+
# The same than roundStartReplace except with a Team respawn.(Chaos / MTF Respawn)
109+
respawnReplace: ::lsb::::rsb::
110+
# The max amount of this custom role that can spawn at the beginning of the round
111+
maxSpawnAmount: -1
112+
# The max amount of this custom role that can respawn in one respawn
113+
maxRespawnAmount: -1
114+
# The max Amount of this role that can ever exist (you can still forceclass yourself to the role)
115+
maxAmount: -1
116+
```

0 commit comments

Comments
 (0)