Codex Unlock Artifact
Stores which codex unlock triggers already fired for each player
Remembers which codex unlock triggers have already fired, per player. Without this the tracking lived only in memory: it was never cleaned (growing for every player who opened the codex) and, worse, it was lost on restart — so every onUnlockTriggers fired again the next time a player opened the menu. Anything with a side effect, such as a reward, was handed out once per server uptime instead of once.
Champs
| Champ | Type | Par défaut | Description |
|---|---|---|---|
artifactId | String | codex_unlock_storage | Unique artifact identifier for file storage |
How to use it
Add one on any page that is published. It stores, per player, which unlock triggers (category, item and recipe) already fired. Keep the default artifactId unless you need several. Without it, unlock triggers are skipped and a warning is logged.