Aller au contenu principal

codex_unlock_artifact

Stores which codex unlock triggers already fired for each player — misc entry.

Entry Information

PropertyValue
Entry IDcodex_unlock_artifact
TypeMisc
ColorBlue
Iconmdi: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

FieldTypeDescription
artifactIdStringUnique artifact identifier for file storage

Usage Example

- entry: codex_unlock_artifact
name: "Stores which codex unlock triggers already fired for each player"
artifactId: ""