drunk
Module: drunk — fun_drunk.lua
What it does
Sets the player's intoxication stat to a specified level and registers an every-ten-minutes hook that applies ongoing drunk behaviour. While intoxicated, the player has a 50% chance each interval to say a random slurred line out loud (broadcasting a sound radius of 20–40 tiles) and be randomly teleported up to 2 tiles in any direction, simulating a blackout stumble. The effect persists as long as the intoxication stat remains above zero.
Trigger type
drunk
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
type |
string | required | "drunk" |
Module trigger identifier. |
level |
number | 50 |
0 – 100 |
Intoxication level to apply to the player's stats. Values outside 0–100 are silently rejected. |
Examples
Default medium intoxication (level 50)
{ type="drunk" }
Lightly tipsy
{ type="drunk", level=20 }
Fully hammered
{ type="drunk", level=100 }