Is there a way to use the current value of a variable in the name index part of an object definition? I'd like to make an object that is indexed by character Id and has either 'active' or 'mia' as the value for each character id index.
So Ideally the end result object would look something like this:
Thanks,
Scott C.
So Ideally the end result object would look something like this:
PCs = {
-KCJ9856WK: 'active'
-KJ89567UI: 'mia'
...(continuing for however many characters meet the conditions for being put in the object)
}
Thanks,
Scott C.