eggTrail
Module: eggTrail — fun_eggTrail.lua
What it does
Makes the player lay a trail of rotten eggs (SIF.RottenEgg) on the ground at a configurable interval for a set duration. Each egg drop is accompanied by a breathing sound effect (gender-appropriate) and a random humorous exclamation from the player. The module is per-player guarded so the effect cannot stack on the same player. It stops automatically when the duration expires or if the player dies.
Trigger type
eggTrail
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
type |
string | required | "eggTrail" |
Module trigger identifier. |
duration |
number | 8 |
Any positive number | Total duration of the egg-laying trail, in in-game minutes. |
interval |
number | 1 |
Any positive number | How often an egg is dropped, in in-game minutes. Lower values produce a denser trail. |
Examples
Default: 8 minutes, one egg per minute
{ type="eggTrail" }
Short dense trail: 3 minutes, egg every 30 seconds
{ type="eggTrail", duration=3, interval=0.5 }
Long sparse trail: 20 minutes, egg every 5 minutes
{ type="eggTrail", duration=20, interval=5 }