SlashCo Wiki

SlashCo.GetRandomSlasher

 string SlashCo.GetRandomSlasher( number dangerlevel, number slasherClass )

Description

Returns a random registered slasher name, optionally restricted by danger level and/or slasher class.
Slashers that aren't selectable, and Leuonard, are never picked.

Arguments

1number dangerlevel

A value from SlashCo.DangerLevel to restrict the pick to. Defaults to SlashCo.DangerLevel.Unknown (no restriction)

2number slasherClass

A value from SlashCo.SlasherClass to restrict the pick to. Defaults to SlashCo.SlasherClass.Unknown (no restriction)

Returns

1string name

The name of a randomly picked matching slasher, see SlashCo.GetSlasherTable