Custom Attributes and how to use them(?)

Hi, I’ve done my research but I am unable to find out how to actually make and use custom Attributes. Let’s see an example of what I would like to achieve. (in js)

@Stored("John");
var aCharacter:Person;

var allPersons: = new Dictionary.<String,Person>();

So in this mere example, I would like the variable aCharacter to be added to the Dictionary with the key provided by the attribute when the game starts. How can I do this please? Some guidelines.

Now like I said, the above example has no meaning, but its merely a simple example.

You are probably thinking too complicated and just wanna use a Dictionary, because you think it cannot be shown in the inspector, but it can be serialized!

Here is a screenshot of the inspector using the ‘Custom Inspector’ asset (Custom Inspector | Utilities Tools | Unity Asset Store)
204160-dictionarypreview.png