randomizePerk
Module: player_randomizePerk.lua
What it does
Picks a random skill from the predefined list and randomly increases or decreases it by one level. The direction is chosen by a coin flip, with boundary clamping — a skill already at 10 can only decrease, and a skill at 0 can only increase. The player announces the result aloud in chat.
Trigger type
randomizePerk
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
| This module takes no parameters. The perk and direction are chosen randomly on each trigger. | ||||
Eligible perks:
AxeLong BluntShort Blunt
Long BladeShort BladeSpear
MaintenanceAimingReloading
CarpentryWoodworkCarving
CookingElectricityDoctor
GlassmakingFlintKnappingMasonry
BlacksmithMechanicsPottery
TailoringMetalWeldingFishing
PlantScavengingTrackingTrapping
FitnessStrengthLightfoot
NimbleSprintingSneak
FarmingHusbandryButchering
Examples
Randomly bump one skill up or down by 1
{ type="randomizePerk" }
Use as a channel point redemption
{ type="randomizePerk", message="!randperk" }
Include in a random event pool
{ type="randomizePerk", weight=10 }