hatchingEggTrail
Module: hatchingEggTrail — animal_hatchingeggtrail.lua
What it does
When triggered, the local player begins laying a trail of rotten eggs as they move. At a configurable interval (default 1 in-game minute) an egg (SIF.RottenEgg) is placed on the player's current tile, the player speaks a random egg-pun, and a breathing sound plays. Each egg hatches into a live chicken (Rhode Island Red or Leghorn) after a short delay. Chickens are automatically removed after a configurable lifetime. The trail runs for a configurable total duration.
Trigger type
hatchingEggTrail
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
type |
string | required | "hatchingEggTrail" |
Must exactly match the module name to route the event correctly. |
duration |
number | 8 |
Any positive number | How long (in in-game minutes) the egg-laying trail lasts before stopping automatically. |
interval |
number | 1 |
Any positive number | How many in-game minutes between each egg being laid. |
Examples
Minimal: use all defaults (8-minute trail, egg every 1 minute)
{ type="hatchingEggTrail" }
Rapid-fire trail: egg every 30 seconds, runs for 3 minutes
{ type="hatchingEggTrail", duration=3, interval=0.5 }
Long slow trail: egg every 2 minutes over 20 minutes
{ type="hatchingEggTrail", duration=20, interval=2 }