Skip to content

Player Custom Attributes

Cromha edited this page Feb 21, 2024 · 2 revisions

Introduction

Player custom attributes are a list of strings in the player save data, that actually does nothing to the game engine; technically, they're useless. Player custom attributes are added by dialogs, missions or again consumable effects. They're then used in dialogs and missions again.

Explanation

What I mean by that is that player custom attributes aren't used by the game engine, but only by the game data (either vanilla or the plugin you're using), to detect if you've done an action and other things. They're used in logical detection by the game data. For example, if you want a mission to spawn only if you've heard a certain dialogs, then you'll make the dialog add a custom attributes when displayed and make the mission detect if you have that custom attributes. You can look in the game vanilla data mission.yaml and dialog.yaml for real examples.

Clone this wiki locally