Hi, so I am having problems adapting a value in an array that is contained within a few dictionaries. Basically, I am trying to change the first string in my array depending on the content the user inputs. My code looks like this.
func update_content(currentInteractable):
var flag1 = a
var flag2 = b
var input = userInput
Dict[flag1][flag2][currentInteractable][0] = userInput
For some reason when I run this code it changes all the values on the first item in the array for all of the interactables (i.e. all options in the flag2 dictionaries), rather than just changing the value for the array contained within the currentInteractable dictionary? If anyone knows why this is happening I would really appreciate a solution.
Thanks in advance!