Array data mismatch issue

I have events to add value to an array , the arrays are not predefined and I’m trying to create them dynamically. I have two events , one which sets values for Data.slot1 (data is the name of the array and slot1 is the name i wanna use for the child of the array ) and the other event adds values for Data.slot2



I then use the values of Data.slot1 to create a creature when the battle starts

But the issue is that whenever I have the values of slot2 in the data array , it is not creating slot1 , instead it’s creating slot2 for some reason. Basically i want it so that it always creates slot1 but for some reason it’s creating slot2 creature whenever possible
Pls help me find the issue

are you aware that children of arrays can only be indexed and called using a number. its content can be anything but the name of the child is always just a number.

here you are describing a structure. structure’s children can be named using a string. is [Data] a structure?