codex_unlock_artifact
Stores which codex unlock triggers already fired for each player — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | codex_unlock_artifact |
| Type | Misc |
| Color | Blue |
| Icon | mdi:archive |
Description
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.
Fields
| Field | Type | Description |
|---|---|---|
artifactId | String | Unique artifact identifier for file storage |
Usage Example
- entry: codex_unlock_artifact
name: "Stores which codex unlock triggers already fired for each player"
artifactId: ""