What are these characters and specs? If they are they just bits of text data, you can store them in an array or a dictionary.
With dictionary you can have the character as key name and put all specs into a comma separated string.
So you'll have:
Keyname="Character1", data="spec1,spec2,spec3,spec4"
Use "For each key" loop and expressions like find() and tokenat() to search for/parse specs.
Or you can make a 2D array, X axis will store character name, Y1-Y4 will store specs.
Use array events like "For each element" and "Compare current value"/"Compare at XY" to search for a character/spec.
--------------
In case these characters and specs are actual objects (like sprites), you can define an instance variable on the Spec sprite - "CharacterUID". This will allow to link characters with specs.
To pick specs for a character:
Spec compare instance variable -> CharacterUID=Character.UID
To pick character for a spec:
Character pick by Unique ID -> Spec.CharacterUID