How would i save a collectables data to array?

Hi So i was wondering if there was a way to add a name of a collectables when it is collected to an array so it wont spawn if the player does back to the card’s location?

also want to add it to my save data as well how would i go about do that too?

Try using a structure containing the 2 variables you setup, then create a new variable that is an array of that structure, and when collecting something check if the array contains any elements with matching names using a foreach loop. Then if it does you’ll “Set Array Elem” and if not, add the item to the array.

Research a bit more about structures if you get stuck, and let me know if you have any questions.