SlashCo Wiki

PERK

PERK

Description

Table structure used for SlashCo.RegisterPerk.
Besides the fields below, a perk may define any number of additional numeric fields (e.g. ITEM.FuelSpeed) that are read through Player:PerkValue by whatever system the perk is meant to affect.

Parameters

string ID

The perk's unique ID, also passed as the second argument to SlashCo.RegisterPerk.

string Name

Language key used as the perk's display name.

string Description

Language key used as the perk's description.

string Icon

Path to the perk's icon material, relative to materials/.

number Team

The team this perk is for - TEAM_SURVIVOR or TEAM_SLASHER.

number Level

The player level required before the perk can be bought.

Default: 0

number Price

How many points the perk costs to buy.

Default: 50

table Conflicts (Optional)

A list of other perk IDs that cannot be active at the same time as this perk.

After registration this list is converted in-place into a lookup set (Conflicts[otherPerkID] = true).